znc-1.2/0000755000175000017500000000000012235710306012371 5ustar somebodysomebodyznc-1.2/src/0000755000175000017500000000000012235710306013160 5ustar somebodysomebodyznc-1.2/src/Csocket.cpp0000644000175000017500000026230012235710266015267 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 #endif /* HAVE_LIBSSL */ #define CS_SRANDBUFFER 128 using namespace std; #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 g_iCsockSSLIdx = 0; //!< this get setup once in InitSSL int GetCsockClassIdx() { return( g_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 ) { /* * A small quick example on how to get ahold of the Csock in the data portion of x509_ctx Csock * pSock = GetCsockFromCTX( x509_ctx ); assert( pSock ); cerr << pSock->GetRemoteIP() << endl; */ /* return 1 always for now, probably want to add some code for cert verification */ return( 1 ); } 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, GetCsockClassIdx() ); 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 ) { 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 g_iCsockSSLIdx = SSL_get_ex_new_index( 0, ( void * )"CsockGlobalIndex", 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 ) 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; } 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; } 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; } 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() { 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< int, short > & miiReadyFds, long & iTimeoutMS ) { iTimeoutMS = -1; // don't bother changing anything in the default implementation for( std::map< int, 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< int, short > & miiReadyFds ) { std::map< int, short > miiTriggerdFds; for( std::map< int, short >::iterator it = m_miiMonitorFDs.begin(); it != m_miiMonitorFDs.end(); ++it ) { std::map< int, 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< int, 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< int, 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 = NULL; #endif /* HAVE_LIBSSL */ Init( "", 0, iTimeout ); } Csock::Csock( const CS_STRING & sHostname, uint16_t iport, int iTimeout ) : CSockCommon() { #ifdef HAVE_LIBSSL m_pCerVerifyCB = NULL; #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_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_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; #endif /* HAVE_LIBSSL */ 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.size() ) { 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 ) { struct sockaddr_storage cAddr; socklen_t iAddrLen = sizeof( cAddr ); cs_sock_t 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 ); } bool Csock::AcceptSSL() { #ifdef HAVE_LIBSSL if( !m_ssl ) if( !SSLServerSetup() ) return( false ); 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 ); } 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 ) { 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; 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 /* Fall through if SSL2 is disabled */ case SSL23: default: 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__ ); } } 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 ? m_pCerVerifyCB : _CertVerifyCB ) ); SSL_set_ex_data( m_ssl, GetCsockClassIdx(), this ); SSLFinishSetup( m_ssl ); return( true ); #else return( false ); #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 */ switch( m_iMethod ) { case SSL3: m_ssl_ctx = SSL_CTX_new( SSLv3_server_method() ); if( !m_ssl_ctx ) { CS_DEBUG( "WARNING: MakeConnection .... SSLv3_server_method failed!" ); return( false ); } break; case TLS1: m_ssl_ctx = SSL_CTX_new( TLSv1_server_method() ); if( !m_ssl_ctx ) { CS_DEBUG( "WARNING: MakeConnection .... TLSv1_server_method failed!" ); return( false ); } break; #ifndef OPENSSL_NO_SSL2 case SSL2: m_ssl_ctx = SSL_CTX_new( SSLv2_server_method() ); if( !m_ssl_ctx ) { CS_DEBUG( "WARNING: MakeConnection .... SSLv2_server_method failed!" ); return( false ); } break; #endif /* Fall through if SSL2 is disabled */ case SSL23: default: m_ssl_ctx = SSL_CTX_new( SSLv23_server_method() ); if( !m_ssl_ctx ) { CS_DEBUG( "WARNING: MakeConnection .... SSLv23_server_method failed!" ); return( false ); } break; } SSL_CTX_set_default_verify_paths( m_ssl_ctx ); // set the pemfile password SSL_CTX_set_default_passwd_cb( m_ssl_ctx, _PemPassCB ); SSL_CTX_set_default_passwd_cb_userdata( m_ssl_ctx, ( void * )this ); if( m_sPemFile.empty() || access( m_sPemFile.c_str(), R_OK ) != 0 ) { CS_DEBUG( "There is a problem with [" << m_sPemFile << "]" ); return( false ); } // // set up the CTX if( SSL_CTX_use_certificate_chain_file( m_ssl_ctx, m_sPemFile.c_str() ) <= 0 ) { CS_DEBUG( "Error with PEM file [" << m_sPemFile << "]" ); SSLErrors( __FILE__, __LINE__ ); return( false ); } 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__ ); return( false ); } // 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 << "]" ); return( false ); } DH * dhParams = PEM_read_DHparams( dhParamsFile, NULL, NULL, NULL ); fclose( dhParamsFile ); if( dhParams ) { SSL_CTX_set_options( m_ssl_ctx, SSL_OP_SINGLE_DH_USE ); if( !SSL_CTX_set_tmp_dh( m_ssl_ctx, dhParams ) ) { CS_DEBUG( "Error setting ephemeral DH parameters from [" << m_sPemFile << "]" ); SSLErrors( __FILE__, __LINE__ ); DH_free( dhParams ); return( false ); } 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(); } if( SSL_CTX_set_cipher_list( m_ssl_ctx, m_sCipherType.c_str() ) <= 0 ) { CS_DEBUG( "Could not assign cipher [" << m_sCipherType << "]" ); return( false ); } // // setup the SSL m_ssl = SSL_new( m_ssl_ctx ); if( !m_ssl ) return( false ); // 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 ? m_pCerVerifyCB : _CertVerifyCB ) ); SSL_set_ex_data( m_ssl, GetCsockClassIdx(), 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 */ } 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 ); } bool Csock::Write( const char *data, size_t len ) { m_sSend.append( data, len ); if( m_sSend.empty() ) return( true ); if( m_eConState != CST_OK ) return( true ); // rate shaping size_t iBytesToSend = 0; #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( m_sSend.length() < iBytesToSend ) iBytesToSend = m_sSend.length(); // add up the bytes sent m_iLastSend += iBytesToSend; // so, are we ready to send anything ? if( iBytesToSend == 0 ) return( true ); } else { iBytesToSend = m_sSend.length(); } #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(), 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(); m_sSend.erase( 0, 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(), iBytesToSend, 0 ); #else cs_ssize_t bytes = write( m_iWriteSock, m_sSend.data(), 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 ) { m_sSend.erase( 0, 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 ) { 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() { 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() { 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 ); } void Csock::SetRSock( cs_sock_t iSock ) { m_iReadSock = iSock; } cs_sock_t & Csock::GetWSock() { 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 ); } void Csock::ResetTimer() { m_iLastCheckTimeoutTime = 0; m_iTcount = 0; } void Csock::PauseRead() { m_bPauseRead = true; } bool Csock::IsReadPaused() { 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.size() ) 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 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 } CS_STRING & Csock::GetInternalReadBuffer() { return( m_sbuffer ); } CS_STRING & Csock::GetInternalWriteBuffer() { 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 ) { 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 ) { 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() { if( m_iRemotePort > 0 ) return( m_iRemotePort ); GetRemoteIP(); return( m_iRemotePort ); } uint16_t Csock::GetLocalPort() { if( m_iLocalPort > 0 ) return( m_iLocalPort ); GetLocalIP(); return( m_iLocalPort ); } uint16_t Csock::GetPort() { 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() { 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() { return( m_sCipherType ); } void Csock::SetPemLocation( const CS_STRING & sPemFile ) { m_sPemFile = sPemFile; } const CS_STRING & Csock::GetPemLocation() { 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() { return( m_iMethod ); } void Csock::SetSSLObject( SSL *ssl ) { m_ssl = ssl; } void Csock::SetCTXObject( SSL_CTX *sslCtx ) { m_ssl_ctx = sslCtx; } SSL_SESSION * Csock::GetSSLSession() { if( m_ssl ) return( SSL_get_session( m_ssl ) ); return( NULL ); } #endif /* HAVE_LIBSSL */ const CS_STRING & Csock::GetWriteBuffer() { return( m_sSend ); } void Csock::ClearWriteBuffer() { m_sSend.clear(); } bool Csock::SslIsEstablished() { 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() { if( m_ssl ) return( SSL_get_peer_certificate( m_ssl ) ); return( NULL ); } CS_STRING Csock::GetPeerPubKey() { 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 ) { 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() { 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() { return( m_sParentName ); } void Csock::SetRate( u_int iBytes, uint64_t iMilliseconds ) { m_iMaxBytes = iBytes; m_iMaxMilliSeconds = iMilliseconds; } u_int Csock::GetRateBytes() { return( m_iMaxBytes ); } uint64_t Csock::GetRateTime() { 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 ) { if( m_iLastCheckTimeoutTime == 0 ) return( 0 ); return(( iNow > 0 ? iNow : time( NULL ) ) - m_iLastCheckTimeoutTime ); } time_t Csock::GetNextCheckTimeout( time_t iNow ) { 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() { #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; #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; m_iMethod = SSL23; m_sCipherType = "ALL"; m_iMaxBytes = 0; m_iMaxMilliSeconds = 0; m_iLastSendTime = 0; m_iLastSend = 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 */ } ////////////////////////// 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->size() ) 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->size() || m_vcMonitorFD.size() ); } 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->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( int iFd, std::map< int, short > & miiReadyFds, ECheckType eType ) { std::map< int, 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( int iFd, std::map< int, short > & miiReadyFds, ECheckType eType ) { std::map< int, short >::iterator it = miiReadyFds.find( iFd ); if( it != miiReadyFds.end() ) return(( it->second & eType ) ); return( false ); } int CSocketManager::Select( std::map< int, 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< int, 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< int, 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< int, short >::iterator it = miiReadyFds.begin(); it != miiReadyFds.end(); ++it ) { iHighestFD = std::max( it->first, iHighestFD ); 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< int, 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< int, 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->GetWriteBuffer().empty() ) ) { 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 > FD_SETSIZE || iWSock > 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->GetWriteBuffer().empty(); 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->GetWriteBuffer().empty() && 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.2/src/FileUtils.cpp0000644000175000017500000003651312235710266015601 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 #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 // Windows (or maybe cygwin?) sometimes fails to rename() file over an existing file // We don't want to remove the old file before moving new file over, for the case if the following rename() will fail for any reason CString sTempFile = sNewFileName + CUtils::FormatTime(time(NULL), "_%Y%m%d-%H%M%S_", "UTC") + CString::RandomString(10).MD5(); // this file shouldn't exist :) bool result = rename(sNewFileName.c_str(), sTempFile.c_str()) == 0; result &&= rename(sOldFileName.c_str(), sNewFileName.c_str()) == 0; result &&= Delete(sTempFile); // ok, renamed the file successfully, it's safe to remove backup of old file now return result; #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.2/src/Buffer.cpp0000644000175000017500000000661512235710266015112 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 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); CString s_msec(m_time.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 = m_time.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 "@time=" + CString(sTime) + "." + s_msec + "Z " + 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.2/src/WebModules.cpp0000644000175000017500000006222512235710266015746 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::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); 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; }; 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)); } bool CWebSession::IsAdmin() const { return IsLoggedIn() && m_pUser->IsAdmin(); } CWebAuth::CWebAuth(CWebSock* pWebSock, const CString& sUsername, const CString& sPassword) : CAuthBase(sUsername, sPassword, pWebSock) { m_pWebSock = pWebSock; } 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) { CSmartPtr spSession = m_pWebSock->GetSession(); spSession->SetUser(&User); m_pWebSock->SetLoggedIn(true); m_pWebSock->UnPauseRead(); 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) { CSmartPtr spSession = m_pWebSock->GetSession(); spSession->AddError("Invalid login!"); spSession->SetUser(NULL); m_pWebSock->SetLoggedIn(false); m_pWebSock->UnPauseRead(); 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() : CHTTPSock(NULL) { m_bPathsSet = false; m_Template.AddTagHandler(new CZNCTagHandler(*this)); } CWebSock::~CWebSock() { if (!m_spAuth.IsNull()) { 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(); 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) { CUser* pUser = pModule->GetUser(); m_Template["ModUser"] = pUser ? pUser->GetUserName() : ""; m_Template["ModName"] = pModule->GetModName(); if (m_Template.find("Title") == m_Template.end()) { m_Template["Title"] = pModule->GetWebMenuTitle(); } } 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); // 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); /* 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; } CSmartPtr CWebSock::GetSession() { if (!m_spSession.IsNull()) { return m_spSession; } const CString sCookieSessionId = GetRequestCookie("SessionId"); CSmartPtr *pSession = Sessions.m_mspSessions.GetItem(sCookieSessionId); if (pSession != NULL) { // Refresh the timeout Sessions.m_mspSessions.AddItem((*pSession)->GetId(), *pSession); m_spSession = *pSession; DEBUG("Found existing session from cookie: [" + sCookieSessionId + "] IsLoggedIn(" + CString((*pSession)->IsLoggedIn() ? "true" : "false") + ")"); return *pSession; } if (Sessions.m_mIPSessions.count(GetRemoteIP()) > m_uiMaxSessions) { mIPSessionsIterator it = Sessions.m_mIPSessions.find(GetRemoteIP()); 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)); CSmartPtr spSession(new CWebSession(sSessionID, GetRemoteIP())); Sessions.m_mspSessions.AddItem(spSession->GetId(), spSession); m_spSession = spSession; return spSession; } CString CWebSock::GetCSRFCheck() { CSmartPtr pSession = GetSession(); return pSession->GetId().MD5(); } bool CWebSock::OnLogin(const CString& sUser, const CString& sPass) { DEBUG("=================== CWebSock::OnLogin()"); m_spAuth = new CWebAuth(this, sUser, sPass); // 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() { CSmartPtr spSession = GetSession(); if (spSession->IsLoggedIn() && !spSession->GetUser()->GetSkinName().empty()) { return spSession->GetUser()->GetSkinName(); } return CZNC::Get().GetSkinName(); } znc-1.2/src/Modules.cpp0000644000175000017500000012403212235710266015303 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 #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(); } 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::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); } 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, func, sArgs, sDesc); return AddCommand(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(this, sLine); return true; } OnUnknownModCommand(sLine); return false; } void CModule::HandleHelpCommand(const CString& sLine) { CString sFilter = sLine.Token(1, true); 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) { if (sFilter.empty() || (it->second.GetCommand().Equals(sFilter, false, iFilterLength))) { it->second.AddHelp(Table); } } 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::OnChanPermission(const CNick& OpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) {} void CModule::OnOp(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) {} void CModule::OnDeop(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) {} void CModule::OnVoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) {} void CModule::OnDevoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) {} void CModule::OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs) {} void CModule::OnMode(const CNick& OpNick, 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) {} 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; } 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; } 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(CSmartPtr 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::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::OnOp(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { MODUNLOADCHK(OnOp(OpNick, 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::OnVoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { MODUNLOADCHK(OnVoice(OpNick, 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::OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs) { MODUNLOADCHK(OnRawMode(OpNick, Channel, sModes, sArgs)); 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::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::OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine) { MODHALTCHK(OnChanBufferPlayLine(Chan, Client, sLine)); } 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::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(CSmartPtr 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 + "] "; } 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); } 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, ModCmdFunc func, const CString& sArgs, const CString& sDesc) : m_sCmd(sCmd), m_pFunc(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.2/src/Chan.cpp0000644000175000017500000003724512235710266014555 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 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; SetBufferCount(m_pNetwork->GetUser()->GetBufferCount(), true); SetAutoClearChanBuffer(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("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() { CConfig config; CUser *pUser = m_pNetwork->GetUser(); if (pUser->GetBufferCount() != GetBufferCount()) config.AddKeyValuePair("Buffer", CString(GetBufferCount())); if (pUser->AutoClearChanBuffer() != AutoClearChanBuffer()) config.AddKeyValuePair("AutoClearChanBuffer", CString(AutoClearChanBuffer())); if (IsDetached()) config.AddKeyValuePair("Detached", "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()) { JoinUser(false, ""); } else { DetachUser(); } } SetDetached(chan.IsDetached()); } } void CChan::Cycle() const { m_pNetwork->PutIRC("PART " + GetName() + "\r\nJOIN " + GetName() + " " + GetKey()); } void CChan::JoinUser(bool bForce, const CString& sKey, CClient* pClient) { if (!bForce && (!IsOn() || !IsDetached())) { m_pNetwork->PutIRC("JOIN " + GetName() + " " + ((sKey.empty()) ? GetKey() : sKey)); SetDetached(false); return; } 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; vector& vpClients = m_pNetwork->GetClients(); for (vector::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; } } void CChan::AttachUser() { if (m_bDetached) { m_pNetwork->PutUser(":" + m_pNetwork->GetIRCNick().GetNickMask() + " JOIN " + GetName()); m_bDetached = false; } } 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_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; } if (pOpNick) { NETWORKMODULECALL(OnRawMode(*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); } } if (uMode && pOpNick) { NETWORKMODULECALL(OnChanPermission(*pOpNick, *pNick, *this, uMode, bAdd, bNoChange), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING); if (uMode == CChan::M_Op) { if (bAdd) { NETWORKMODULECALL(OnOp(*pOpNick, *pNick, *this, bNoChange), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING); } else { NETWORKMODULECALL(OnDeop(*pOpNick, *pNick, *this, bNoChange), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING); } } else if (uMode == CChan::M_Voice) { if (bAdd) { NETWORKMODULECALL(OnVoice(*pOpNick, *pNick, *this, bNoChange), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING); } else { NETWORKMODULECALL(OnDevoice(*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; } if (pOpNick) { bool bNoChange; if (bList) { bNoChange = false; } else if (bAdd) { bNoChange = HasMode(uMode) && GetModeArg(uMode) == sArg; } else { bNoChange = !HasMode(uMode); } NETWORKMODULECALL(OnMode(*pOpNick, *this, uMode, sArg, bAdd, bNoChange), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING); } if (!bList) { (bAdd) ? AddMode(uMode, sArg) : RemMode(uMode); } } } } CString CChan::GetOptions() const { CString sRet; if (IsDetached()) { sRet += (sRet.empty()) ? "Detached" : ", Detached"; } if (AutoClearChanBuffer()) { sRet += (sRet.empty()) ? "AutoClearChanBuffer" : ", AutoClearChanBuffer"; } return sRet; } 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) { 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 (!m_Buffer.IsEmpty()) { const vector & vClients = m_pNetwork->GetClients(); for (size_t uClient = 0; uClient < vClients.size(); ++uClient) { CClient * pUseClient = (pClient ? pClient : vClients[uClient]); 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); } size_t uSize = m_Buffer.Size(); for (size_t uIdx = 0; uIdx < uSize; uIdx++) { CString sLine = m_Buffer.GetLine(uIdx, *pUseClient); bool bNotShowThisLine = false; NETWORKMODULECALL(OnChanBufferPlayLine(*this, *pUseClient, sLine), 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 (pClient) break; } if (AutoClearChanBuffer()) { ClearBuffer(); } } } } void CChan::Enable() { ResetJoinTries(); m_bDisabled = false; } znc-1.2/src/Utils.cpp0000644000175000017500000003726412235710266015005 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 #ifdef HAVE_LIBSSL #include #endif /* HAVE_LIBSSL */ #include // Required with GCC 4.3+ if openssl is disabled #include #include using std::map; using std::stringstream; using std::vector; CUtils::CUtils() {} CUtils::~CUtils() {} #ifdef HAVE_LIBSSL 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, "C", MBSTRING_ASC, (unsigned char *)"US", -1, -1, 0); X509_NAME_add_entry_by_txt(pName, "ST", MBSTRING_ASC, (unsigned char *)"SomeState", -1, -1, 0); X509_NAME_add_entry_by_txt(pName, "L", MBSTRING_ASC, (unsigned char *)"SomeCity", -1, -1, 0); X509_NAME_add_entry_by_txt(pName, "O", MBSTRING_ASC, (unsigned char *)"SomeCompany", -1, -1, 0); 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_sha1())) { X509_free(pCert); EVP_PKEY_free(pKey); return; } PEM_write_X509(pOut, pCert); X509_free(pCert); EVP_PKEY_free(pKey); } } #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 = CUtils::GetPass("Enter Password"); CString pass2 = CUtils::GetPass("Confirm Password"); if (!pass1.Equals(pass2, true)) { CUtils::PrintError("The supplied passwords did not match"); } else if (pass1.empty()) { CUtils::PrintError("You can not use an empty password"); } 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(); } void CUtils::PrintError(const CString& sMessage) { if (CDebug::StdoutIsTTY()) fprintf(stdout, "\033[1m\033[34m[\033[31m ** \033[34m]\033[39m\033[22m %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, "\033[1m\033[34m[\033[33m ?? \033[34m]\033[39m\033[22m %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, "\033[1m\033[34m[\033[33m ** \033[34m]\033[39m\033[22m \033[1m%s\033[22m\n", sMessage.c_str()); else fprintf(stdout, "\033[1m\033[34m[\033[33m ** \033[34m]\033[39m\033[22m %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, "\033[1m\033[34m[\033[32m \033[34m]\033[39m\033[22m %s... ", sMessage.c_str()); else fprintf(stdout, "%s... ", sMessage.c_str()); fflush(stdout); } void CUtils::PrintStatus(bool bSuccess, const CString& sMessage) { if (CDebug::StdoutIsTTY()) { if (!sMessage.empty()) { if (bSuccess) { fprintf(stdout, "%s", sMessage.c_str()); } else { fprintf(stdout, "\033[1m\033[34m[\033[31m %s \033[34m]" "\033[39m\033[22m", sMessage.c_str()); } } fprintf(stdout, "\r"); if (bSuccess) { fprintf(stdout, "\033[1m\033[34m[\033[32m ok \033[34m]\033[39m\033[22m\n"); } else { fprintf(stdout, "\033[1m\033[34m[\033[31m !! \033[34m]\033[39m\033[22m\n"); } } 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; } 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() { SCString result; FillTimezones("/usr/share/zoneinfo", result, ""); return result; } bool CTable::AddColumn(const CString& sName) { for (unsigned int a = 0; a < m_vsHeaders.size(); a++) { if (m_vsHeaders[a].Equals(sName)) { return false; } } m_vsHeaders.push_back(sName); m_msuWidths[sName] = sName.size(); 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 (!size()) { return false; } uRowIdx = size() -1; } unsigned int uColIdx = GetColumnIndex(sColumn); if (uColIdx == (unsigned int) -1) return false; (*this)[uRowIdx][uColIdx] = sValue; if (m_msuWidths[sColumn] < sValue.size()) m_msuWidths[sColumn] = sValue.size(); return true; } bool CTable::GetLine(unsigned int uIdx, CString& sLine) const { stringstream ssRet; if (empty()) { return false; } if (uIdx == 1) { ssRet.fill(' '); ssRet << "| "; for (unsigned int a = 0; a < m_vsHeaders.size(); a++) { ssRet.width(GetColumnWidth(a)); ssRet << std::left << m_vsHeaders[a]; ssRet << ((a == m_vsHeaders.size() -1) ? " |" : " | "); } sLine = ssRet.str(); return true; } else if ((uIdx == 0) || (uIdx == 2) || (uIdx == (size() +3))) { ssRet.fill('-'); ssRet << "+-"; for (unsigned int a = 0; a < m_vsHeaders.size(); a++) { ssRet.width(GetColumnWidth(a)); ssRet << std::left << "-"; ssRet << ((a == m_vsHeaders.size() -1) ? "-+" : "-+-"); } sLine = ssRet.str(); return true; } else { uIdx -= 3; if (uIdx < size()) { const vector& mRow = (*this)[uIdx]; ssRet.fill(' '); ssRet << "| "; for (unsigned int c = 0; c < m_vsHeaders.size(); c++) { ssRet.width(GetColumnWidth(c)); ssRet << std::left << mRow[c]; ssRet << ((c == m_vsHeaders.size() -1) ? " |" : " | "); } sLine = ssRet.str(); return true; } } return false; } 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; } const CString& sColName = m_vsHeaders[uIdx]; map::const_iterator it = m_msuWidths.find(sColName); if (it == m_msuWidths.end()) { // AddColumn() and SetCell() should make sure that we get a value :/ return 0; } return it->second; } void CTable::Clear() { clear(); m_vsHeaders.clear(); m_msuWidths.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.2/src/HTTPSock.cpp0000644000175000017500000004427112235710266015300 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 #ifdef HAVE_ZLIB #include #endif using std::map; using std::set; #define MAX_POST_SIZE 1024 * 1024 CHTTPSock::CHTTPSock(CModule *pMod) : CSocket(pMod) { Init(); } CHTTPSock::CHTTPSock(CModule *pMod, const CString& sHostname, unsigned short uPort, int iTimeout) : CSocket(pMod, sHostname, uPort, iTimeout) { 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, ":"); m_bLoggedIn = OnLogin(m_sUser, m_sPass); } 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("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()) { m_bGotHeader = true; if (m_bPost) { m_sPostData = GetInternalReadBuffer(); CheckPost(); } else { GetPage(); } DisableReadLine(); } } 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 << "] "); 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); 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; } 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) + " at " + GetLocalIP().Escape_n(CString::EHTML) + " Port " + CString(GetLocalPort()) + "
\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) { 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; } DEBUG("- Redirect to [" << sURL << "]"); AddHeader("Location", sURL); PrintErrorPage(302, "Found", "The document has moved here."); return true; } void CHTTPSock::Connected() { SetTimeout(120); } znc-1.2/src/ZNCString.cpp0000644000175000017500000007207512235710266015525 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 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, unsigned long 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, unsigned long 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, bool bCaseSensitive, unsigned long 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; } 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; } } 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; } } sRet.reserve(0); 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; } } 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.2/src/main.cpp0000644000175000017500000002525312235710266014624 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 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) + "]"); delete &CZNC::Get(); 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_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 = ""; 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 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("Specifying a config file as an argument isn't supported anymore."); CUtils::PrintError("Use --datadir instead."); return 1; } CZNC* pZNC = &CZNC::Get(); pZNC->InitDirs(((argc) ? argv[0] : ""), sDataDir); #ifdef HAVE_LIBSSL if (bMakePem) { pZNC->WritePemFile(); delete pZNC; 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."); delete pZNC; 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)) { delete pZNC; 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) { delete pZNC; 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)) { delete pZNC; return 0; } /* Fall through to normal bootup */ } if (!pZNC->ParseConfig(sConfig)) { CUtils::PrintError("Unrecoverable config error."); delete pZNC; return 1; } if (!pZNC->OnBoot()) { CUtils::PrintError("Exiting due to module boot errors."); delete pZNC; 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)); delete pZNC; 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."); delete pZNC; 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 delete pZNC; execvp(args[0], args); CUtils::PrintError("Unable to restart ZNC [" + CString(strerror(errno)) + "]"); } /* Fall through */ default: iRet = 1; } } delete pZNC; return iRet; } znc-1.2/src/Client.cpp0000644000175000017500000006320412235710266015114 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 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.IsNull()) { 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. " "Try /quote PASS :"); } 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(); // [user[/network]:]password if (sAuthLine.find(":") == CString::npos) { m_sPass = sAuthLine; sAuthLine = ""; } else { m_sPass = sAuthLine.Token(1, true, ":"); sAuthLine = sAuthLine.Token(0, false, ":"); } if (!sAuthLine.empty()) { m_sUser = sAuthLine.Token(0, false, "/"); m_sNetwork = sAuthLine.Token(1, true, "/"); } 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")) { // user[/network] CString sAuthLine = sLine.Token(1); if (m_sUser.empty() && !sAuthLine.empty()) { m_sUser = sAuthLine.Token(0, false, "/"); m_sNetwork = sAuthLine.Token(1, true, "/"); } 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 sTarget = sLine.Token(1); CString sMsg = sLine.Token(2, true).TrimPrefix_n(); if (sTarget.TrimPrefix(m_pUser->GetStatusPrefix())) { if (!sTarget.Equals("status")) { CALLMOD(sTarget, this, m_pUser, m_pNetwork, OnModNotice(sMsg)); } return; } if (sMsg.WildCmp("\001*\001")) { CString sCTCP = sMsg; sCTCP.LeftChomp(); sCTCP.RightChomp(); NETWORKMODULECALL(OnUserCTCPReply(sTarget, sCTCP), m_pUser, m_pNetwork, this, &bReturn); if (bReturn) return; sMsg = "\001" + sCTCP + "\001"; } else { NETWORKMODULECALL(OnUserNotice(sTarget, sMsg), m_pUser, m_pNetwork, this, &bReturn); if (bReturn) return; } 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!"); return; } 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 if (m_pNetwork->IsChan(sTarget)) { vector& vClients = GetClients(); for (unsigned int a = 0; a < vClients.size(); a++) { CClient* pClient = vClients[a]; if (pClient != this) { pClient->PutClient(":" + GetNickMask() + " NOTICE " + sTarget + " :" + sMsg); } } } PutIRC("NOTICE " + sTarget + " :" + sMsg); return; } } else if (sCommand.Equals("PRIVMSG")) { CString sTarget = sLine.Token(1); CString sMsg = sLine.Token(2, true).TrimPrefix_n(); 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)); } return; } if (m_pNetwork) { CChan* pChan = m_pNetwork->FindChan(sTarget); if (sCTCP.Token(0).Equals("ACTION")) { CString sMessage = sCTCP.Token(1, true); NETWORKMODULECALL(OnUserAction(sTarget, sMessage), m_pUser, m_pNetwork, this, &bReturn); if (bReturn) return; sCTCP = "ACTION " + sMessage; if (pChan && (!pChan->AutoClearChanBuffer() || !m_pNetwork->IsUserOnline())) { pChan->AddBuffer(":" + _NAMEDFMT(GetNickMask()) + " PRIVMSG " + _NAMEDFMT(sTarget) + " :\001ACTION {text}\001", sMessage); } // Relay to the rest of the clients that may be connected to this user if (m_pNetwork->IsChan(sTarget)) { vector& vClients = GetClients(); for (unsigned int a = 0; a < vClients.size(); a++) { CClient* pClient = vClients[a]; if (pClient != this) { pClient->PutClient(":" + GetNickMask() + " PRIVMSG " + sTarget + " :\001" + sCTCP + "\001"); } } } } else { NETWORKMODULECALL(OnUserCTCP(sTarget, sCTCP), m_pUser, m_pNetwork, this, &bReturn); if (bReturn) return; } PutIRC("PRIVMSG " + sTarget + " :\001" + sCTCP + "\001"); } return; } if (sTarget.TrimPrefix(m_pUser->GetStatusPrefix())) { if (sTarget.Equals("status")) { UserCommand(sMsg); } else { CALLMOD(sTarget, this, m_pUser, m_pNetwork, OnModCommand(sMsg)); } return; } NETWORKMODULECALL(OnUserMsg(sTarget, sMsg), m_pUser, m_pNetwork, this, &bReturn); if (bReturn) return; 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!"); return; } if (m_pNetwork) { CChan* pChan = m_pNetwork->FindChan(sTarget); if ((pChan) && (!pChan->AutoClearChanBuffer() || !m_pNetwork->IsUserOnline())) { pChan->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 if (m_pNetwork->IsChan(sTarget)) { vector& vClients = GetClients(); for (unsigned int a = 0; a < vClients.size(); a++) { CClient* pClient = vClients[a]; if (pClient != this) { pClient->PutClient(":" + GetNickMask() + " PRIVMSG " + sTarget + " :" + sMsg); } } } } return; } if (!m_pNetwork) { return; // The following commands require a network } if (sCommand.Equals("DETACH")) { CString sChannels = sLine.Token(1).TrimPrefix_n(); if (sChannels.empty()) { PutStatusNotice("Usage: /detach <#chan>"); return; } VCString vChans; sChannels.Split(",", vChans, false); sChannels.clear(); for (VCString::const_iterator channelIterator = vChans.begin(); channelIterator != vChans.end(); ++channelIterator) { CString sChannel = *channelIterator; CChan *pChannel = m_pNetwork->FindChan(sChannel); if (pChannel) { pChannel->DetachUser(); } else { PutStatusNotice("You are not on [" + sChannel + "]"); } } return; } else if (sCommand.Equals("JOIN")) { CString sChans = sLine.Token(1).TrimPrefix_n(); CString sKey = sLine.Token(2); VCString vChans; sChans.Split(",", vChans, false); sChans.clear(); for (unsigned int a = 0; a < vChans.size(); a++) { CString sChannel = vChans[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) { pChan->JoinUser(false, sKey); continue; } if (!sChannel.empty()) { sChans += (sChans.empty()) ? sChannel : CString("," + sChannel); } } if (sChans.empty()) { return; } sLine = "JOIN " + sChans; if (!sKey.empty()) { sLine += " " + sKey; } } 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); } } } vector& CClient::GetClients() { 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 = new CClientAuth(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(540, TMO_READ); SetSockName("USR::" + m_pUser->GetUserName()); 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() { if (!m_pUser) return GetRemoteIP(); if (!m_pNetwork) return m_pUser->GetUserName(); return m_pUser->GetUserName() + "/" + m_pNetwork->GetName(); } void CClient::PutClient(const CString& sLine) { DEBUG("(" << GetFullName() << ") ZNC -> CLI [" << sLine << "]"); Write(sLine + "\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->GetBindHost() : m_pUser->GetIdent()) + "@" + sHost; } void CClient::RespondCap(const CString& sResponse) { PutClient(":irc.znc.in CAP " + GetNick() + " " + sResponse); } void CClient::HandleCap(const CString& sLine) { //TODO support ~ and = modifiers CString sSubCmd = sLine.Token(1); 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"); 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); 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; } 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"); } 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() + " :Invalid CAP subcommand"); } } znc-1.2/src/Threads.cpp0000644000175000017500000000652712235710266015275 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 #ifdef HAVE_PTHREAD /* 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(const CJob* job) const { // 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 { 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); } a->runMain(); delete a; } CThreadPool::~CThreadPool() { /* Anyone has an idea how this can be done less ugly? */ CMutexLocker guard(m_mutex); m_done = true; while (m_num_threads > 0) { m_cond.broadcast(); guard.unlock(); usleep(100); guard.lock(); } } 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++; 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--; guard.unlock(); job->runThread(); jobDone(job); guard.lock(); m_num_idle++; } assert(m_num_threads > 0 && m_num_idle > 0); m_num_threads--; m_num_idle--; } 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 CThread::startThread(threadPoolFunc, this); } #endif // HAVE_PTHREAD znc-1.2/src/Listener.cpp0000644000175000017500000001150112235710266015454 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 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_pParent->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_pParent->GetAcceptType()); 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) : CZNCSock(sHostname, uPort) { 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); 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(); 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.2/src/IRCSock.cpp0000644000175000017500000011264112235710266015133 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 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) : CZNCSock() { 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()); 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->GetUser()->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(540, TMO_READ); // Now that we are connected, let nature take its course PutIRC("WHO " + sNick); m_bAuthed = true; m_pNetwork->PutStatus("Connected!"); 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)); 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 vector& vClients = m_pNetwork->GetClients(); vector::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->AddQueryBuffer(":" + _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()) { // If the user is detached, add to the buffer m_pNetwork->AddQueryBuffer(":" + _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(); } 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 false; } 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->AddQueryBuffer(":" + _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()) { // If the user is detached, add to the buffer m_pNetwork->AddQueryBuffer(":" + _NAMEDFMT(Nick.GetNickMask()) + " PRIVMSG {target} :{text}", sMessage); } return false; } bool CIRCSock::OnChanCTCP(CNick& Nick, const CString& sChan, CString& sMessage) { CChan* pChan = m_pNetwork->FindChan(sChan); if (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) { 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) { 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--; DEBUG("(" << m_pNetwork->GetUser()->GetUserName() << "/" << m_pNetwork->GetName() << ") ZNC -> IRC [" << m_vsSendQueue.front() << "]"); Write(m_vsSendQueue.front() + "\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..."); } } 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 { vector& vClients = m_pNetwork->GetClients(); vector::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; if (sLastNick.Equals(sConfNick)) { if ((!sAltNick.empty()) && (!sConfNick.Equals(sAltNick))) { sNewNick = sAltNick; } else { sNewNick = sConfNick.Left(uMax - 1) + "-"; } } else if (sLastNick.Equals(sAltNick)) { sNewNick = sConfNick.Left(uMax -1) + "-"; } else if (sLastNick.Equals(CString(sConfNick.Left(uMax -1) + "-"))) { sNewNick = sConfNick.Left(uMax -1) + "|"; } else if (sLastNick.Equals(CString(sConfNick.Left(uMax -1) + "|"))) { sNewNick = sConfNick.Left(uMax -1) + "^"; } else if (sLastNick.Equals(CString(sConfNick.Left(uMax -1) + "^"))) { sNewNick = sConfNick.Left(uMax -1) + "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; } 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.2/src/Nick.cpp0000644000175000017500000001027412235710266014561 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 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); 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.2/src/ClientCommand.cpp0000644000175000017500000014546412235710266016424 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::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(); } 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 sChan = sLine.Token(1).MakeLower(); if (sChan.empty()) { PutStatus("Usage: Detach <#chan>"); return; } const vector& vChans = m_pNetwork->GetChans(); vector::const_iterator it; unsigned int uMatches = 0, uDetached = 0; for (it = vChans.begin(); it != vChans.end(); ++it) { CChan *pChannel = *it; CString channelName = pChannel->GetName().AsLower(); if (!channelName.WildCmp(sChan)) continue; uMatches++; if ((*it)->IsDetached()) continue; uDetached++; (*it)->DetachUser(); } PutStatus("There were [" + CString(uMatches) + "] channels matching [" + sChan + "]"); 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"); 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()); } } 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); 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 sChan = sLine.Token(1, true); if (sChan.empty()) { PutStatus("Usage: EnableChan "); } else { const vector& vChans = m_pNetwork->GetChans(); vector::const_iterator it; unsigned int uMatches = 0, uEnabled = 0; for (it = vChans.begin(); it != vChans.end(); ++it) { if (!(*it)->GetName().WildCmp(sChan)) continue; uMatches++; if (!(*it)->IsDisabled()) continue; uEnabled++; (*it)->Enable(); } PutStatus("There were [" + CString(uMatches) + "] channels matching [" + sChan + "]"); PutStatus("Enabled [" + CString(uEnabled) + "] 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("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->AutoClearChanBuffer()) ? "*" : "") + CString(pChan->GetBufferCount())); 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 few old ones 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 old-user old-network new-user [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; } } CFile fOldNVFile = CFile(sOldModPath + "/.registry"); if (!fOldNVFile.Exists()) { continue; } if (!CFile::Exists(sNewModPath)) { CDir::MakeDir(sNewModPath); } fOldNVFile.Copy(sNewModPath + "/.registry"); } 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("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"); } else if (sCommand.Equals("CLEARUSERBINDHOST") && (m_pUser->IsAdmin() || !m_pUser->DenySetBindHost())) { m_pUser->SetBindHost(""); PutStatus("Bind host cleared"); } 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 sChan = sLine.Token(1); if (sChan.empty()) { PutStatus("Usage: PlayBuffer <#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; } if (pChan->GetBuffer().IsEmpty()) { PutStatus("The buffer for [" + sChan + "] is empty"); return; } pChan->SendBuffer(this); } else if (sCommand.Equals("CLEARBUFFER")) { 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: ClearBuffer <#chan>"); return; } CChan* pChan = m_pNetwork->FindChan(sChan); if (!pChan) { PutStatus("You are not on [" + sChan + "]"); return; } const vector& vChans = m_pNetwork->GetChans(); vector::const_iterator it; unsigned int uMatches = 0; for (it = vChans.begin(); it != vChans.end(); ++it) { if (!(*it)->GetName().WildCmp(sChan)) continue; uMatches++; (*it)->ClearBuffer(); } PutStatus("The buffer for [" + CString(uMatches) + "] channels matching [" + sChan + "] has 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("SETBUFFER")) { 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: SetBuffer <#chan> [linecount]"); return; } unsigned int uLineCount = sLine.Token(2).ToUInt(); const vector& vChans = m_pNetwork->GetChans(); vector::const_iterator it; unsigned int uMatches = 0, uFail = 0; for (it = vChans.begin(); it != vChans.end(); ++it) { if (!(*it)->GetName().WildCmp(sChan)) continue; uMatches++; if (!(*it)->SetBufferCount(uLineCount)) uFail++; } PutStatus("BufferCount for [" + CString(uMatches - uFail) + "] channels was set to [" + CString(uLineCount) + "]"); if (uFail > 0) { PutStatus("Setting BufferCount failed for [" + CString(uFail) + "] channels, " "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"); 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"))); } 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]"); } else { bool bSSL = (sPort.Left(1).Equals("+")); const CString sBindHost = sLine.Token(4); CListener* pListener = new CListener(uPort, sBindHost, 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"); } } } } void CClient::HelpUser() { CTable Table; Table.AddColumn("Command"); Table.AddColumn("Arguments"); Table.AddColumn("Description"); PutStatus("In the following list all occurrences of <#chan> support wildcards (* and ?)"); PutStatus("(Except ListNicks)"); Table.AddRow(); Table.SetCell("Command", "Version"); Table.SetCell("Description", "Print which version of ZNC this is"); Table.AddRow(); Table.SetCell("Command", "ListMods"); Table.SetCell("Description", "List all loaded modules"); Table.AddRow(); Table.SetCell("Command", "ListAvailMods"); Table.SetCell("Description", "List all available modules"); if (!m_pUser->IsAdmin()) { // If they are an admin we will add this command below with an argument Table.AddRow(); Table.SetCell("Command", "ListChans"); Table.SetCell("Description", "List all channels"); } Table.AddRow(); Table.SetCell("Command", "ListNicks"); Table.SetCell("Arguments", "<#chan>"); Table.SetCell("Description", "List all nicks on a channel"); if (!m_pUser->IsAdmin()) { Table.AddRow(); Table.SetCell("Command", "ListClients"); Table.SetCell("Description", "List all clients connected to your ZNC user"); } Table.AddRow(); Table.SetCell("Command", "ListServers"); Table.SetCell("Description", "List all servers of current IRC network"); Table.AddRow(); Table.SetCell("Command", "AddNetwork"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Add a network to your user"); Table.AddRow(); Table.SetCell("Command", "DelNetwork"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Delete a network from your user"); Table.AddRow(); Table.SetCell("Command", "ListNetworks"); Table.SetCell("Description", "List all networks"); if (m_pUser->IsAdmin()) { Table.AddRow(); Table.SetCell("Command", "MoveNetwork"); Table.SetCell("Arguments", "old-user old-net new-user [new-net]"); Table.SetCell("Description", "Move an IRC network from one user to another"); } Table.AddRow(); Table.SetCell("Command", "JumpNetwork"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Jump to another network"); Table.AddRow(); Table.SetCell("Command", "AddServer"); Table.SetCell("Arguments", " [[+]port] [pass]"); Table.SetCell("Description", "Add a server to the list of alternate/backup servers of current IRC network."); Table.AddRow(); Table.SetCell("Command", "DelServer"); Table.SetCell("Arguments", " [port] [pass]"); Table.SetCell("Description", "Remove a server from the list of alternate/backup servers of current IRC network"); Table.AddRow(); Table.SetCell("Command", "Enablechan"); Table.SetCell("Arguments", "<#chan>"); Table.SetCell("Description", "Enable the channel"); Table.AddRow(); Table.SetCell("Command", "Detach"); Table.SetCell("Arguments", "<#chan>"); Table.SetCell("Description", "Detach from the channel"); Table.AddRow(); Table.SetCell("Command", "Topics"); Table.SetCell("Description", "Show topics in all your channels"); Table.AddRow(); Table.SetCell("Command", "PlayBuffer"); Table.SetCell("Arguments", "<#chan>"); Table.SetCell("Description", "Play back the buffer for a given channel"); Table.AddRow(); Table.SetCell("Command", "ClearBuffer"); Table.SetCell("Arguments", "<#chan>"); Table.SetCell("Description", "Clear the buffer for a given channel"); Table.AddRow(); Table.SetCell("Command", "ClearAllChannelBuffers"); Table.SetCell("Description", "Clear the channel buffers"); Table.AddRow(); Table.SetCell("Command", "SetBuffer"); Table.SetCell("Arguments", "<#chan> [linecount]"); Table.SetCell("Description", "Set the buffer count for a channel"); if (m_pUser->IsAdmin()) { Table.AddRow(); Table.SetCell("Command", "AddBindHost"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Adds a bind host for normal users to use"); Table.AddRow(); Table.SetCell("Command", "DelBindHost"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Removes a bind host from the list"); } if (m_pUser->IsAdmin() || !m_pUser->DenySetBindHost()) { Table.AddRow(); Table.SetCell("Command", "ListBindHosts"); Table.SetCell("Description", "Shows the configured list of bind hosts"); Table.AddRow(); Table.SetCell("Command", "SetBindHost"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Set the bind host for this connection"); Table.AddRow(); Table.SetCell("Command", "SetUserBindHost"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Set the default bind host for this user"); Table.AddRow(); Table.SetCell("Command", "ClearBindHost"); Table.SetCell("Description", "Clear the bind host for this connection"); Table.AddRow(); Table.SetCell("Command", "ClearUserBindHost"); Table.SetCell("Description", "Clear the default bind host for this user"); } Table.AddRow(); Table.SetCell("Command", "ShowBindHost"); Table.SetCell("Description", "Show currently selected bind host"); Table.AddRow(); Table.SetCell("Command", "Jump [server]"); Table.SetCell("Description", "Jump to the next or the specified server"); Table.AddRow(); Table.SetCell("Command", "Disconnect"); Table.SetCell("Arguments", "[message]"); Table.SetCell("Description", "Disconnect from IRC"); Table.AddRow(); Table.SetCell("Command", "Connect"); Table.SetCell("Description", "Reconnect to IRC"); Table.AddRow(); Table.SetCell("Command", "Uptime"); Table.SetCell("Description", "Show for how long ZNC has been running"); if (!m_pUser->DenyLoadMod()) { Table.AddRow(); Table.SetCell("Command", "LoadMod"); Table.SetCell("Arguments", "[--type=global|user|network] "); Table.SetCell("Description", "Load a module"); Table.AddRow(); Table.SetCell("Command", "UnloadMod"); Table.SetCell("Arguments", "[--type=global|user|network] "); Table.SetCell("Description", "Unload a module"); Table.AddRow(); Table.SetCell("Command", "ReloadMod"); Table.SetCell("Arguments", "[--type=global|user|network] "); Table.SetCell("Description", "Reload a module"); if (m_pUser->IsAdmin()) { Table.AddRow(); Table.SetCell("Command", "UpdateMod"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Reload a module everywhere"); } } Table.AddRow(); Table.SetCell("Command", "ShowMOTD"); Table.SetCell("Description", "Show ZNC's message of the day"); if (m_pUser->IsAdmin()) { Table.AddRow(); Table.SetCell("Command", "SetMOTD"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Set ZNC's message of the day"); Table.AddRow(); Table.SetCell("Command", "AddMOTD"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Append to ZNC's MOTD"); Table.AddRow(); Table.SetCell("Command", "ClearMOTD"); Table.SetCell("Description", "Clear ZNC's MOTD"); Table.AddRow(); Table.SetCell("Command", "ListPorts"); Table.SetCell("Description", "Show all active listeners"); Table.AddRow(); Table.SetCell("Command", "AddPort"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Add another port for ZNC to listen on"); Table.AddRow(); Table.SetCell("Command", "DelPort"); Table.SetCell("Arguments", ""); Table.SetCell("Description", "Remove a port from ZNC"); Table.AddRow(); Table.SetCell("Command", "Rehash"); Table.SetCell("Description", "Reload znc.conf from disk"); Table.AddRow(); Table.SetCell("Command", "SaveConfig"); Table.SetCell("Description", "Save the current settings to disk"); Table.AddRow(); Table.SetCell("Command", "ListUsers"); Table.SetCell("Description", "List all ZNC users and their connection status"); Table.AddRow(); Table.SetCell("Command", "ListAllUserNetworks"); Table.SetCell("Description", "List all ZNC users and their networks"); Table.AddRow(); Table.SetCell("Command", "ListChans"); Table.SetCell("Arguments", "[User ]"); Table.SetCell("Description", "List all channels"); Table.AddRow(); Table.SetCell("Command", "ListClients"); Table.SetCell("Arguments", "[User]"); Table.SetCell("Description", "List all connected clients"); Table.AddRow(); Table.SetCell("Command", "Traffic"); Table.SetCell("Description", "Show basic traffic stats for all ZNC users"); Table.AddRow(); Table.SetCell("Command", "Broadcast"); Table.SetCell("Arguments", "[message]"); Table.SetCell("Description", "Broadcast a message to all ZNC users"); Table.AddRow(); Table.SetCell("Command", "Shutdown"); Table.SetCell("Arguments", "[message]"); Table.SetCell("Description", "Shut down ZNC completely"); Table.AddRow(); Table.SetCell("Command", "Restart"); Table.SetCell("Arguments", "[message]"); Table.SetCell("Description", "Restart ZNC"); } PutStatus(Table); } znc-1.2/src/Socket.cpp0000644000175000017500000002341412235710266015125 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 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) { int ret = Csock::ConvertAddress(pAddr, iAddrLen, sIP, piPort); if (ret == 0) sIP.TrimPrefix("::ffff:"); return ret; } #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); } 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 addrinfo* aiTarget = NULL; addrinfo* aiBind = NULL; try { addrinfo* aiTarget4 = task->aiTarget; addrinfo* aiBind4 = task->aiBind; while (aiTarget4 && aiTarget4->ai_family != AF_INET) aiTarget4 = aiTarget4->ai_next; while (aiBind4 && aiBind4->ai_family != AF_INET) aiBind4 = aiBind4->ai_next; addrinfo* aiTarget6 = NULL; addrinfo* aiBind6 = NULL; #ifdef HAVE_IPV6 aiTarget6 = task->aiTarget; aiBind6 = task->aiBind; while (aiTarget6 && aiTarget6->ai_family != AF_INET6) aiTarget6 = aiTarget6->ai_next; while (aiBind6 && aiBind6->ai_family != AF_INET6) aiBind6 = aiBind6->ai_next; #endif if (!aiTarget4 && !aiTarget6) { throw "Can't resolve server hostname"; } else if (task->sBindhost.empty()) { #ifdef HAVE_IPV6 aiTarget = task->aiTarget; #else aiTarget = aiTarget4; #endif } else if (!aiBind4 && !aiBind6) { throw "Can't resolve bind hostname. Try /znc clearbindhost and /znc clearuserbindhost"; } else if (aiBind6 && aiTarget6) { aiTarget = aiTarget6; aiBind = aiBind6; } else if (aiBind4 && aiTarget4) { aiTarget = aiTarget4; aiBind = aiBind4; } else { throw "Address family of bindhost doesn't match address family of server"; } CString sBindhost; CString sTargetHost; if (!task->sBindhost.empty()) { char s[INET6_ADDRSTRLEN] = {}; getnameinfo(aiBind->ai_addr, aiBind->ai_addrlen, s, sizeof(s), NULL, 0, NI_NUMERICHOST); sBindhost = s; } char s[INET6_ADDRSTRLEN] = {}; getnameinfo(aiTarget->ai_addr, aiTarget->ai_addrlen, s, sizeof(s), NULL, 0, NI_NUMERICHOST); sTargetHost = s; 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; } if (task->aiTarget) freeaddrinfo(task->aiTarget); if (task->aiBind) freeaddrinfo(task->aiBind); 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) { #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); 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 /////////////////// znc-1.2/src/ZNCDebug.cpp0000644000175000017500000000253612235710266015300 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 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.2/src/version.cpp0000644000175000017500000000007512235710306015353 0ustar somebodysomebody#include const char* ZNC_VERSION_EXTRA = ""; znc-1.2/src/MD5.cpp0000644000175000017500000001570112235710266014262 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.2/src/Server.cpp0000644000175000017500000000265212235710266015144 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 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.2/src/SHA256.cpp0000644000175000017500000001655412235710266014554 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.2/src/Template.cpp0000644000175000017500000005564612235710266015464 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 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++) { CSmartPtr 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++) { CSmartPtr 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++) { CSmartPtr 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.2/src/Config.cpp0000644000175000017500000001245412235710266015104 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 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.2/src/IRCNetwork.cpp0000644000175000017500000006636012235710266015673 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 #include using std::vector; using std::set; 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_fFloodRate = 1; m_uFloodBurst = 4; 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_QueryBuffer.SetLineCount(250, true); 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_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_QueryBuffer.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(); SetNick(Network.GetNick()); SetAltNick(Network.GetAltNick()); SetIdent(Network.GetIdent()); SetRealName(Network.GetRealName()); SetBindHost(Network.GetBindHost()); // 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(); SetUser(NULL); // Make sure we are not in the connection queue CZNC::Get().GetConnectionQueue().remove(this); } void CIRCNetwork::DelServers() { for (vector::const_iterator it = m_vServers.begin(); it != m_vServers.end(); ++it) { delete *it; } m_vServers.clear(); } CString CIRCNetwork::GetNetworkPath() { 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 }, }; 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 }, }; 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); // XXX Legacy crap, added in ZNC 0.203, modified in 0.207 // Note that 0.203 == 0.207 if (sModName == "away") { CUtils::PrintMessage("NOTICE: [away] was renamed, " "loading [awaystore] instead"); sModName = "awaystore"; } // XXX Legacy crap, added in ZNC 0.207 if (sModName == "autoaway") { CUtils::PrintMessage("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") { CUtils::PrintMessage("NOTICE: [fakeonline] was renamed, loading [modules_online] instead"); sModName = "modules_online"; } CUtils::PrintAction("Loading network module [" + sModName + "]"); CString sModRet; CString sArgs = sValue.Token(1, true); bool bModRet = GetModules().LoadModule(sModName, sArgs, CModInfo::NetworkModule, GetUser(), this, sModRet); CUtils::PrintStatus(bModRet, sModRet); if (!bModRet) { 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("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); 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() { 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())); // Modules 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()); } // 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; 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]->JoinUser(true, "", pClient); } } uSize = m_QueryBuffer.Size(); for (uIdx = 0; uIdx < uSize; uIdx++) { CString sLine = m_QueryBuffer.GetLine(uIdx, *pClient, msParams); bool bContinue = false; NETWORKMODULECALL(OnPrivBufferPlayLine(*pClient, sLine), m_pUser, this, NULL, &bContinue); if (bContinue) continue; pClient->PutClient(sLine); } m_QueryBuffer.Clear(); // 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() { return m_pUser; } const CString& CIRCNetwork::GetName() const { return m_sName; } 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; } 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) 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) { 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; } // 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())) { 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()); 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::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; } 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; } } 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); } znc-1.2/src/znc.cpp0000644000175000017500000015172612235710266014477 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::endl; using std::cout; using std::map; using std::set; using std::vector; using std::list; 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; } 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() { char szBuf[128]; snprintf(szBuf, sizeof(szBuf), "%1.1f%s", VERSION, ZNC_VERSION_EXTRA); // If snprintf overflows (which I doubt), we want to be on the safe side szBuf[sizeof(szBuf) - 1] = '\0'; return szBuf; } CString CZNC::GetTag(bool bIncludeVersion, bool bHTML) { CString sAddress = bHTML ? "http://znc.in" : "http://znc.in"; if (!bIncludeVersion) { return "ZNC - " + sAddress; } char szBuf[128]; snprintf(szBuf, sizeof(szBuf), "ZNC %1.1f%s - ", VERSION, ZNC_VERSION_EXTRA); // If snprintf overflows (which I doubt), we want to be on the safe side szBuf[sizeof(szBuf) - 1] = '\0'; return szBuf + 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 ; } 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; switch (GetConfigState()) { 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: SetConfigState(ECONFIG_NOTHING); if (WriteConfig()) { Broadcast("Writing the config succeeded", true); } else { Broadcast("Writing the config file failed", 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"; if (!CFile::Exists(sModPath)) { CDir::MakeDir(sModPath); } 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("Version", CString(VERSION, 1)); for (size_t l = 0; l < m_vpListeners.size(); l++) { CListener* pListener = m_vpListeners[l]; CConfig listenerConfig; listenerConfig.AddKeyValuePair("Host", pListener->GetBindHost()); 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()); } 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()); } 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, 1)); m_sConfigFile = ExpandConfigPath(sConfigFile); CUtils::PrintMessage("Building new config"); CUtils::PrintMessage(""); CUtils::PrintMessage("First let's start with some global settings..."); CUtils::PrintMessage(""); // Listen #ifdef HAVE_IPV6 bool b6 = true; #else bool b6 = false; #endif CString sListenHost; bool bListenSSL = false; unsigned int uListenPort = 0; bool bSuccess; do { bSuccess = true; while (!CUtils::GetNumInput("What port would you like ZNC to listen on?", uListenPort, 1025, 65535)) ; #ifdef HAVE_LIBSSL if (CUtils::GetBoolInput("Would you like ZNC to listen using SSL?", bListenSSL)) { bListenSSL = true; CString sPemFile = GetPemLocation(); if (!CFile::Exists(sPemFile)) { CUtils::PrintError("Unable to locate pem file: [" + sPemFile + "]"); if (CUtils::GetBoolInput("Would you like to create a new pem file now?", true)) { WritePemFile(); } } } else bListenSSL = false; #endif #ifdef HAVE_IPV6 b6 = CUtils::GetBoolInput("Would you like ZNC to listen using ipv6?", b6); #endif CUtils::GetInput("Listen Host", sListenHost, sListenHost, "Blank for all ips"); CUtils::PrintAction("Verifying the listener"); CListener* pListener = new CListener((unsigned short int)uListenPort, sListenHost, 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); 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().GetAvailableMods(ssGlobalMods, CModInfo::GlobalModule); size_t uNrOtherGlobalMods = FilterUncommonModules(ssGlobalMods); if (!ssGlobalMods.empty()) { CUtils::PrintMessage(""); CUtils::PrintMessage("-- Global Modules --"); CUtils::PrintMessage(""); CTable Table; Table.AddColumn("Name"); Table.AddColumn("Description"); set::iterator it; for (it = ssGlobalMods.begin(); it != ssGlobalMods.end(); ++it) { const CModInfo& Info = *it; Table.AddRow(); Table.SetCell("Name", Info.GetName()); Table.SetCell("Description", Info.GetDescription().Ellipsize(128)); } unsigned int uTableIdx = 0; CString sLine; while (Table.GetLine(uTableIdx++, sLine)) { CUtils::PrintMessage(sLine); } if (uNrOtherGlobalMods > 0) { CUtils::PrintMessage("And " + CString(uNrOtherGlobalMods) + " other (uncommon) modules. You can enable those later."); } CUtils::PrintMessage(""); for (it = ssGlobalMods.begin(); it != ssGlobalMods.end(); ++it) { const CModInfo& Info = *it; CString sName = Info.GetName(); if (CDebug::StdoutIsTTY()) { if (CUtils::GetBoolInput("Load global module <\033[1m" + sName + "\033[22m>?", false)) vsLines.push_back("LoadModule = " + sName); } else { if (CUtils::GetBoolInput("Load global module <" + sName + ">?", false)) vsLines.push_back("LoadModule = " + sName); } } } // User CUtils::PrintMessage(""); CUtils::PrintMessage("Now we need to set up a user..."); CUtils::PrintMessage(""); bool bFirstUser = true; do { 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 + "#"); if (CUtils::GetBoolInput("Would you like this user to be an admin?", bFirstUser)) { vsLines.push_back("\tAdmin = true"); } else { vsLines.push_back("\tAdmin = false"); } CUtils::GetInput("Nick", sNick, CUser::MakeCleanUserName(sUser)); vsLines.push_back("\tNick = " + sNick); CUtils::GetInput("Alt Nick", sAnswer, sNick + "_"); if (!sAnswer.empty()) { vsLines.push_back("\tAltNick = " + sAnswer); } CUtils::GetInput("Ident", sAnswer, sNick); 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); } // todo: Possibly add motd unsigned int uBufferCount = 0; CUtils::GetNumInput("Number of lines to buffer per channel", uBufferCount, 0, ~0, 50); if (uBufferCount) { vsLines.push_back("\tBuffer = " + CString(uBufferCount)); } if (CUtils::GetBoolInput("Would you like to clear channel buffers after replay?", true)) { vsLines.push_back("\tAutoClearChanBuffer = true"); } else { vsLines.push_back("\tAutoClearChanBuffer = false"); } CUtils::GetInput("Default channel modes", sAnswer, "+stn"); if (!sAnswer.empty()) { vsLines.push_back("\tChanModes = " + sAnswer); } set ssUserMods; GetModules().GetAvailableMods(ssUserMods); size_t uNrOtherUserMods = FilterUncommonModules(ssUserMods); if (!ssUserMods.empty()) { vsLines.push_back(""); CUtils::PrintMessage(""); CUtils::PrintMessage("-- User Modules --"); CUtils::PrintMessage(""); 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", Info.GetName()); Table.SetCell("Description", Info.GetDescription().Ellipsize(128)); } unsigned int uTableIdx = 0; CString sLine; while (Table.GetLine(uTableIdx++, sLine)) { CUtils::PrintMessage(sLine); } if (uNrOtherUserMods > 0) { CUtils::PrintMessage("And " + CString(uNrOtherUserMods) + " other (uncommon) modules. You can enable those later."); } CUtils::PrintMessage(""); for (it = ssUserMods.begin(); it != ssUserMods.end(); ++it) { const CModInfo& Info = *it; CString sName = Info.GetName(); if (CDebug::StdoutIsTTY()) { if (CUtils::GetBoolInput("Load module <\033[1m" + sName + "\033[22m>?", false)) vsLines.push_back("\tLoadModule = " + sName); } else { if (CUtils::GetBoolInput("Load module <" + sName + ">?", false)) vsLines.push_back("\tLoadModule = " + sName); } } } CUtils::PrintMessage(""); CString sAAnother = "a"; while (CUtils::GetBoolInput("Would you like to set up " + sAAnother + " network?", false)) { sAAnother = "another"; vsLines.push_back(""); do { CUtils::GetInput("Network", sNetwork, "", "e.g. `freenode' or `efnet'"); } while (!CIRCNetwork::IsValidNetwork(sNetwork)); vsLines.push_back("\t"); set ssNetworkMods; GetModules().GetAvailableMods(ssNetworkMods, CModInfo::NetworkModule); size_t uNrOtherNetworkMods = FilterUncommonModules(ssNetworkMods); if (!ssNetworkMods.empty()) { CUtils::PrintMessage(""); CUtils::PrintMessage("-- Network Modules --"); CUtils::PrintMessage(""); CTable Table; Table.AddColumn("Name"); Table.AddColumn("Description"); set::iterator it; for (it = ssNetworkMods.begin(); it != ssNetworkMods.end(); ++it) { const CModInfo& Info = *it; Table.AddRow(); Table.SetCell("Name", Info.GetName()); Table.SetCell("Description", Info.GetDescription().Ellipsize(128)); } unsigned int uTableIdx = 0; CString sLine; while (Table.GetLine(uTableIdx++, sLine)) { CUtils::PrintMessage(sLine); } if (uNrOtherNetworkMods > 0) { CUtils::PrintMessage("And " + CString(uNrOtherNetworkMods) + " other (uncommon) modules. You can enable those later."); } CUtils::PrintMessage(""); for (it = ssNetworkMods.begin(); it != ssNetworkMods.end(); ++it) { const CModInfo& Info = *it; CString sName = Info.GetName(); if (CDebug::StdoutIsTTY()) { if (CUtils::GetBoolInput("Load module <\033[1m" + sName + "\033[22m>?", false)) vsLines.push_back("\t\tLoadModule = " + sName); } else { if (CUtils::GetBoolInput("Load module <" + sName + ">?", false)) vsLines.push_back("\t\tLoadModule = " + sName); } } } vsLines.push_back(""); CUtils::PrintMessage(""); CUtils::PrintMessage("-- IRC Servers --"); CUtils::PrintMessage("Only add servers from the same IRC network."); CUtils::PrintMessage("If a server from the list can't be reached, another server will be used."); CUtils::PrintMessage(""); do { CString sHost, sPass; bool bSSL = false; unsigned int uServerPort = 0; while (!CUtils::GetInput("IRC server", sHost, "", "host only") || !CServer::IsValidHostName(sHost)) ; while (!CUtils::GetNumInput("[" + sHost + "] Port", uServerPort, 1, 65535, 6667)) ; CUtils::GetInput("[" + sHost + "] Password (probably empty)", sPass); #ifdef HAVE_LIBSSL bSSL = CUtils::GetBoolInput("Does this server use SSL?", false); #endif vsLines.push_back("\t\tServer = " + sHost + ((bSSL) ? " +" : " ") + CString(uServerPort) + " " + sPass); CUtils::PrintMessage(""); } while (CUtils::GetBoolInput("Would you like to add another server for this IRC network?", false)); vsLines.push_back(""); CUtils::PrintMessage(""); CUtils::PrintMessage("-- Channels --"); CUtils::PrintMessage(""); CString sArg = "a"; CString sPost = " for ZNC to automatically join?"; bool bDefault = true; while (CUtils::GetBoolInput("Would you like to add " + sArg + " channel" + sPost, bDefault)) { while (!CUtils::GetInput("Channel name", sAnswer)) ; vsLines.push_back("\t\t"); vsLines.push_back("\t\t"); sArg = "another"; sPost = "?"; bDefault = false; } vsLines.push_back("\t"); } vsLines.push_back(""); CUtils::PrintMessage(""); bFirstUser = false; } while (CUtils::GetBoolInput("Would you like to set up another user?", false)); // !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("Would you like 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) { CUtils::GetInput("Please specify an alternate location (or \"stdout\" for displaying the config)", m_sConfigFile, m_sConfigFile); 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("And this in your browser...", true); CUtils::PrintMessage(sProtocol + "://:" + CString(uListenPort) + "/", true); CUtils::PrintMessage(""); File.UnLock(); return bFileOpen && CUtils::GetBoolInput("Launch ZNC now?", true); } size_t CZNC::FilterUncommonModules(set& ssModules) { const char* ns[] = { "webadmin", "controlpanel", "chansaver", "keepnick", "simple_away", "partyline", "kickrejoin", "nickserv", "perform" }; const set ssNames(ns, ns + sizeof(ns) / sizeof(ns[0])); size_t uNrRemoved = 0; for(set::iterator it = ssModules.begin(); it != ssModules.end(); ) { if(ssNames.count(it->GetName()) > 0) { ++it; } else { set::iterator it2 = it++; ssModules.erase(it2); uNrRemoved++; } } return uNrRemoved; } 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 s; m_sConfigFile = ExpandConfigPath(sConfig, false); return DoRehash(s); } 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); double fSavedVersion = sSavedVersion.ToDouble(); if (fSavedVersion < VERSION - 0.000001) { if (sSavedVersion.empty()) { sSavedVersion = "< 0.203"; } CUtils::PrintMessage("Found old config from ZNC " + sSavedVersion + ". Saving a backup of it."); BackupConfigOnce("pre-" + CString(VERSION, 1)); } else if (fSavedVersion > VERSION + 0.000001) { CUtils::PrintError("Config was saved from ZNC " + sSavedVersion + ". It may or may not work with current ZNC " + GetVersion()); } m_vsBindHosts.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" && fSavedVersion < 0.207 + 0.000001) { // 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("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("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(); // 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::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; } unsigned short uPort = sPort.ToUShort(); return AddListener(uPort, sBindHost, bSSL, eAddr, eAccept, sError); } bool CZNC::AddListener(unsigned short uPort, const CString& sBindHost, 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; } CListener* pListener = new CListener(uPort, sBindHost, 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; 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); 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, 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; } CZNC& CZNC::Get() { static CZNC* pZNC = new CZNC; return *pZNC; } 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(CSmartPtr 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 (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.2/src/User.cpp0000644000175000017500000010540212235710266014611 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::set; class CUserTimer : public CCron { public: CUserTimer(CUser* pUser) : CCron() { m_pUser = pUser; SetName("CUserTimer::" + m_pUser->GetUserName()); Start(30); } virtual ~CUserTimer() {} private: protected: virtual void RunJob() { vector vNetworks = m_pUser->GetNetworks(); for (size_t a = 0; a < vNetworks.size(); a++) { CIRCNetwork* pNetwork = vNetworks[a]; CIRCSock* pIRCSock = pNetwork->GetIRCSock(); if (pIRCSock && pIRCSock->GetTimeSinceLastDataTransaction() >= 270) { pIRCSock->PutIRC("PING :ZNC"); } if (pNetwork->IsIRCConnected()) { pNetwork->JoinChans(); } vector& vClients = pNetwork->GetClients(); for (size_t b = 0; b < vClients.size(); b++) { CClient* pClient = vClients[b]; if (pClient->GetTimeSinceLastDataTransaction() >= 270) { pClient->PutClient("PING :ZNC"); } } } vector& vUserClients = m_pUser->GetUserClients(); for (size_t c = 0; c < vUserClients.size(); ++c) { CClient* pUserClient = vUserClients[c]; if (pUserClient->GetTimeSinceLastDataTransaction() >= 270) { 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_uMaxJoins = 0; m_bBeingDeleted = false; m_sTimestampFormat = "[%H:%M:%S]"; m_bAppendTimestamp = false; m_bPrependTimestamp = true; m_uMaxNetworks = 1; 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 }, }; size_t numStringOptions = sizeof(StringOptions) / sizeof(StringOptions[0]); TOption UIntOptions[] = { { "jointries", &CUser::SetJoinTries }, { "maxnetworks", &CUser::SetMaxNetworks }, { "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 }, { "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); // XXX Legacy crap, added in ZNC 0.089 if (sModName == "discon_kick") { CUtils::PrintMessage("NOTICE: [discon_kick] was renamed, loading [disconkick] instead"); sModName = "disconkick"; } // XXX Legacy crap, added in ZNC 0.099 if (sModName == "fixfreenode") { CUtils::PrintMessage("NOTICE: [fixfreenode] doesn't do anything useful anymore, ignoring it"); continue; } // XXX Legacy crap, added in ZNC 0.207 if (sModName == "admin") { CUtils::PrintMessage("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") { CUtils::PrintMessage("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") { CUtils::PrintMessage("NOTICE: [fakeonline] was renamed, loading [modules_online] instead"); sModName = "modules_online"; } CUtils::PrintAction("Loading user module [" + sModName + "]"); CString sModRet; CString sArgs = sValue.Token(1, true); bool bModRet = true; CModInfo ModInfo; if (!CZNC::Get().GetModules().GetModInfo(ModInfo, sModName, sModRet)) { sError = "Unable to find modinfo [" + sModName + "] [" + sModRet + "]"; return false; } 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) { 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); } CUtils::PrintStatus(bModRet, sModRet); if (!bModRet) { 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()); // The following lines do not exist. You must be on DrUgS! sRet.Replace("%znc%", "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 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. 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()); SetMaxJoins(User.MaxJoins()); // 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()); 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() { 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("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("MaxJoins", CString(m_uMaxJoins)); // 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 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() { if (!GetDCCBindHost().empty()) return GetDCCBindHost(); for (vector::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; } // 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::SetQuitMsg(const CString& s) { m_sQuitMsg = s; } void CUser::SetAutoClearChanBuffer(bool b) { m_bAutoClearChanBuffer = b; } bool CUser::SetBufferCount(unsigned int u, bool bForce) { if (!bForce && u > CZNC::Get().GetMaxBufferSize()) return false; 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) > 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() { 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; } bool CUser::HasSpaceForNewNetwork() const { return GetNetworks().size() < MaxNetworks(); } CString CUser::GetQuitMsg() const { return (!m_sQuitMsg.Trim_n().empty()) ? m_sQuitMsg : CZNC::GetTag(false); } const MCString& CUser::GetCTCPReplies() const { return m_mssCTCPReplies; } unsigned int CUser::GetBufferCount() const { return m_uBufferCount; } bool CUser::AutoClearChanBuffer() const { return m_bAutoClearChanBuffer; } //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.2/AUTHORS0000777000175000017500000000000012235710266014347 2NOTICEustar somebodysomebodyznc-1.2/configure.ac0000644000175000017500000004130312235710266014665 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 main.h! AC_INIT([znc], [1.2]) 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 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 } appendCXX "-D_FORTIFY_SOURCE=2" 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) 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([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_systemdsystemunitdir" != xno; then AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) fi AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ]) 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++]) AC_DEFINE([_GLIBCXX_CONCEPT_CHECKS], [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 getphassphrase]) # ----- 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 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 ) AC_CHECK_LIB( ssl, SSL_shutdown,, SSL=no ) ]) 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 ]) 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 fi else NOSSL=1 fi # ----- Check for zlib old_ZLIB="$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 ], [ AC_MSG_RESULT([no]) ZLIB=no ]) 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_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([2.0.8]) 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 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") LDFLAGS="$my_saved_LDFLAGS" else PERL="no" 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" fi fi 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"]) 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" else PYTHON="no" 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" 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 AM_ICONV 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" 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([CHARSET]) AC_SUBST([LIBICONV]) 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_CONFIG_FILES([test/Makefile]) AC_OUTPUT echo echo ZNC AC_PACKAGE_VERSION configured echo echo "prefix: $prefix" echo "debug: $DEBUG" echo "ipv6: $IPV6" echo "openssl: $SSL" echo "dns: $DNS_TEXT" echo "perl: $PERL" echo "python: $PYTHON" 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 if test x"$HAVE_ICONV" = "x" ; then echo "charset: no" else echo "charset: yes" fi echo "zlib: $ZLIB" echo "run from src: $RUNFROMSOURCE" echo echo "Now you can run \"$GNUMAKE\" to compile ZNC" znc-1.2/NOTICE0000644000175000017500000000370712235710266013311 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 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 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 If you did something useful and want to be listed here too, add yourself and submit the patch. znc-1.2/config.sub0000755000175000017500000010612412235710272014362 0ustar somebodysomebody#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012, 2013 Free Software Foundation, Inc. timestamp='2013-01-11' # 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 with a ChangeLog entry to config-patches@gnu.org. # # 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 (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 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* | \ 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 \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx | dvp \ | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | 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 \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 \ | ns16k | ns32k \ | open8 \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | 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 \ | 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 ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | 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-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | 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-* \ | 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-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | 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-* \ | 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 ;; 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 ;; 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=i386-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 ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i386-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* \ | -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* \ | -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*) # 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 ;; 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.2/znc.pc.in0000644000175000017500000000074312235710266014125 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.2/znc.service0000644000175000017500000000023112235710266014546 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.2/README.md0000644000175000017500000001124112235710266013654 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 Installation is done with the `./configure ; make ; make install` commands. 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. 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 though you don't need to as ZNC supports in-place execution. ## 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 are only two files: - `znc.pid` - The pid of the currently running ZNC instance. - `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. To rehash the config file, you can send ZNC SIGHUP via pkill -SIGHUP znc or you can login to ZNC and use /msg *status rehash 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 this: /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 EFNet or freenode if you still have questions. You can get the latest development version with git: git clone git://github.com/znc/znc.git znc-1.2/znc-uninstalled.pc.in0000644000175000017500000000107712235710266016446 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.2/bootstrap.sh0000777000175000017500000000000012235710266016742 2autogen.shustar somebodysomebodyznc-1.2/man/0000755000175000017500000000000012235710266013151 5ustar somebodysomebodyznc-1.2/man/znc-buildmod.10000644000175000017500000000100712235710266015620 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.2/man/Makefile.in0000644000175000017500000000136212235710266015220 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.2/man/znc.10000644000175000017500000000605212235710266014030 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.2/.travis.yml0000644000175000017500000000136312235710266014512 0ustar somebodysomebodylanguage: cpp compiler: - gcc - clang before_install: - sudo apt-get update -qq - sudo apt-get install -qq libperl-dev python3-dev tcl-dev libsasl2-dev - apt-cache show swig - ( cd ~ && wget http://prdownloads.sourceforge.net/swig/swig-2.0.8.tar.gz && tar xvf swig-2.0.8.tar.gz && cd swig-2.0.8 && ./configure && make && sudo make install ) script: - ./bootstrap.sh - mkdir build - cd build - ../configure --enable-perl --enable-python --enable-tcl --enable-cyrus - cat config.log - make V=1 - make V=1 test - sudo make install notifications: irc: channels: - "irc.freenode.net#znc" - "irc.shoutcast.com#znc" on_success: always on_failure: always znc-1.2/autogen.sh0000755000175000017500000000250612235710266014402 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." # 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 if grep PKG_CHECK_MODULES configure > /dev/null then rm configure die "ERROR: pkg-config not found. Install pkg-config and run $0 again" fi echo "You may now run ./configure." znc-1.2/config.guess0000755000175000017500000013016212235710272014716 0ustar somebodysomebody#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012, 2013 Free Software Foundation, Inc. timestamp='2012-12-30' # 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. # # 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 with a ChangeLog entry to config-patches@gnu.org. 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 (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 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/*) eval $set_cc_for_build cat <<-EOF > $dummy.c #include #ifdef __UCLIBC__ # ifdef __UCLIBC_CONFIG_VERSION__ LIBC=uclibc __UCLIBC_CONFIG_VERSION__ # else LIBC=uclibc # endif #else # ifdef __dietlibc__ LIBC=dietlibc # else LIBC=gnu # endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` ;; 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=`(/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 ;; *) 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*|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 # 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/[-_].*/\./'` ;; 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}" 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/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` 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 ;; i*: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 ;; 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 ;; 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; } ;; or32: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 ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux 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:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 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 case $UNAME_PROCESSOR in i386) eval $set_cc_for_build 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 UNAME_PROCESSOR="x86_64" fi fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac 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 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi 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.2/LICENSE0000644000175000017500000002613612235710266013413 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.2/modules/0000755000175000017500000000000012235710306014041 5ustar somebodysomebodyznc-1.2/modules/data/0000755000175000017500000000000012235710266014757 5ustar somebodysomebodyznc-1.2/modules/data/listsockets/0000755000175000017500000000000012235710266017326 5ustar somebodysomebodyznc-1.2/modules/data/listsockets/tmpl/0000755000175000017500000000000012235710266020302 5ustar somebodysomebodyznc-1.2/modules/data/listsockets/tmpl/index.tmpl0000644000175000017500000000101112235710266022300 0ustar somebodysomebody
Name Created State SSL Local Remote
znc-1.2/modules/data/send_raw/0000755000175000017500000000000012235710266016561 5ustar somebodysomebodyznc-1.2/modules/data/send_raw/tmpl/0000755000175000017500000000000012235710266017535 5ustar somebodysomebodyznc-1.2/modules/data/send_raw/tmpl/index.tmpl0000644000175000017500000000313012235710266021537 0ustar somebodysomebody

Send a raw IRC line

User/Network:
Send to:
Line:
znc-1.2/modules/data/send_raw/files/0000755000175000017500000000000012235710266017663 5ustar somebodysomebodyznc-1.2/modules/data/send_raw/files/select.js0000644000175000017500000000060212235710266021476 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.2/modules/data/blockuser/0000755000175000017500000000000012235710266016750 5ustar somebodysomebodyznc-1.2/modules/data/blockuser/tmpl/0000755000175000017500000000000012235710266017724 5ustar somebodysomebodyznc-1.2/modules/data/blockuser/tmpl/blockuser_WebadminUser.tmpl0000644000175000017500000000110312235710266025253 0ustar somebodysomebody
checked="checked" disabled="disabled" />
znc-1.2/modules/data/perform/0000755000175000017500000000000012235710266016431 5ustar somebodysomebodyznc-1.2/modules/data/perform/tmpl/0000755000175000017500000000000012235710266017405 5ustar somebodysomebodyznc-1.2/modules/data/perform/tmpl/index.tmpl0000644000175000017500000000125512235710266021415 0ustar somebodysomebody

Perform

Perform commands:

Commands sent to the IRC server on connect, one per line.
znc-1.2/modules/data/stickychan/0000755000175000017500000000000012235710266017117 5ustar somebodysomebodyznc-1.2/modules/data/stickychan/tmpl/0000755000175000017500000000000012235710266020073 5ustar somebodysomebodyznc-1.2/modules/data/stickychan/tmpl/index.tmpl0000644000175000017500000000120112235710266022072 0ustar somebodysomebody
Name Sticky
checked="checked" />
znc-1.2/modules/data/stickychan/tmpl/stickychan_WebadminChan.tmpl0000644000175000017500000000076012235710266025534 0ustar somebodysomebody
checked="checked" />
znc-1.2/modules/data/cert/0000755000175000017500000000000012235710266015714 5ustar somebodysomebodyznc-1.2/modules/data/cert/tmpl/0000755000175000017500000000000012235710266016670 5ustar somebodysomebodyznc-1.2/modules/data/cert/tmpl/index.tmpl0000644000175000017500000000146412235710266020702 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.2/modules/data/lastseen/0000755000175000017500000000000012235710266016575 5ustar somebodysomebodyznc-1.2/modules/data/lastseen/tmpl/0000755000175000017500000000000012235710266017551 5ustar somebodysomebodyznc-1.2/modules/data/lastseen/tmpl/index.tmpl0000644000175000017500000000143712235710266021563 0ustar somebodysomebody
User Last Seen Info Action
[Edit] [Delete]
znc-1.2/modules/data/lastseen/tmpl/lastseen_WebadminUser.tmpl0000644000175000017500000000034012235710266024727 0ustar somebodysomebody
znc-1.2/modules/data/certauth/0000755000175000017500000000000012235710266016576 5ustar somebodysomebodyznc-1.2/modules/data/certauth/tmpl/0000755000175000017500000000000012235710266017552 5ustar somebodysomebodyznc-1.2/modules/data/certauth/tmpl/index.tmpl0000644000175000017500000000161112235710266021556 0ustar somebodysomebody

Add A Note

Key:

You have no keys.

Key
[del]
znc-1.2/modules/data/notes/0000755000175000017500000000000012235710266016107 5ustar somebodysomebodyznc-1.2/modules/data/notes/tmpl/0000755000175000017500000000000012235710266017063 5ustar somebodysomebodyznc-1.2/modules/data/notes/tmpl/index.tmpl0000644000175000017500000000224312235710266021071 0ustar somebodysomebody

Add A Note

Key:
Note:

You have no notes to display.

Key Note
[del]
znc-1.2/modules/data/notes/files/0000755000175000017500000000000012235710266017211 5ustar somebodysomebodyznc-1.2/modules/data/notes/files/trash.gif0000644000175000017500000000014212235710266021016 0ustar somebodysomebodyGIF89a€fff!ù,@9Œ©Ðï"C²¾i€vyã …ÜG–f²¥êÈXÖç†äêömÖ%»ðŠ¢D2LL#"Ê ³…‹ž ;znc-1.2/modules/data/webadmin/0000755000175000017500000000000012235710266016545 5ustar somebodysomebodyznc-1.2/modules/data/webadmin/tmpl/0000755000175000017500000000000012235710266017521 5ustar somebodysomebodyznc-1.2/modules/data/webadmin/tmpl/listusers.tmpl0000644000175000017500000000204312235710266022453 0ustar somebodysomebody
There are no users defined. Click here if you would like to add one.
Action Username Networks Clients
[Edit] [Clone] [Delete]
znc-1.2/modules/data/webadmin/tmpl/index.tmpl0000644000175000017500000000031612235710266021526 0ustar somebodysomebody

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

znc-1.2/modules/data/webadmin/tmpl/traffic.tmpl0000644000175000017500000000460412235710266022041 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.2/modules/data/webadmin/tmpl/add_edit_chan.tmpl0000644000175000017500000000464512235710266023156 0ustar somebodysomebody

Channel Info

Channel Name:
Key:
Buffer Count:
Default Modes:

Flags

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

Module

znc-1.2/modules/data/webadmin/tmpl/del_network.tmpl0000644000175000017500000000133612235710266022737 0ustar somebodysomebody

Confirm Network Deletion

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

Confirm User Deletion

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

Listen Port(s)

Port BindHost SSL IPv4 IPv6 IRC Web
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" />
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
checked="checked" disabled="disabled" /> disabled="disabled" title="" />
znc-1.2/modules/data/webadmin/tmpl/add_edit_user.tmpl0000644000175000017500000002676512235710266023232 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
checked="checked" disabled="disabled" /> disabled="disabled" title="" />

Default Settings For New Future Channels

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
Join Tries:
Max Joins:
Max IRC Networks Number:
disabled="disabled" />
CTCP Replies:

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

Module

znc-1.2/modules/data/webadmin/tmpl/add_edit_network.tmpl0000644000175000017500000001735612235710266023741 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:
Active:
checked="checked" />
Servers of this IRC network:

One server per line, "host [[+]port] [password]", + means SSL
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

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
checked="checked" disabled="disabled" /> disabled="disabled" title="" />

Module

znc-1.2/modules/data/webadmin/files/0000755000175000017500000000000012235710266017647 5ustar somebodysomebodyznc-1.2/modules/data/webadmin/files/webadmin.js0000644000175000017500000000060212235710266021771 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.2/modules/blockuser.cpp0000644000175000017500000001210312235710266016540 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 using std::vector; #define MESSAGE "Your account has been disabled. Contact your administrator." class CBlockUser : public CModule { public: MODCONSTRUCTOR(CBlockUser) {} virtual ~CBlockUser() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) { 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(CSmartPtr Auth) { if (IsBlocked(Auth->GetUsername())) { Auth->RefuseLogin(MESSAGE); return HALT; } return CONTINUE; } void OnModCommand(const CString& sCommand) { CString sCmd = sCommand.Token(0); if (!m_pUser->IsAdmin()) { PutModule("Access denied"); return; } if (sCmd.Equals("list")) { 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"); } else if (sCmd.Equals("block")) { CString sUser = sCommand.Token(1, true); if (m_pUser->GetUserName().Equals(sUser)) { PutModule("You can't block yourself"); return; } if (Block(sUser)) PutModule("Blocked [" + sUser + "]"); else PutModule("Could not block [" + sUser + "] (misspelled?)"); } else if (sCmd.Equals("unblock")) { CString sUser = sCommand.Token(1, true); if (DelNV(sUser)) PutModule("Unblocked [" + sUser + "]"); else PutModule("This user is not blocked"); } else { PutModule("Commands: list, block [user], unblock [user]"); } } bool OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { 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.2/modules/nickserv.cpp0000644000175000017500000001463712235710266016411 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 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 GhostCommand(const CString& sLine) { if (sLine.Token(1).empty()) { PutModule("Syntax: ghost "); } else { DoNickCommand("GhostCmd", sLine.Token(1)); } } void RecoverCommand(const CString& sLine) { if (sLine.Token(1).empty()) { PutModule("Syntax: recover "); } else { DoNickCommand("RecoverCmd", sLine.Token(1)); } } void ReleaseCommand(const CString& sLine) { if (sLine.Token(1).empty()) { PutModule("Syntax: release "); } else { DoNickCommand("ReleaseCmd", sLine.Token(1)); } } void GroupCommand(const CString& sLine) { if (sLine.Token(1).empty()) { PutModule("Syntax: group "); } else { DoNickCommand("GroupCmd", sLine.Token(1)); } } void ViewCommandsCommand(const CString& sLine) { PutModule("IDENTIFY " + GetNV("IdentifyCmd")); PutModule("GHOST " + GetNV("GhostCmd")); PutModule("RECOVER " + GetNV("RecoverCmd")); PutModule("RELEASE " + GetNV("ReleaseCmd")); PutModule("GROUP " + GetNV("GroupCmd")); } void SetCommandCommand(const CString& sLine) { CString sCmd = sLine.Token(1); CString sNewCmd = sLine.Token(2, true); if (sCmd.Equals("IDENTIFY")) { SetNV("IdentifyCmd", sNewCmd); } else if (sCmd.Equals("GHOST")) { SetNV("GhostCmd", sNewCmd); } else if (sCmd.Equals("RECOVER")) { SetNV("RecoverCmd", sNewCmd); } else if (sCmd.Equals("RELEASE")) { SetNV("ReleaseCmd", sNewCmd); } else if (sCmd.Equals("GROUP")) { SetNV("GroupCmd", 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("Ghost", static_cast(&CNickServ::GhostCommand), "nickname", "GHOST disconnects an old user session, or somebody attempting to use your nickname without authorization."); AddCommand("Recover", static_cast(&CNickServ::RecoverCommand), "nickname"); AddCommand("Release", static_cast(&CNickServ::ReleaseCommand), "nickname"); AddCommand("Group", static_cast(&CNickServ::GroupCommand), "nickname"); 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) { if (!sArgs.empty() && sArgs != "") { SetNV("Password", sArgs); SetArgs(""); } if (GetNV("IdentifyCmd").empty()) { SetNV("IdentifyCmd", "PRIVMSG NickServ :IDENTIFY {password}"); } if (GetNV("GhostCmd").empty()) { SetNV("GhostCmd", "PRIVMSG NickServ :GHOST {nickname} {password}"); } if (GetNV("RecoverCmd").empty()) { SetNV("RecoverCmd", "PRIVMSG NickServ :RECOVER {nickname} {password}"); } if (GetNV("ReleaseCmd").empty()) { SetNV("ReleaseCmd", "PRIVMSG NickServ :RELEASE {nickname} {password}"); } if (GetNV("GroupCmd").empty()) { SetNV("GroupCmd", "PRIVMSG NickServ :GROUP {nickname} {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("If this is your nick, identify yourself with") != CString::npos || sMessage.find("If this is your nick, type") != CString::npos || sMessage.StripControls_n().find("type /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) { HandleMessage(Nick, sMessage); return CONTINUE; } virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) { 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.2/modules/q.cpp0000644000175000017500000003527112235710266015022 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 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) { 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(); OnIRCDisconnected(); // reset module's state if (IsIRCConnected()) { // check for usermode +x if we are already connected set scUserModes = m_pNetwork->GetIRCSock()->GetUserModes(); if (scUserModes.find('x') != scUserModes.end()) m_bCloaked = true; OnIRCConnected(); } return true; } virtual void OnIRCDisconnected() { m_bCloaked = false; m_bAuthed = false; m_bRequestedWhoami = false; m_bRequestedChallenge = false; m_bCatchResponse = false; } virtual void OnIRCConnected() { if (m_bUseCloakedHost) Cloak(); WhoAmI(); } virtual void OnModCommand(const CString& sLine) { 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."); 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"); if (m_bUseCloakedHost && IsIRCConnected()) Cloak(); } else if (sSetting == "usechallenge") { SetUseChallenge(sValue.ToBool()); PutModule("UseChallenge set"); } else if (sSetting == "requestperms") { SetRequestPerms(sValue.ToBool()); PutModule("RequestPerms 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)); 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) { // 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."); } return CONTINUE; } virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) { return HandleMessage(Nick, sMessage); } virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) { return HandleMessage(Nick, sMessage); } virtual void OnJoin(const CNick& Nick, CChan& Channel) { if (m_bRequestPerms && IsSelf(Nick)) HandleNeed(Channel, "ov"); } virtual void OnDeop(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { if (m_bRequestPerms && IsSelf(Nick) && !IsSelf(OpNick)) HandleNeed(Channel, "o"); } virtual void OnDevoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { if (m_bRequestPerms && IsSelf(Nick) && !IsSelf(OpNick)) HandleNeed(Channel, "v"); } 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 " + m_pNetwork->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).MD5(); CString sKey = CString(sUsername + ":" + sPasswordHash).MD5(); CString sResponse = HMAC_MD5(sKey, sChallenge); PutModule("Auth: Received challenge, sending CHALLENGEAUTH request..."); PutQ("CHALLENGEAUTH " + m_sUsername + " " + sResponse + " HMAC-MD5"); } 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-MD5") != CString::npos) { ChallengeAuth(sMessage.Token(1)); } else { PutModule("Auth failed: Q does not support HMAC-MD5 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 = m_pNetwork->GetIRCSock(); return pIRCSock && pIRCSock->IsAuthed(); } bool IsSelf(const CNick& Nick) { return Nick.NickEquals(m_pNetwork->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_MD5(const CString& sKey, const CString& sData) { CString sRealKey; if (sKey.length() > 64) PackHex(sKey.MD5(), 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).MD5(), sInnerHash); return CString(sOuterKey + sInnerHash).MD5(); } /* Settings */ CString m_sUsername; CString m_sPassword; bool m_bUseCloakedHost; bool m_bUseChallenge; bool m_bRequestPerms; 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)); } void SetUseChallenge(const bool bUseChallenge) { m_bUseChallenge = bUseChallenge; SetNV("UseChallenge", CString(bUseChallenge)); } void SetRequestPerms(const bool bRequestPerms) { m_bRequestPerms = bRequestPerms; SetNV("RequestPerms", CString(bRequestPerms)); } }; 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.2/modules/log.cpp0000644000175000017500000002257612235710266015347 0ustar somebodysomebody/* * Copyright (C) 2004-2013 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 using std::vector; class CLogMod: public CModule { public: MODCONSTRUCTOR(CLogMod) { m_bSanitize = false; } 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); virtual void OnIRCConnected(); virtual void OnIRCDisconnected(); virtual EModRet OnBroadcast(CString& sMessage); virtual void OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs); virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage); virtual void OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans); virtual void OnJoin(const CNick& Nick, CChan& Channel); virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage); virtual void OnNick(const CNick& OldNick, const CString& sNewNick, const vector& vChans); virtual EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic); /* notices */ virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage); virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage); virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage); /* actions */ virtual EModRet OnUserAction(CString& sTarget, CString& sMessage); virtual EModRet OnPrivAction(CNick& Nick, CString& sMessage); virtual EModRet OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage); /* msgs */ virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage); virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage); virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage); private: CString m_sLogPath; bool m_bSanitize; }; void CLogMod::PutLog(const CString& sLine, const CString& sWindow /*= "Status"*/) { CString sPath; time_t curtime; time(&curtime); // Generate file name sPath = CUtils::FormatTime(curtime, m_sLogPath, m_pUser->GetTimezone()); if (sPath.empty()) { DEBUG("Could not format log path [" << sPath << "]"); return; } // $WINDOW has to be handled last, since it can contain % sPath.Replace("$NETWORK", (m_pNetwork ? m_pNetwork->GetName() : "znc")); sPath.Replace("$WINDOW", sWindow.Replace_n("/", "-").Replace_n("\\", "-")); sPath.Replace("$USER", (m_pUser ? m_pUser->GetUserName() : "UNKNOWN")); // 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 = m_pNetwork->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"; } } // 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::OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs) { PutLog("*** " + OpNick.GetNick() + " 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) { if (m_pNetwork) { PutLog("-" + m_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) { if (m_pNetwork) { PutLog("* " + m_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) { if (m_pNetwork) { PutLog("<" + m_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.2/modules/savebuff.cpp0000644000175000017500000002434512235710266016363 0ustar somebodysomebody/* * Copyright (C) 2004-2013 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 using std::vector; #define CRYPT_VERIFICATION_TOKEN "::__:SAVEBUFF:__::" // 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(); }; class CSaveBuff : public CModule { public: MODCONSTRUCTOR(CSaveBuff) { m_bBootError = false; m_bFirstLoad = false; } virtual ~CSaveBuff() { if (!m_bBootError) { SaveBufferToDisk(); } } virtual bool OnLoad(const CString& sArgs, CString& sMessage) { 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); return( !m_bBootError ); } virtual void OnIRCConnected() { // dropped this into here because there seems to have been a changed where the module is loaded before the channels. // this is a good trigger to tell it to backfill the channels if( !m_bFirstLoad ) { m_bFirstLoad = true; AddTimer(new CSaveBuffJob(this, 60, 0, "SaveBuff", "Saves the current buffer to disk every 1 minute")); const vector& vChans = m_pNetwork->GetChans(); for (u_int a = 0; a < vChans.size(); a++) { if (vChans[a]->AutoClearChanBuffer()) continue; if (!BootStrap(vChans[a])) { PutUser(":***!znc@znc.in PRIVMSG " + vChans[a]->GetName() + " :Failed to decrypt this channel, did you change the encryption pass?"); } } } } bool BootStrap(CChan *pChan) { CString sFile; if (DecryptChannel(pChan->GetName(), sFile)) { if (!pChan->GetBuffer().IsEmpty()) return(true); // reloaded a module probably in this case, so just verify we can decrypt the file VCString vsLines; VCString::iterator it; sFile.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(); pChan->AddBuffer(sFormat, sText, &ts); } else { // Old format, escape the line and use as is. pChan->AddBuffer(_NAMEDFMT(sLine)); } } } else { m_sPassword = ""; CUtils::PrintError("[" + GetModName() + ".so] Failed to Decrypt [" + pChan->GetName() + "]"); return(false); } return(true); } void SaveBufferToDisk() { if (!m_sPassword.empty()) { const vector& vChans = m_pNetwork->GetChans(); for (u_int a = 0; a < vChans.size(); a++) { CString sPath = GetPath(vChans[a]->GetName()); CFile File(sPath); if (vChans[a]->AutoClearChanBuffer()) { File.Delete(); continue; } const CBuffer& Buffer = vChans[a]->GetBuffer(); CString sLine; CString sFile = CRYPT_VERIFICATION_TOKEN; size_t uSize = Buffer.Size(); for (unsigned int uIdx = 0; uIdx < uSize; uIdx++) { const CBufLine& Line = Buffer.GetBufLine(uIdx); timeval ts = Line.GetTime(); sFile += "@" + CString(ts.tv_sec) + "," + CString(ts.tv_usec) + " " + Line.GetFormat() + "\n" + Line.GetText() + "\n"; } CBlowfish c(m_sPassword, BF_ENCRYPT); sFile = c.Crypt(sFile); if (!sPath.empty()) { if (File.Open(O_WRONLY | O_CREAT | O_TRUNC, 0600)) { File.Chmod(0600); File.Write(sFile); } File.Close(); } } } 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" ); } } virtual void OnModCommand(const CString& sCmdLine) { CString sCommand = sCmdLine.Token(0); CString sArgs = sCmdLine.Token(1, true); if (sCommand.Equals("setpass")) { PutModule("Password set to [" + sArgs + "]"); m_sPassword = CBlowfish::MD5(sArgs); } else if (sCommand.Equals("dumpbuff")) { CString sFile; if (DecryptChannel(sArgs, sFile)) { 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 if (sCommand.Equals("replay")) { Replay(sArgs); PutModule("Replayed " + sArgs); } else if (sCommand.Equals("save")) { SaveBufferToDisk(); PutModule("Done."); } else PutModule("Unknown command [" + sCommand + "]"); } void Replay(const CString & sChan) { CString sFile; PutUser(":***!znc@znc.in PRIVMSG " + sChan + " :Buffer Playback..."); if (DecryptChannel(sChan, sFile)) { 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 " + sChan + " :Playback Complete."); } CString GetPath(const CString & sChannel) { CString sBuffer = m_pUser->GetUserName() + sChannel.AsLower(); CString sRet = GetSavePath(); sRet += "/" + CBlowfish::MD5(sBuffer, true); return(sRet); } #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() && m_pNetwork->IsUserAttached()) return; chan.AddBuffer(sLine); } virtual void OnRawMode(const CNick& cOpNick, CChan& cChannel, const CString& sModes, const CString& sArgs) { AddBuffer(cChannel, SpoofChanMsg(cChannel.GetName(), cOpNick.GetNickMask() + " MODE " + sModes + " " + sArgs)); } virtual void OnQuit(const CNick& cNick, const CString& sMessage, const vector& vChans) { for (size_t a = 0; a < vChans.size(); a++) { AddBuffer(*vChans[a], SpoofChanMsg(vChans[a]->GetName(), cNick.GetNickMask() + " QUIT " + sMessage)); } if (cNick.NickEquals(m_pUser->GetNick())) SaveBufferToDisk(); // need to force a save here to see this! } virtual void OnNick(const CNick& cNick, const CString& sNewNick, const vector& vChans) { 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) { AddBuffer(cChannel, SpoofChanMsg(cChannel.GetName(), sOpNick + " KICK " + cNick.GetNickMask() + " " + sMessage)); } virtual void OnJoin(const CNick& cNick, CChan& cChannel) { if (cNick.NickEquals(m_pUser->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) { AddBuffer(cChannel, SpoofChanMsg(cChannel.GetName(), cNick.GetNickMask() + " PART")); if (cNick.NickEquals(m_pUser->GetNick())) SaveBufferToDisk(); // need to force a save here to see this! } #endif /* LEGACY_SAVEBUFF */ private: bool m_bBootError; bool m_bFirstLoad; CString m_sPassword; bool DecryptChannel(const CString & sChan, CString & sBuffer) { CString sChannel = GetPath(sChan); CString sFile; sBuffer = ""; CFile File(sChannel); if (sChannel.empty() || !File.Open() || !File.ReadFile(sFile)) 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 file [" + sChannel + "]"); return(false); } sBuffer.erase(0, strlen(CRYPT_VERIFICATION_TOKEN)); } return(true); } }; void CSaveBuffJob::RunJob() { CSaveBuff *p = (CSaveBuff *)m_pModule; p->SaveBufferToDisk(); } 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 buffers to disk, encrypted") znc-1.2/modules/fail2ban.cpp0000644000175000017500000000652412235710266016237 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 class CFailToBanMod : public CModule { public: MODCONSTRUCTOR(CFailToBanMod) {} virtual ~CFailToBanMod() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) { 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() { 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) { 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) { 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) { unsigned int *pCount = m_Cache.GetItem(sRemoteIP); if (pCount) Add(sRemoteIP, *pCount + 1); else Add(sRemoteIP, 1); } virtual EModRet OnLoginAttempt(CSmartPtr Auth) { // 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.2/modules/modpython/0000755000175000017500000000000012235710306016062 5ustar somebodysomebodyznc-1.2/modules/modpython/Makefile.inc0000644000175000017500000000606712235710266020310 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) modpython/znc_core.pyc CLEAN += modpython/znc.pyc modpython/compiler *.pyc 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) # This will run: modpython/compiler blah.py blah.pyc %.pyc: modpython/compiler %.py $(E) Compiling $@... $(Q)$^ $@ ifeq "$(PYTHON_ON)" "yes" all: modpython_all endif modpython_all: modpython/_znc_core.$(PYCEXT_EXT) modpython/znc.pyc modpython/znc_core.pyc modpython_all: $(addsuffix c, $(notdir $(wildcard $(srcdir)/*.py))) 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 *.pyc $(srcdir)/*.py; do \ $(INSTALL_DATA) $$i $(DESTDIR)$(MODDIR); \ done mkdir -p $(DESTDIR)$(MODDIR)/modpython $(INSTALL_PROGRAM) modpython/_znc_core.$(PYCEXT_EXT) $(DESTDIR)$(MODDIR)/modpython $(INSTALL_DATA) modpython/znc_core.pyc $(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) modpython/znc.pyc $(DESTDIR)$(MODDIR)/modpython $(INSTALL_DATA) $(srcdir)/modpython/znc.py $(DESTDIR)$(MODDIR)/modpython znc-1.2/modules/modpython/znc_core.py0000644000175000017500000076656612235710306020270 0ustar somebodysomebody# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.9 # # 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): 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(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError(name) 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, *args) -> "ptrdiff_t" : return _znc_core.SwigPyIterator_distance(self, *args) def equal(self, *args) -> "bool" : return _znc_core.SwigPyIterator_equal(self, *args) 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, *args) -> "swig::SwigPyIterator *" : return _znc_core.SwigPyIterator_advance(self, *args) def __eq__(self, *args) -> "bool" : return _znc_core.SwigPyIterator___eq__(self, *args) def __ne__(self, *args) -> "bool" : return _znc_core.SwigPyIterator___ne__(self, *args) def __iadd__(self, *args) -> "swig::SwigPyIterator &" : return _znc_core.SwigPyIterator___iadd__(self, *args) def __isub__(self, *args) -> "swig::SwigPyIterator &" : return _znc_core.SwigPyIterator___isub__(self, *args) def __add__(self, *args) -> "swig::SwigPyIterator *" : return _znc_core.SwigPyIterator___add__(self, *args) 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) class CString(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CString, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CString, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CString() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CString __del__ = lambda self : None; CString_swigregister = _znc_core.CString_swigregister CString_swigregister(CString) 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, *args) -> "std::list< CString,std::allocator< CString > > *" : return _znc_core._stringlist___getslice__(self, *args) def __setslice__(self, *args) -> "void" : return _znc_core._stringlist___setslice__(self, *args) def __delslice__(self, *args) -> "void" : return _znc_core._stringlist___delslice__(self, *args) 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, *args) -> "void" : return _znc_core._stringlist_append(self, *args) 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, *args) -> "void" : return _znc_core._stringlist_swap(self, *args) 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, *args) -> "void" : return _znc_core._stringlist_push_back(self, *args) 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, *args) -> "void" : return _znc_core._stringlist_assign(self, *args) 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, *args) -> "void" : return _znc_core._stringlist_push_front(self, *args) 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, *args) -> "std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > *" : return _znc_core.VIRCNetworks___getslice__(self, *args) def __setslice__(self, *args) -> "void" : return _znc_core.VIRCNetworks___setslice__(self, *args) def __delslice__(self, *args) -> "void" : return _znc_core.VIRCNetworks___delslice__(self, *args) 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, *args) -> "void" : return _znc_core.VIRCNetworks_append(self, *args) 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, *args) -> "void" : return _znc_core.VIRCNetworks_swap(self, *args) 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, *args) -> "void" : return _znc_core.VIRCNetworks_push_back(self, *args) 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, *args) -> "void" : return _znc_core.VIRCNetworks_assign(self, *args) 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, *args) -> "void" : return _znc_core.VIRCNetworks_reserve(self, *args) 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, *args) -> "std::vector< CChan *,std::allocator< CChan * > > *" : return _znc_core.VChannels___getslice__(self, *args) def __setslice__(self, *args) -> "void" : return _znc_core.VChannels___setslice__(self, *args) def __delslice__(self, *args) -> "void" : return _znc_core.VChannels___delslice__(self, *args) 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, *args) -> "void" : return _znc_core.VChannels_append(self, *args) 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, *args) -> "void" : return _znc_core.VChannels_swap(self, *args) 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, *args) -> "void" : return _znc_core.VChannels_push_back(self, *args) 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, *args) -> "void" : return _znc_core.VChannels_assign(self, *args) 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, *args) -> "void" : return _znc_core.VChannels_reserve(self, *args) 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, *args) -> "std::map< CString,CNick >::mapped_type const &" : return _znc_core.MNicks___getitem__(self, *args) def __delitem__(self, *args) -> "void" : return _znc_core.MNicks___delitem__(self, *args) def has_key(self, *args) -> "bool" : return _znc_core.MNicks_has_key(self, *args) 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, *args) -> "bool" : return _znc_core.MNicks___contains__(self, *args) 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, *args) -> "void" : return _znc_core.MNicks_swap(self, *args) 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, *args) -> "std::map< CString,CNick >::size_type" : return _znc_core.MNicks_count(self, *args) def erase(self, *args) -> "void" : return _znc_core.MNicks_erase(self, *args) def find(self, *args) -> "std::map< CString,CNick >::iterator" : return _znc_core.MNicks_find(self, *args) def lower_bound(self, *args) -> "std::map< CString,CNick >::iterator" : return _znc_core.MNicks_lower_bound(self, *args) def upper_bound(self, *args) -> "std::map< CString,CNick >::iterator" : return _znc_core.MNicks_upper_bound(self, *args) __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, *args) -> "void" : return _znc_core.SModInfo_append(self, *args) def __contains__(self, *args) -> "bool" : return _znc_core.SModInfo___contains__(self, *args) def __getitem__(self, *args) -> "std::set< CModInfo >::value_type" : return _znc_core.SModInfo___getitem__(self, *args) def add(self, *args) -> "void" : return _znc_core.SModInfo_add(self, *args) def discard(self, *args) -> "void" : return _znc_core.SModInfo_discard(self, *args) 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, *args) -> "void" : return _znc_core.SModInfo_swap(self, *args) def count(self, *args) -> "std::set< CModInfo >::size_type" : return _znc_core.SModInfo_count(self, *args) 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, *args) -> "std::set< CModInfo >::iterator" : return _znc_core.SModInfo_find(self, *args) def lower_bound(self, *args) -> "std::set< CModInfo >::iterator" : return _znc_core.SModInfo_lower_bound(self, *args) def upper_bound(self, *args) -> "std::set< CModInfo >::iterator" : return _znc_core.SModInfo_upper_bound(self, *args) def equal_range(self, *args) -> "std::pair< std::set< CModInfo >::iterator,std::set< CModInfo >::iterator >" : return _znc_core.SModInfo_equal_range(self, *args) def insert(self, *args) -> "std::pair< std::set< CModInfo >::iterator,bool >" : return _znc_core.SModInfo_insert(self, *args) __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, *args) -> "void" : return _znc_core.SCString_append(self, *args) def __contains__(self, *args) -> "bool" : return _znc_core.SCString___contains__(self, *args) def __getitem__(self, *args) -> "std::set< CString >::value_type" : return _znc_core.SCString___getitem__(self, *args) def add(self, *args) -> "void" : return _znc_core.SCString_add(self, *args) def discard(self, *args) -> "void" : return _znc_core.SCString_discard(self, *args) 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, *args) -> "void" : return _znc_core.SCString_swap(self, *args) def count(self, *args) -> "std::set< CString >::size_type" : return _znc_core.SCString_count(self, *args) 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, *args) -> "std::set< CString >::iterator" : return _znc_core.SCString_find(self, *args) def lower_bound(self, *args) -> "std::set< CString >::iterator" : return _znc_core.SCString_lower_bound(self, *args) def upper_bound(self, *args) -> "std::set< CString >::iterator" : return _znc_core.SCString_upper_bound(self, *args) def equal_range(self, *args) -> "std::pair< std::set< CString >::iterator,std::set< CString >::iterator >" : return _znc_core.SCString_equal_range(self, *args) def insert(self, *args) -> "std::pair< std::set< CString >::iterator,bool >" : return _znc_core.SCString_insert(self, *args) __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, *args) -> "std::vector< CString,std::allocator< CString > > *" : return _znc_core.VCString___getslice__(self, *args) def __setslice__(self, *args) -> "void" : return _znc_core.VCString___setslice__(self, *args) def __delslice__(self, *args) -> "void" : return _znc_core.VCString___delslice__(self, *args) 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, *args) -> "void" : return _znc_core.VCString_append(self, *args) 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, *args) -> "void" : return _znc_core.VCString_swap(self, *args) 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, *args) -> "void" : return _znc_core.VCString_push_back(self, *args) 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, *args) -> "void" : return _znc_core.VCString_assign(self, *args) 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, *args) -> "void" : return _znc_core.VCString_reserve(self, *args) 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, *args) -> "std::map< CString,CString >::mapped_type const &" : return _znc_core.PyMCString___getitem__(self, *args) def __delitem__(self, *args) -> "void" : return _znc_core.PyMCString___delitem__(self, *args) def has_key(self, *args) -> "bool" : return _znc_core.PyMCString_has_key(self, *args) 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, *args) -> "bool" : return _znc_core.PyMCString___contains__(self, *args) 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, *args) -> "void" : return _znc_core.PyMCString_swap(self, *args) 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, *args) -> "std::map< CString,CString >::size_type" : return _znc_core.PyMCString_count(self, *args) def erase(self, *args) -> "void" : return _znc_core.PyMCString_erase(self, *args) def find(self, *args) -> "std::map< CString,CString >::iterator" : return _znc_core.PyMCString_find(self, *args) def lower_bound(self, *args) -> "std::map< CString,CString >::iterator" : return _znc_core.PyMCString_lower_bound(self, *args) def upper_bound(self, *args) -> "std::map< CString,CString >::iterator" : return _znc_core.PyMCString_upper_bound(self, *args) __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, *args) -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::mapped_type const &" : return _znc_core.PyMStringVString___getitem__(self, *args) def __delitem__(self, *args) -> "void" : return _znc_core.PyMStringVString___delitem__(self, *args) def has_key(self, *args) -> "bool" : return _znc_core.PyMStringVString_has_key(self, *args) 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, *args) -> "bool" : return _znc_core.PyMStringVString___contains__(self, *args) 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, *args) -> "void" : return _znc_core.PyMStringVString_swap(self, *args) 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, *args) -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::size_type" : return _znc_core.PyMStringVString_count(self, *args) def erase(self, *args) -> "void" : return _znc_core.PyMStringVString_erase(self, *args) def find(self, *args) -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator" : return _znc_core.PyMStringVString_find(self, *args) def lower_bound(self, *args) -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator" : return _znc_core.PyMStringVString_lower_bound(self, *args) def upper_bound(self, *args) -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator" : return _znc_core.PyMStringVString_upper_bound(self, *args) __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, *args) -> "std::vector< CModule *,std::allocator< CModule * > > *" : return _znc_core.PyModulesVector___getslice__(self, *args) def __setslice__(self, *args) -> "void" : return _znc_core.PyModulesVector___setslice__(self, *args) def __delslice__(self, *args) -> "void" : return _znc_core.PyModulesVector___delslice__(self, *args) 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, *args) -> "void" : return _znc_core.PyModulesVector_append(self, *args) 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, *args) -> "void" : return _znc_core.PyModulesVector_swap(self, *args) 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, *args) -> "void" : return _znc_core.PyModulesVector_push_back(self, *args) 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, *args) -> "void" : return _znc_core.PyModulesVector_assign(self, *args) 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, *args) -> "void" : return _znc_core.PyModulesVector_reserve(self, *args) 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, *args) -> "std::vector< CListener *,std::allocator< CListener * > > *" : return _znc_core.VListeners___getslice__(self, *args) def __setslice__(self, *args) -> "void" : return _znc_core.VListeners___setslice__(self, *args) def __delslice__(self, *args) -> "void" : return _znc_core.VListeners___delslice__(self, *args) 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, *args) -> "void" : return _znc_core.VListeners_append(self, *args) 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, *args) -> "void" : return _znc_core.VListeners_swap(self, *args) 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, *args) -> "void" : return _znc_core.VListeners_push_back(self, *args) 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, *args) -> "void" : return _znc_core.VListeners_assign(self, *args) 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, *args) -> "void" : return _znc_core.VListeners_reserve(self, *args) 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, *args) -> "std::deque< CBufLine,std::allocator< CBufLine > > *" : return _znc_core.BufLines___getslice__(self, *args) def __setslice__(self, *args) -> "void" : return _znc_core.BufLines___setslice__(self, *args) def __delslice__(self, *args) -> "void" : return _znc_core.BufLines___delslice__(self, *args) 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, *args) -> "void" : return _znc_core.BufLines_append(self, *args) 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, *args) -> "void" : return _znc_core.BufLines_swap(self, *args) 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, *args) -> "void" : return _znc_core.BufLines_push_back(self, *args) 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, *args) -> "void" : return _znc_core.BufLines_assign(self, *args) 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, *args) -> "void" : return _znc_core.BufLines_push_front(self, *args) __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, *args) -> "std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > *" : return _znc_core.VVString___getslice__(self, *args) def __setslice__(self, *args) -> "void" : return _znc_core.VVString___setslice__(self, *args) def __delslice__(self, *args) -> "void" : return _znc_core.VVString___delslice__(self, *args) 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, *args) -> "void" : return _znc_core.VVString_append(self, *args) 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, *args) -> "void" : return _znc_core.VVString_swap(self, *args) 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, *args) -> "void" : return _znc_core.VVString_push_back(self, *args) 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, *args) -> "void" : return _znc_core.VVString_assign(self, *args) 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, *args) -> "void" : return _znc_core.VVString_reserve(self, *args) 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) def SetFdCloseOnExec(*args) -> "void" : return _znc_core.SetFdCloseOnExec(*args) 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__["GetTimezones"] = lambda x: _znc_core.CUtils_GetTimezones if _newclass:GetTimezones = staticmethod(_znc_core.CUtils_GetTimezones) CUtils_swigregister = _znc_core.CUtils_swigregister CUtils_swigregister(CUtils) cvar = _znc_core.cvar g_HexDigits = cvar.g_HexDigits def CUtils_GetIP(*args) -> "CString" : return _znc_core.CUtils_GetIP(*args) CUtils_GetIP = _znc_core.CUtils_GetIP def CUtils_GetLongIP(*args) -> "unsigned long" : return _znc_core.CUtils_GetLongIP(*args) CUtils_GetLongIP = _znc_core.CUtils_GetLongIP def CUtils_PrintError(*args) -> "void" : return _znc_core.CUtils_PrintError(*args) CUtils_PrintError = _znc_core.CUtils_PrintError def CUtils_PrintMessage(*args) -> "void" : return _znc_core.CUtils_PrintMessage(*args) CUtils_PrintMessage = _znc_core.CUtils_PrintMessage def CUtils_PrintPrompt(*args) -> "void" : return _znc_core.CUtils_PrintPrompt(*args) CUtils_PrintPrompt = _znc_core.CUtils_PrintPrompt def CUtils_PrintAction(*args) -> "void" : return _znc_core.CUtils_PrintAction(*args) 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(*args) -> "CString" : return _znc_core.CUtils_GetSaltedHashPass(*args) CUtils_GetSaltedHashPass = _znc_core.CUtils_GetSaltedHashPass def CUtils_GetSalt() -> "CString" : return _znc_core.CUtils_GetSalt() CUtils_GetSalt = _znc_core.CUtils_GetSalt def CUtils_SaltedMD5Hash(*args) -> "CString" : return _znc_core.CUtils_SaltedMD5Hash(*args) CUtils_SaltedMD5Hash = _znc_core.CUtils_SaltedMD5Hash def CUtils_SaltedSHA256Hash(*args) -> "CString" : return _znc_core.CUtils_SaltedSHA256Hash(*args) CUtils_SaltedSHA256Hash = _znc_core.CUtils_SaltedSHA256Hash def CUtils_GetPass(*args) -> "CString" : return _znc_core.CUtils_GetPass(*args) 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(*args) -> "CString" : return _znc_core.CUtils_CTime(*args) CUtils_CTime = _znc_core.CUtils_CTime def CUtils_FormatTime(*args) -> "CString" : return _znc_core.CUtils_FormatTime(*args) CUtils_FormatTime = _znc_core.CUtils_FormatTime def CUtils_GetTimezones() -> "SCString" : return _znc_core.CUtils_GetTimezones() CUtils_GetTimezones = _znc_core.CUtils_GetTimezones 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, *args): this = _znc_core.new_CException(*args) 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): this = _znc_core.new_CTable() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CTable __del__ = lambda self : None; def AddColumn(self, *args) -> "bool" : return _znc_core.CTable_AddColumn(self, *args) 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, *args) -> "bool" : return _znc_core.CTable_GetLine(self, *args) def GetColumnWidth(self, *args) -> "CString::size_type" : return _znc_core.CTable_GetColumnWidth(self, *args) 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 PAuthBase(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, PAuthBase, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, PAuthBase, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_PAuthBase(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_PAuthBase __del__ = lambda self : None; def __ref__(self) -> "CAuthBase &" : return _znc_core.PAuthBase___ref__(self) def __deref__(self) -> "CAuthBase *" : return _znc_core.PAuthBase___deref__(self) def __nonzero__(self): return _znc_core.PAuthBase___nonzero__(self) __bool__ = __nonzero__ def IsNull(self) -> "bool" : return _znc_core.PAuthBase_IsNull(self) def Attach(self, *args) -> "CSmartPtr< CAuthBase > &" : return _znc_core.PAuthBase_Attach(self, *args) def Release(self) -> "void" : return _znc_core.PAuthBase_Release(self) def GetPtr(self) -> "CAuthBase *" : return _znc_core.PAuthBase_GetPtr(self) def GetCount(self) -> "unsigned int" : return _znc_core.PAuthBase_GetCount(self) def SetLoginInfo(self, *args) -> "void" : return _znc_core.PAuthBase_SetLoginInfo(self, *args) def AcceptLogin(self, *args) -> "void" : return _znc_core.PAuthBase_AcceptLogin(self, *args) def RefuseLogin(self, *args) -> "void" : return _znc_core.PAuthBase_RefuseLogin(self, *args) def GetUsername(self) -> "CString const &" : return _znc_core.PAuthBase_GetUsername(self) def GetPassword(self) -> "CString const &" : return _znc_core.PAuthBase_GetPassword(self) def GetSocket(self) -> "Csock *" : return _znc_core.PAuthBase_GetSocket(self) def GetRemoteIP(self) -> "CString" : return _znc_core.PAuthBase_GetRemoteIP(self) def Invalidate(self) -> "void" : return _znc_core.PAuthBase_Invalidate(self) PAuthBase_swigregister = _znc_core.PAuthBase_swigregister PAuthBase_swigregister(PAuthBase) class WebSession(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, WebSession, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, WebSession, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_WebSession(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_WebSession __del__ = lambda self : None; def __ref__(self) -> "CWebSession &" : return _znc_core.WebSession___ref__(self) def __deref__(self) -> "CWebSession *" : return _znc_core.WebSession___deref__(self) def __nonzero__(self): return _znc_core.WebSession___nonzero__(self) __bool__ = __nonzero__ def IsNull(self) -> "bool" : return _znc_core.WebSession_IsNull(self) def Attach(self, *args) -> "CSmartPtr< CWebSession > &" : return _znc_core.WebSession_Attach(self, *args) def Release(self) -> "void" : return _znc_core.WebSession_Release(self) def GetPtr(self) -> "CWebSession *" : return _znc_core.WebSession_GetPtr(self) def GetCount(self) -> "unsigned int" : return _znc_core.WebSession_GetCount(self) def GetId(self) -> "CString const &" : return _znc_core.WebSession_GetId(self) def GetIP(self) -> "CString const &" : return _znc_core.WebSession_GetIP(self) def GetUser(self) -> "CUser *" : return _znc_core.WebSession_GetUser(self) def IsLoggedIn(self) -> "bool" : return _znc_core.WebSession_IsLoggedIn(self) def IsAdmin(self) -> "bool" : return _znc_core.WebSession_IsAdmin(self) def SetUser(self, *args) -> "CUser *" : return _znc_core.WebSession_SetUser(self, *args) def ClearMessageLoops(self) -> "void" : return _znc_core.WebSession_ClearMessageLoops(self) def FillMessageLoops(self, *args) -> "void" : return _znc_core.WebSession_FillMessageLoops(self, *args) def AddError(self, *args) -> "size_t" : return _znc_core.WebSession_AddError(self, *args) def AddSuccess(self, *args) -> "size_t" : return _znc_core.WebSession_AddSuccess(self, *args) WebSession_swigregister = _znc_core.WebSession_swigregister WebSession_swigregister(WebSession) 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, *args) -> "void" : return _znc_core.CConfig_AddKeyValuePair(self, *args) def AddSubConfig(self, *args) -> "bool" : return _znc_core.CConfig_AddSubConfig(self, *args) def FindStringVector(self, *args) -> "bool" : return _znc_core.CConfig_FindStringVector(self, *args) def FindStringEntry(self, *args) -> "bool" : return _znc_core.CConfig_FindStringEntry(self, *args) def FindBoolEntry(self, *args) -> "bool" : return _znc_core.CConfig_FindBoolEntry(self, *args) def FindUIntEntry(self, *args) -> "bool" : return _znc_core.CConfig_FindUIntEntry(self, *args) def FindUShortEntry(self, *args) -> "bool" : return _znc_core.CConfig_FindUShortEntry(self, *args) def FindDoubleEntry(self, *args) -> "bool" : return _znc_core.CConfig_FindDoubleEntry(self, *args) def FindSubConfig(self, *args) -> "bool" : return _znc_core.CConfig_FindSubConfig(self, *args) def empty(self) -> "bool" : return _znc_core.CConfig_empty(self) def Parse(self, *args) -> "bool" : return _znc_core.CConfig_Parse(self, *args) def Write(self, *args) -> "void" : return _znc_core.CConfig_Write(self, *args) 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) 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, *args): this = _znc_core.new_CSCharBuffer(*args) 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, *args) -> "void" : return _znc_core.CSSockAddr_SinPort(self, *args) def SetIPv6(self, *args) -> "void" : return _znc_core.CSSockAddr_SetIPv6(self, *args) 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, *args) -> "void" : return _znc_core.CSSockAddr_SetAFRequire(self, *args) 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, *args): this = _znc_core.new_CGetAddrInfo(*args) 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(*args) -> "int" : return _znc_core.GetAddrInfo(*args) GetAddrInfo = _znc_core.GetAddrInfo def GetCsockClassIdx() -> "int" : return _znc_core.GetCsockClassIdx() GetCsockClassIdx = _znc_core.GetCsockClassIdx 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(*args) -> "void" : return _znc_core.TFD_ZERO(*args) TFD_ZERO = _znc_core.TFD_ZERO def TFD_SET(*args) -> "void" : return _znc_core.TFD_SET(*args) TFD_SET = _znc_core.TFD_SET def TFD_ISSET(*args) -> "bool" : return _znc_core.TFD_ISSET(*args) TFD_ISSET = _znc_core.TFD_ISSET def TFD_CLR(*args) -> "void" : return _znc_core.TFD_CLR(*args) TFD_CLR = _znc_core.TFD_CLR def __Perror(*args) -> "void" : return _znc_core.__Perror(*args) __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, *args) -> "void" : return _znc_core.CCron_run(self, *args) 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 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, *args) -> "void" : return _znc_core.CCron_SetName(self, *args) 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, *args) -> "bool" : return _znc_core.CSMonitorFD_GatherFDsForSelect(self, *args) def FDsThatTriggered(self, *args) -> "bool" : return _znc_core.CSMonitorFD_FDsThatTriggered(self, *args) def CheckFDs(self, *args) -> "bool" : return _znc_core.CSMonitorFD_CheckFDs(self, *args) def Add(self, *args) -> "void" : return _znc_core.CSMonitorFD_Add(self, *args) def Remove(self, *args) -> "void" : return _znc_core.CSMonitorFD_Remove(self, *args) 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, *args) -> "void" : return _znc_core.CSockCommon_AddCron(self, *args) def DelCron(self, *args) -> "void" : return _znc_core.CSockCommon_DelCron(self, *args) def DelCronByAddr(self, *args) -> "void" : return _znc_core.CSockCommon_DelCronByAddr(self, *args) def CheckFDs(self, *args) -> "void" : return _znc_core.CSockCommon_CheckFDs(self, *args) def AssignFDs(self, *args) -> "void" : return _znc_core.CSockCommon_AssignFDs(self, *args) def MonitorFD(self, *args) -> "void" : return _znc_core.CSockCommon_MonitorFD(self, *args) 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, *args) -> "Csock *" : return _znc_core.Csock_GetSockObj(self, *args) __swig_destroy__ = _znc_core.delete_Csock __del__ = lambda self : None; def Dereference(self) -> "void" : return _znc_core.Csock_Dereference(self) def Copy(self, *args) -> "void" : return _znc_core.Csock_Copy(self, *args) 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 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, *args) -> "cs_sock_t" : return _znc_core.Csock_Accept(self, *args) 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, *args) -> "cs_ssize_t" : return _znc_core.Csock_Read(self, *args) 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, *args) -> "void" : return _znc_core.Csock_SetIsConnected(self, *args) def GetRSock(self) -> "cs_sock_t &" : return _znc_core.Csock_GetRSock(self) def SetRSock(self, *args) -> "void" : return _znc_core.Csock_SetRSock(self, *args) def GetWSock(self) -> "cs_sock_t &" : return _znc_core.Csock_GetWSock(self) def SetWSock(self, *args) -> "void" : return _znc_core.Csock_SetWSock(self, *args) def SetSock(self, *args) -> "void" : return _znc_core.Csock_SetSock(self, *args) def GetSock(self) -> "cs_sock_t &" : return _znc_core.Csock_GetSock(self) 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, *args) -> "void" : return _znc_core.Csock_SetTimeoutType(self, *args) def GetTimeout(self) -> "int" : return _znc_core.Csock_GetTimeout(self) def GetTimeoutType(self) -> "uint32_t" : return _znc_core.Csock_GetTimeoutType(self) def CheckTimeout(self, *args) -> "bool" : return _znc_core.Csock_CheckTimeout(self, *args) def PushBuff(self, *args) -> "void" : return _znc_core.Csock_PushBuff(self, *args) def GetInternalReadBuffer(self) -> "CString &" : return _znc_core.Csock_GetInternalReadBuffer(self) def GetInternalWriteBuffer(self) -> "CString &" : return _znc_core.Csock_GetInternalWriteBuffer(self) def SetMaxBufferThreshold(self, *args) -> "void" : return _znc_core.Csock_SetMaxBufferThreshold(self, *args) def GetMaxBufferThreshold(self) -> "uint32_t" : return _znc_core.Csock_GetMaxBufferThreshold(self) def GetType(self) -> "int" : return _znc_core.Csock_GetType(self) def SetType(self, *args) -> "void" : return _znc_core.Csock_SetType(self, *args) def GetSockName(self) -> "CString const &" : return _znc_core.Csock_GetSockName(self) def SetSockName(self, *args) -> "void" : return _znc_core.Csock_SetSockName(self, *args) def GetHostName(self) -> "CString const &" : return _znc_core.Csock_GetHostName(self) def SetHostName(self, *args) -> "void" : return _znc_core.Csock_SetHostName(self, *args) 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, *args) -> "void" : return _znc_core.Csock_SetPort(self, *args) 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, *args) -> "void" : return _znc_core.Csock_SetSSL(self, *args) def GetWriteBuffer(self) -> "CString const &" : return _znc_core.Csock_GetWriteBuffer(self) def ClearWriteBuffer(self) -> "void" : return _znc_core.Csock_ClearWriteBuffer(self) def SslIsEstablished(self) -> "bool" : return _znc_core.Csock_SslIsEstablished(self) def ConnectInetd(self, bIsSSL : 'bool'=False, sHostname : 'CString'="") -> "bool" : return _znc_core.Csock_ConnectInetd(self, bIsSSL, sHostname) def ConnectFD(self, *args) -> "bool" : return _znc_core.Csock_ConnectFD(self, *args) def SetParentSockName(self, *args) -> "void" : return _znc_core.Csock_SetParentSockName(self, *args) def GetParentSockName(self) -> "CString const &" : return _znc_core.Csock_GetParentSockName(self) def SetRate(self, *args) -> "void" : return _znc_core.Csock_SetRate(self, *args) 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, *args) -> "void" : return _znc_core.Csock_ReadData(self, *args) def ReadLine(self, *args) -> "void" : return _znc_core.Csock_ReadLine(self, *args) 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, *args) -> "void" : return _znc_core.Csock_SockError(self, *args) def ConnectionFrom(self, *args) -> "bool" : return _znc_core.Csock_ConnectionFrom(self, *args) def Listening(self, *args) -> "void" : return _znc_core.Csock_Listening(self, *args) 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, *args) -> "void" : return _znc_core.Csock_SetConState(self, *args) 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, *args) -> "void" : return _znc_core.Csock_SetBindHost(self, *args) DNS_VHOST = _znc_core.Csock_DNS_VHOST DNS_DEST = _znc_core.Csock_DNS_DEST def DNSLookup(self, *args) -> "int" : return _znc_core.Csock_DNSLookup(self, *args) def SetupVHost(self) -> "bool" : return _znc_core.Csock_SetupVHost(self) def GetIPv6(self) -> "bool" : return _znc_core.Csock_GetIPv6(self) def SetIPv6(self, *args) -> "void" : return _znc_core.Csock_SetIPv6(self, *args) def SetAFRequire(self, *args) -> "void" : return _znc_core.Csock_SetAFRequire(self, *args) def AllowWrite(self, *args) -> "bool" : return _znc_core.Csock_AllowWrite(self, *args) def SetSkipConnect(self, *args) -> "void" : return _znc_core.Csock_SetSkipConnect(self, *args) def GetAddrInfo(self, *args) -> "int" : return _znc_core.Csock_GetAddrInfo(self, *args) def ConvertAddress(self, *args) -> "int" : return _znc_core.Csock_ConvertAddress(self, *args) def GetMaxConns(self) -> "int" : return _znc_core.Csock_GetMaxConns(self) def WriteBytes(self, *args) -> "PyObject *" : return _znc_core.Csock_WriteBytes(self, *args) 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, *args): this = _znc_core.new_CSConnection(*args) 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, *args) -> "void" : return _znc_core.CSConnection_SetHostname(self, *args) def SetSockName(self, *args) -> "void" : return _znc_core.CSConnection_SetSockName(self, *args) def SetBindHost(self, *args) -> "void" : return _znc_core.CSConnection_SetBindHost(self, *args) def SetPort(self, *args) -> "void" : return _znc_core.CSConnection_SetPort(self, *args) def SetTimeout(self, *args) -> "void" : return _znc_core.CSConnection_SetTimeout(self, *args) def SetIsSSL(self, *args) -> "void" : return _znc_core.CSConnection_SetIsSSL(self, *args) def SetAFRequire(self, *args) -> "void" : return _znc_core.CSConnection_SetAFRequire(self, *args) 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, *args): this = _znc_core.new_CSSSLConnection(*args) 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, *args) -> "void" : return _znc_core.CSListener_SetDetach(self, *args) 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, *args) -> "void" : return _znc_core.CSListener_SetPort(self, *args) def SetSockName(self, *args) -> "void" : return _znc_core.CSListener_SetSockName(self, *args) def SetBindHost(self, *args) -> "void" : return _znc_core.CSListener_SetBindHost(self, *args) def SetIsSSL(self, *args) -> "void" : return _znc_core.CSListener_SetIsSSL(self, *args) def SetMaxConns(self, *args) -> "void" : return _znc_core.CSListener_SetMaxConns(self, *args) def SetTimeout(self, *args) -> "void" : return _znc_core.CSListener_SetTimeout(self, *args) def SetAFRequire(self, *args) -> "void" : return _znc_core.CSListener_SetAFRequire(self, *args) 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, *args) -> "Csock *" : return _znc_core.CSocketManager_GetSockObj(self, *args) 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, *args) -> "void" : return _znc_core.CSocketManager_Connect(self, *args) def Listen(self, *args) -> "bool" : return _znc_core.CSocketManager_Listen(self, *args) def HasFDs(self) -> "bool" : return _znc_core.CSocketManager_HasFDs(self) def Loop(self) -> "void" : return _znc_core.CSocketManager_Loop(self) def DynamicSelectLoop(self, *args) -> "void" : return _znc_core.CSocketManager_DynamicSelectLoop(self, *args) def AddSock(self, *args) -> "void" : return _znc_core.CSocketManager_AddSock(self, *args) def FindSockByRemotePort(self, *args) -> "Csock *" : return _znc_core.CSocketManager_FindSockByRemotePort(self, *args) def FindSockByLocalPort(self, *args) -> "Csock *" : return _znc_core.CSocketManager_FindSockByLocalPort(self, *args) def FindSockByName(self, *args) -> "Csock *" : return _znc_core.CSocketManager_FindSockByName(self, *args) def FindSockByFD(self, *args) -> "Csock *" : return _znc_core.CSocketManager_FindSockByFD(self, *args) def FindSocksByName(self, *args) -> "std::vector< Csock *,std::allocator< Csock * > >" : return _znc_core.CSocketManager_FindSocksByName(self, *args) def FindSocksByRemoteHost(self, *args) -> "std::vector< Csock *,std::allocator< Csock * > >" : return _znc_core.CSocketManager_FindSocksByRemoteHost(self, *args) def GetErrno(self) -> "int" : return _znc_core.CSocketManager_GetErrno(self) def GetSelectTimeout(self) -> "uint64_t" : return _znc_core.CSocketManager_GetSelectTimeout(self) def SetSelectTimeout(self, *args) -> "void" : return _znc_core.CSocketManager_SetSelectTimeout(self, *args) def DelSockByAddr(self, *args) -> "void" : return _znc_core.CSocketManager_DelSockByAddr(self, *args) def DelSock(self, *args) -> "void" : return _znc_core.CSocketManager_DelSock(self, *args) def SwapSockByIdx(self, *args) -> "bool" : return _znc_core.CSocketManager_SwapSockByIdx(self, *args) def SwapSockByAddr(self, *args) -> "bool" : return _znc_core.CSocketManager_SwapSockByAddr(self, *args) 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, *args) -> "void" : return _znc_core.CSocketManager_FDSetCheck(self, *args) def FDHasCheck(self, *args) -> "bool" : return _znc_core.CSocketManager_FDHasCheck(self, *args) 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, *args) -> "CZNCSock *" : return _znc_core.ZNCSocketManager_GetSockObj(self, *args) 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, *args) -> "int" : return _znc_core.CZNCSock_ConvertAddress(self, *args) CZNCSock_swigregister = _znc_core.CZNCSock_swigregister CZNCSock_swigregister(CZNCSock) ADDR_IPV4ONLY = _znc_core.ADDR_IPV4ONLY ADDR_IPV6ONLY = _znc_core.ADDR_IPV6ONLY 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, *args) -> "unsigned int" : return _znc_core.CSockManager_GetAnonConnectionCount(self, *args) 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, *args) -> "void" : return _znc_core.CSocket_SockError(self, *args) def ConnectionFrom(self, *args) -> "bool" : return _znc_core.CSocket_ConnectionFrom(self, *args) 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 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, *args) -> "void" : return _znc_core.CFile_SetFileName(self, *args) 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, *args) -> "bool" : return _znc_core.CFile_Seek(self, *args) 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, *args) -> "ssize_t" : return _znc_core.CFile_Read(self, *args) 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(*args) -> "bool" : return _znc_core.CFile_FType(*args) 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(*args) -> "int" : return _znc_core.CFile_GetInfo(*args) 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(*args) -> "void" : return _znc_core.CFile_InitHomePath(*args) 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, *args) -> "size_t" : return _znc_core.CDir_Fill(self, *args) def FillByWildcard(self, *args) -> "size_t" : return _znc_core.CDir_FillByWildcard(self, *args) 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(*args) -> "bool" : return _znc_core.CDir_MakeDir(*args) 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, *args): this = _znc_core.new_CTimer(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CTimer __del__ = lambda self : None; def SetModule(self, *args) -> "void" : return _znc_core.CTimer_SetModule(self, *args) def SetDescription(self, *args) -> "void" : return _znc_core.CTimer_SetDescription(self, *args) 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, *args): this = _znc_core.new_CFPTimer(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CFPTimer __del__ = lambda self : None; def SetFPCallback(self, *args) -> "void" : return _znc_core.CFPTimer_SetFPCallback(self, *args) 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, *args) -> "bool" : return _znc_core.CModInfo___lt__(self, *args) def SupportsType(self, *args) -> "bool" : return _znc_core.CModInfo_SupportsType(self, *args) def AddType(self, *args) -> "void" : return _znc_core.CModInfo_AddType(self, *args) __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, *args) -> "void" : return _znc_core.CModInfo_SetName(self, *args) def SetPath(self, *args) -> "void" : return _znc_core.CModInfo_SetPath(self, *args) def SetDescription(self, *args) -> "void" : return _znc_core.CModInfo_SetDescription(self, *args) def SetWikiPage(self, *args) -> "void" : return _znc_core.CModInfo_SetWikiPage(self, *args) def SetArgsHelpText(self, *args) -> "void" : return _znc_core.CModInfo_SetArgsHelpText(self, *args) def SetHasArgs(self, b : 'bool'=False) -> "void" : return _znc_core.CModInfo_SetHasArgs(self, b) def SetLoader(self, *args) -> "void" : return _znc_core.CModInfo_SetLoader(self, *args) def SetDefaultType(self, *args) -> "void" : return _znc_core.CModInfo_SetDefaultType(self, *args) CModInfo_swigregister = _znc_core.CModInfo_swigregister CModInfo_swigregister(CModInfo) def CModInfo_ModuleTypeToString(*args) -> "CString" : return _znc_core.CModInfo_ModuleTypeToString(*args) 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, *args) -> "void" : return _znc_core.CModCommand_AddHelp(self, *args) def GetCommand(self) -> "CString const &" : return _znc_core.CModCommand_GetCommand(self) def GetFunction(self) -> "CModCommand::ModCmdFunc" : 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, *args) -> "void" : return _znc_core.CModCommand_Call(self, *args) __swig_destroy__ = _znc_core.delete_CModCommand __del__ = lambda self : None; CModCommand_swigregister = _znc_core.CModCommand_swigregister CModCommand_swigregister(CModCommand) def CModCommand_InitHelp(*args) -> "void" : return _znc_core.CModCommand_InitHelp(*args) 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, *args): this = _znc_core.new_CModule(*args) 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, *args) -> "void" : return _znc_core.CModule_SetUser(self, *args) def SetNetwork(self, *args) -> "void" : return _znc_core.CModule_SetNetwork(self, *args) def SetClient(self, *args) -> "void" : return _znc_core.CModule_SetClient(self, *args) def Unload(self) -> "void" : return _znc_core.CModule_Unload(self) def OnLoad(self, *args) -> "bool" : return _znc_core.CModule_OnLoad(self, *args) 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, *args) -> "bool" : return _znc_core.CModule_OnWebPreRequest(self, *args) def OnWebRequest(self, *args) -> "bool" : return _znc_core.CModule_OnWebRequest(self, *args) def AddSubPage(self, *args) -> "void" : return _znc_core.CModule_AddSubPage(self, *args) def ClearSubPages(self) -> "void" : return _znc_core.CModule_ClearSubPages(self) def GetSubPages(self) -> "VWebSubPages &" : return _znc_core.CModule_GetSubPages(self) def OnEmbeddedWebRequest(self, *args) -> "bool" : return _znc_core.CModule_OnEmbeddedWebRequest(self, *args) 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, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnIRCConnecting(self, *args) def OnIRCConnectionError(self, *args) -> "void" : return _znc_core.CModule_OnIRCConnectionError(self, *args) def OnIRCRegistration(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnIRCRegistration(self, *args) def OnBroadcast(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnBroadcast(self, *args) def OnChanPermission(self, *args) -> "void" : return _znc_core.CModule_OnChanPermission(self, *args) def OnOp(self, *args) -> "void" : return _znc_core.CModule_OnOp(self, *args) def OnDeop(self, *args) -> "void" : return _znc_core.CModule_OnDeop(self, *args) def OnVoice(self, *args) -> "void" : return _znc_core.CModule_OnVoice(self, *args) def OnDevoice(self, *args) -> "void" : return _znc_core.CModule_OnDevoice(self, *args) def OnMode(self, *args) -> "void" : return _znc_core.CModule_OnMode(self, *args) def OnRawMode(self, *args) -> "void" : return _znc_core.CModule_OnRawMode(self, *args) def OnRaw(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnRaw(self, *args) def OnStatusCommand(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnStatusCommand(self, *args) def OnModCommand(self, *args) -> "void" : return _znc_core.CModule_OnModCommand(self, *args) def OnUnknownModCommand(self, *args) -> "void" : return _znc_core.CModule_OnUnknownModCommand(self, *args) def OnModNotice(self, *args) -> "void" : return _znc_core.CModule_OnModNotice(self, *args) def OnModCTCP(self, *args) -> "void" : return _znc_core.CModule_OnModCTCP(self, *args) def OnQuit(self, *args) -> "void" : return _znc_core.CModule_OnQuit(self, *args) def OnNick(self, *args) -> "void" : return _znc_core.CModule_OnNick(self, *args) def OnKick(self, *args) -> "void" : return _znc_core.CModule_OnKick(self, *args) def OnJoin(self, *args) -> "void" : return _znc_core.CModule_OnJoin(self, *args) def OnPart(self, *args) -> "void" : return _znc_core.CModule_OnPart(self, *args) def OnInvite(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnInvite(self, *args) def OnChanBufferStarting(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnChanBufferStarting(self, *args) def OnChanBufferEnding(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnChanBufferEnding(self, *args) def OnChanBufferPlayLine(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnChanBufferPlayLine(self, *args) def OnPrivBufferPlayLine(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnPrivBufferPlayLine(self, *args) def OnClientLogin(self) -> "void" : return _znc_core.CModule_OnClientLogin(self) def OnClientDisconnect(self) -> "void" : return _znc_core.CModule_OnClientDisconnect(self) def OnUserRaw(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnUserRaw(self, *args) def OnUserCTCPReply(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnUserCTCPReply(self, *args) def OnUserCTCP(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnUserCTCP(self, *args) def OnUserAction(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnUserAction(self, *args) def OnUserMsg(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnUserMsg(self, *args) def OnUserNotice(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnUserNotice(self, *args) def OnUserJoin(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnUserJoin(self, *args) def OnUserPart(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnUserPart(self, *args) def OnUserTopic(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnUserTopic(self, *args) def OnUserTopicRequest(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnUserTopicRequest(self, *args) def OnCTCPReply(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnCTCPReply(self, *args) def OnPrivCTCP(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnPrivCTCP(self, *args) def OnChanCTCP(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnChanCTCP(self, *args) def OnPrivAction(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnPrivAction(self, *args) def OnChanAction(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnChanAction(self, *args) def OnPrivMsg(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnPrivMsg(self, *args) def OnChanMsg(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnChanMsg(self, *args) def OnPrivNotice(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnPrivNotice(self, *args) def OnChanNotice(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnChanNotice(self, *args) def OnTopic(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnTopic(self, *args) def OnServerCapAvailable(self, *args) -> "bool" : return _znc_core.CModule_OnServerCapAvailable(self, *args) def OnServerCapResult(self, *args) -> "void" : return _znc_core.CModule_OnServerCapResult(self, *args) def OnTimerAutoJoin(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnTimerAutoJoin(self, *args) def OnAddNetwork(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnAddNetwork(self, *args) def OnDeleteNetwork(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnDeleteNetwork(self, *args) 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, *args) -> "bool" : return _znc_core.CModule_PutIRC(self, *args) def PutUser(self, *args) -> "bool" : return _znc_core.CModule_PutUser(self, *args) def PutStatus(self, *args) -> "bool" : return _znc_core.CModule_PutStatus(self, *args) def PutModule(self, *args) -> "unsigned int" : return _znc_core.CModule_PutModule(self, *args) def PutModNotice(self, *args) -> "bool" : return _znc_core.CModule_PutModNotice(self, *args) 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, *args) -> "bool" : return _znc_core.CModule_UnlinkTimer(self, *args) def FindTimer(self, *args) -> "CTimer *" : return _znc_core.CModule_FindTimer(self, *args) 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, *args) -> "bool" : return _znc_core.CModule_AddSocket(self, *args) def RemSocket(self, *args) -> "bool" : return _znc_core.CModule_RemSocket(self, *args) def UnlinkSocket(self, *args) -> "bool" : return _znc_core.CModule_UnlinkSocket(self, *args) def FindSocket(self, *args) -> "CSocket *" : return _znc_core.CModule_FindSocket(self, *args) 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, *args) -> "bool" : return _znc_core.CModule_RemCommand(self, *args) def FindCommand(self, *args) -> "CModCommand const *" : return _znc_core.CModule_FindCommand(self, *args) def HandleCommand(self, *args) -> "bool" : return _znc_core.CModule_HandleCommand(self, *args) def HandleHelpCommand(self, sLine : 'CString'="") -> "void" : return _znc_core.CModule_HandleHelpCommand(self, sLine) def LoadRegistry(self) -> "bool" : return _znc_core.CModule_LoadRegistry(self) def SaveRegistry(self) -> "bool" : return _znc_core.CModule_SaveRegistry(self) def SetNV(self, *args) -> "bool" : return _znc_core.CModule_SetNV(self, *args) def GetNV(self, *args) -> "CString" : return _znc_core.CModule_GetNV(self, *args) def FindNV(self, *args) -> "MCString::iterator" : return _znc_core.CModule_FindNV(self, *args) 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, *args) -> "void" : return _znc_core.CModule_SetType(self, *args) def SetDescription(self, *args) -> "void" : return _znc_core.CModule_SetDescription(self, *args) def SetModPath(self, *args) -> "void" : return _znc_core.CModule_SetModPath(self, *args) def SetArgs(self, *args) -> "void" : return _znc_core.CModule_SetArgs(self, *args) 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, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnAddUser(self, *args) def OnDeleteUser(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnDeleteUser(self, *args) def OnClientConnect(self, *args) -> "void" : return _znc_core.CModule_OnClientConnect(self, *args) def OnLoginAttempt(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnLoginAttempt(self, *args) def OnFailedLogin(self, *args) -> "void" : return _znc_core.CModule_OnFailedLogin(self, *args) def OnUnknownUserRaw(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnUnknownUserRaw(self, *args) def OnClientCapLs(self, *args) -> "void" : return _znc_core.CModule_OnClientCapLs(self, *args) def IsClientCapSupported(self, *args) -> "bool" : return _znc_core.CModule_IsClientCapSupported(self, *args) def OnClientCapRequest(self, *args) -> "void" : return _znc_core.CModule_OnClientCapRequest(self, *args) def OnModuleLoading(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnModuleLoading(self, *args) def OnModuleUnloading(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnModuleUnloading(self, *args) def OnGetModInfo(self, *args) -> "CModule::EModRet" : return _znc_core.CModule_OnGetModInfo(self, *args) def OnGetAvailableMods(self, *args) -> "void" : return _znc_core.CModule_OnGetAvailableMods(self, *args) def __str__(self) -> "CString" : return _znc_core.CModule___str__(self) def BeginNV_(self) -> "MCString_iter" : return _znc_core.CModule_BeginNV_(self) def ExistsNV(self, *args) -> "bool" : return _znc_core.CModule_ExistsNV(self, *args) 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, *args) -> "void" : return _znc_core.CModules_SetUser(self, *args) def SetNetwork(self, *args) -> "void" : return _znc_core.CModules_SetNetwork(self, *args) def SetClient(self, *args) -> "void" : return _znc_core.CModules_SetClient(self, *args) 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, *args) -> "bool" : return _znc_core.CModules_OnIRCConnecting(self, *args) def OnIRCConnectionError(self, *args) -> "bool" : return _znc_core.CModules_OnIRCConnectionError(self, *args) def OnIRCRegistration(self, *args) -> "bool" : return _znc_core.CModules_OnIRCRegistration(self, *args) def OnBroadcast(self, *args) -> "bool" : return _znc_core.CModules_OnBroadcast(self, *args) def OnChanPermission(self, *args) -> "bool" : return _znc_core.CModules_OnChanPermission(self, *args) def OnOp(self, *args) -> "bool" : return _znc_core.CModules_OnOp(self, *args) def OnDeop(self, *args) -> "bool" : return _znc_core.CModules_OnDeop(self, *args) def OnVoice(self, *args) -> "bool" : return _znc_core.CModules_OnVoice(self, *args) def OnDevoice(self, *args) -> "bool" : return _znc_core.CModules_OnDevoice(self, *args) def OnRawMode(self, *args) -> "bool" : return _znc_core.CModules_OnRawMode(self, *args) def OnMode(self, *args) -> "bool" : return _znc_core.CModules_OnMode(self, *args) def OnRaw(self, *args) -> "bool" : return _znc_core.CModules_OnRaw(self, *args) def OnStatusCommand(self, *args) -> "bool" : return _znc_core.CModules_OnStatusCommand(self, *args) def OnModCommand(self, *args) -> "bool" : return _znc_core.CModules_OnModCommand(self, *args) def OnModNotice(self, *args) -> "bool" : return _znc_core.CModules_OnModNotice(self, *args) def OnModCTCP(self, *args) -> "bool" : return _znc_core.CModules_OnModCTCP(self, *args) def OnQuit(self, *args) -> "bool" : return _znc_core.CModules_OnQuit(self, *args) def OnNick(self, *args) -> "bool" : return _znc_core.CModules_OnNick(self, *args) def OnKick(self, *args) -> "bool" : return _znc_core.CModules_OnKick(self, *args) def OnJoin(self, *args) -> "bool" : return _znc_core.CModules_OnJoin(self, *args) def OnPart(self, *args) -> "bool" : return _znc_core.CModules_OnPart(self, *args) def OnInvite(self, *args) -> "bool" : return _znc_core.CModules_OnInvite(self, *args) def OnChanBufferStarting(self, *args) -> "bool" : return _znc_core.CModules_OnChanBufferStarting(self, *args) def OnChanBufferEnding(self, *args) -> "bool" : return _znc_core.CModules_OnChanBufferEnding(self, *args) def OnChanBufferPlayLine(self, *args) -> "bool" : return _znc_core.CModules_OnChanBufferPlayLine(self, *args) def OnPrivBufferPlayLine(self, *args) -> "bool" : return _znc_core.CModules_OnPrivBufferPlayLine(self, *args) def OnClientLogin(self) -> "bool" : return _znc_core.CModules_OnClientLogin(self) def OnClientDisconnect(self) -> "bool" : return _znc_core.CModules_OnClientDisconnect(self) def OnUserRaw(self, *args) -> "bool" : return _znc_core.CModules_OnUserRaw(self, *args) def OnUserCTCPReply(self, *args) -> "bool" : return _znc_core.CModules_OnUserCTCPReply(self, *args) def OnUserCTCP(self, *args) -> "bool" : return _znc_core.CModules_OnUserCTCP(self, *args) def OnUserAction(self, *args) -> "bool" : return _znc_core.CModules_OnUserAction(self, *args) def OnUserMsg(self, *args) -> "bool" : return _znc_core.CModules_OnUserMsg(self, *args) def OnUserNotice(self, *args) -> "bool" : return _znc_core.CModules_OnUserNotice(self, *args) def OnUserJoin(self, *args) -> "bool" : return _znc_core.CModules_OnUserJoin(self, *args) def OnUserPart(self, *args) -> "bool" : return _znc_core.CModules_OnUserPart(self, *args) def OnUserTopic(self, *args) -> "bool" : return _znc_core.CModules_OnUserTopic(self, *args) def OnUserTopicRequest(self, *args) -> "bool" : return _znc_core.CModules_OnUserTopicRequest(self, *args) def OnCTCPReply(self, *args) -> "bool" : return _znc_core.CModules_OnCTCPReply(self, *args) def OnPrivCTCP(self, *args) -> "bool" : return _znc_core.CModules_OnPrivCTCP(self, *args) def OnChanCTCP(self, *args) -> "bool" : return _znc_core.CModules_OnChanCTCP(self, *args) def OnPrivAction(self, *args) -> "bool" : return _znc_core.CModules_OnPrivAction(self, *args) def OnChanAction(self, *args) -> "bool" : return _znc_core.CModules_OnChanAction(self, *args) def OnPrivMsg(self, *args) -> "bool" : return _znc_core.CModules_OnPrivMsg(self, *args) def OnChanMsg(self, *args) -> "bool" : return _znc_core.CModules_OnChanMsg(self, *args) def OnPrivNotice(self, *args) -> "bool" : return _znc_core.CModules_OnPrivNotice(self, *args) def OnChanNotice(self, *args) -> "bool" : return _znc_core.CModules_OnChanNotice(self, *args) def OnTopic(self, *args) -> "bool" : return _znc_core.CModules_OnTopic(self, *args) def OnTimerAutoJoin(self, *args) -> "bool" : return _znc_core.CModules_OnTimerAutoJoin(self, *args) def OnAddNetwork(self, *args) -> "bool" : return _znc_core.CModules_OnAddNetwork(self, *args) def OnDeleteNetwork(self, *args) -> "bool" : return _znc_core.CModules_OnDeleteNetwork(self, *args) def OnServerCapAvailable(self, *args) -> "bool" : return _znc_core.CModules_OnServerCapAvailable(self, *args) def OnServerCapResult(self, *args) -> "bool" : return _znc_core.CModules_OnServerCapResult(self, *args) def FindModule(self, *args) -> "CModule *" : return _znc_core.CModules_FindModule(self, *args) def LoadModule(self, *args) -> "bool" : return _znc_core.CModules_LoadModule(self, *args) def UnloadModule(self, *args) -> "bool" : return _znc_core.CModules_UnloadModule(self, *args) def ReloadModule(self, *args) -> "bool" : return _znc_core.CModules_ReloadModule(self, *args) __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__["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, *args) -> "bool" : return _znc_core.CModules_OnAddUser(self, *args) def OnDeleteUser(self, *args) -> "bool" : return _znc_core.CModules_OnDeleteUser(self, *args) def OnClientConnect(self, *args) -> "bool" : return _znc_core.CModules_OnClientConnect(self, *args) def OnLoginAttempt(self, *args) -> "bool" : return _znc_core.CModules_OnLoginAttempt(self, *args) def OnFailedLogin(self, *args) -> "bool" : return _znc_core.CModules_OnFailedLogin(self, *args) def OnUnknownUserRaw(self, *args) -> "bool" : return _znc_core.CModules_OnUnknownUserRaw(self, *args) def OnClientCapLs(self, *args) -> "bool" : return _znc_core.CModules_OnClientCapLs(self, *args) def IsClientCapSupported(self, *args) -> "bool" : return _znc_core.CModules_IsClientCapSupported(self, *args) def OnClientCapRequest(self, *args) -> "bool" : return _znc_core.CModules_OnClientCapRequest(self, *args) def OnModuleLoading(self, *args) -> "bool" : return _znc_core.CModules_OnModuleLoading(self, *args) def OnModuleUnloading(self, *args) -> "bool" : return _znc_core.CModules_OnModuleUnloading(self, *args) def OnGetModInfo(self, *args) -> "bool" : return _znc_core.CModules_OnGetModInfo(self, *args) def OnGetAvailableMods(self, *args) -> "bool" : return _znc_core.CModules_OnGetAvailableMods(self, *args) def removeModule(self, *args) -> "bool" : return _znc_core.CModules_removeModule(self, *args) CModules_swigregister = _znc_core.CModules_swigregister CModules_swigregister(CModules) def CModules_GetModInfo(*args) -> "bool" : return _znc_core.CModules_GetModInfo(*args) CModules_GetModInfo = _znc_core.CModules_GetModInfo def CModules_GetModPathInfo(*args) -> "bool" : return _znc_core.CModules_GetModPathInfo(*args) 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_FindModPath(*args) -> "bool" : return _znc_core.CModules_FindModPath(*args) 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, *args) -> "void" : return _znc_core.CNick_Parse(self, *args) def GetHostMask(self) -> "CString" : return _znc_core.CNick_GetHostMask(self) def GetCommonChans(self, *args) -> "size_t" : return _znc_core.CNick_GetCommonChans(self, *args) def NickEquals(self, *args) -> "bool" : return _znc_core.CNick_NickEquals(self, *args) def SetNetwork(self, *args) -> "void" : return _znc_core.CNick_SetNetwork(self, *args) def SetNick(self, *args) -> "void" : return _znc_core.CNick_SetNick(self, *args) def SetIdent(self, *args) -> "void" : return _znc_core.CNick_SetIdent(self, *args) def SetHost(self, *args) -> "void" : return _znc_core.CNick_SetHost(self, *args) def AddPerm(self, *args) -> "bool" : return _znc_core.CNick_AddPerm(self, *args) def RemPerm(self, *args) -> "bool" : return _znc_core.CNick_RemPerm(self, *args) def GetPermStr(self) -> "CString" : return _znc_core.CNick_GetPermStr(self) def GetPermChar(self) -> "unsigned char" : return _znc_core.CNick_GetPermChar(self) def HasPerm(self, *args) -> "bool" : return _znc_core.CNick_HasPerm(self, *args) 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, *args) -> "void" : return _znc_core.CNick_Clone(self, *args) 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, *args): this = _znc_core.new_CChan(*args) 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, *args) -> "void" : return _znc_core.CChan_Clone(self, *args) def Cycle(self) -> "void" : return _znc_core.CChan_Cycle(self) def JoinUser(self, bForce : 'bool'=False, sKey : 'CString'="", pClient : 'CClient'=None) -> "void" : return _znc_core.CChan_JoinUser(self, bForce, sKey, pClient) def DetachUser(self) -> "void" : return _znc_core.CChan_DetachUser(self) def AttachUser(self) -> "void" : return _znc_core.CChan_AttachUser(self) def OnWho(self, *args) -> "void" : return _znc_core.CChan_OnWho(self, *args) def SetModes(self, *args) -> "void" : return _znc_core.CChan_SetModes(self, *args) def ModeChange(self, *args) -> "void" : return _znc_core.CChan_ModeChange(self, *args) def AddMode(self, *args) -> "bool" : return _znc_core.CChan_AddMode(self, *args) def RemMode(self, *args) -> "bool" : return _znc_core.CChan_RemMode(self, *args) 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, *args) -> "int" : return _znc_core.CChan_AddNicks(self, *args) def AddNick(self, *args) -> "bool" : return _znc_core.CChan_AddNick(self, *args) def RemNick(self, *args) -> "bool" : return _znc_core.CChan_RemNick(self, *args) def ChangeNick(self, *args) -> "bool" : return _znc_core.CChan_ChangeNick(self, *args) 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, *args) -> "bool" : return _znc_core.CChan_SetBufferCount(self, *args) 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, *args) -> "bool" : return _znc_core.CChan_HasPerm(self, *args) def AddPerm(self, *args) -> "bool" : return _znc_core.CChan_AddPerm(self, *args) def RemPerm(self, *args) -> "bool" : return _znc_core.CChan_RemPerm(self, *args) def SetModeKnown(self, *args) -> "void" : return _znc_core.CChan_SetModeKnown(self, *args) def SetIsOn(self, *args) -> "void" : return _znc_core.CChan_SetIsOn(self, *args) def SetKey(self, *args) -> "void" : return _znc_core.CChan_SetKey(self, *args) def SetTopic(self, *args) -> "void" : return _znc_core.CChan_SetTopic(self, *args) def SetTopicOwner(self, *args) -> "void" : return _znc_core.CChan_SetTopicOwner(self, *args) def SetTopicDate(self, *args) -> "void" : return _znc_core.CChan_SetTopicDate(self, *args) def SetDefaultModes(self, *args) -> "void" : return _znc_core.CChan_SetDefaultModes(self, *args) def SetAutoClearChanBuffer(self, *args) -> "void" : return _znc_core.CChan_SetAutoClearChanBuffer(self, *args) def SetDetached(self, b : 'bool'=True) -> "void" : return _znc_core.CChan_SetDetached(self, b) def SetInConfig(self, *args) -> "void" : return _znc_core.CChan_SetInConfig(self, *args) def SetCreationDate(self, *args) -> "void" : return _znc_core.CChan_SetCreationDate(self, *args) 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, *args) -> "bool" : return _znc_core.CChan_HasMode(self, *args) 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 __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, *args): this = _znc_core.new_CUser(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CUser __del__ = lambda self : None; def ParseConfig(self, *args) -> "bool" : return _znc_core.CUser_ParseConfig(self, *args) 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, *args) -> "bool" : return _znc_core.CUser_CheckPass(self, *args) def AddAllowedHost(self, *args) -> "bool" : return _znc_core.CUser_AddAllowedHost(self, *args) def IsHostAllowed(self, *args) -> "bool" : return _znc_core.CUser_IsHostAllowed(self, *args) def IsValid(self, *args) -> "bool" : return _znc_core.CUser_IsValid(self, *args) __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, *args) -> "bool" : return _znc_core.CUser_DeleteNetwork(self, *args) def AddNetwork(self, *args) -> "bool" : return _znc_core.CUser_AddNetwork(self, *args) def RemoveNetwork(self, *args) -> "void" : return _znc_core.CUser_RemoveNetwork(self, *args) def FindNetwork(self, *args) -> "CIRCNetwork *" : return _znc_core.CUser_FindNetwork(self, *args) 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, *args) -> "bool" : return _znc_core.CUser_PutUser(self, *args) def PutAllUser(self, *args) -> "bool" : return _znc_core.CUser_PutAllUser(self, *args) def PutStatus(self, *args) -> "bool" : return _znc_core.CUser_PutStatus(self, *args) def PutStatusNotice(self, *args) -> "bool" : return _znc_core.CUser_PutStatusNotice(self, *args) def PutModule(self, *args) -> "bool" : return _znc_core.CUser_PutModule(self, *args) def PutModNotice(self, *args) -> "bool" : return _znc_core.CUser_PutModNotice(self, *args) def IsUserAttached(self) -> "bool" : return _znc_core.CUser_IsUserAttached(self) def UserConnected(self, *args) -> "void" : return _znc_core.CUser_UserConnected(self, *args) def UserDisconnected(self, *args) -> "void" : return _znc_core.CUser_UserDisconnected(self, *args) 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, *args) -> "void" : return _znc_core.CUser_CloneNetworks(self, *args) def Clone(self, *args) -> "bool" : return _znc_core.CUser_Clone(self, *args) def BounceAllClients(self) -> "void" : return _znc_core.CUser_BounceAllClients(self) def AddBytesRead(self, *args) -> "void" : return _znc_core.CUser_AddBytesRead(self, *args) def AddBytesWritten(self, *args) -> "void" : return _znc_core.CUser_AddBytesWritten(self, *args) def SetNick(self, *args) -> "void" : return _znc_core.CUser_SetNick(self, *args) def SetAltNick(self, *args) -> "void" : return _znc_core.CUser_SetAltNick(self, *args) def SetIdent(self, *args) -> "void" : return _znc_core.CUser_SetIdent(self, *args) def SetRealName(self, *args) -> "void" : return _znc_core.CUser_SetRealName(self, *args) def SetBindHost(self, *args) -> "void" : return _znc_core.CUser_SetBindHost(self, *args) def SetDCCBindHost(self, *args) -> "void" : return _znc_core.CUser_SetDCCBindHost(self, *args) def SetPass(self, *args) -> "void" : return _znc_core.CUser_SetPass(self, *args) def SetMultiClients(self, *args) -> "void" : return _znc_core.CUser_SetMultiClients(self, *args) def SetDenyLoadMod(self, *args) -> "void" : return _znc_core.CUser_SetDenyLoadMod(self, *args) def SetAdmin(self, *args) -> "void" : return _znc_core.CUser_SetAdmin(self, *args) def SetDenySetBindHost(self, *args) -> "void" : return _znc_core.CUser_SetDenySetBindHost(self, *args) def SetStatusPrefix(self, *args) -> "bool" : return _znc_core.CUser_SetStatusPrefix(self, *args) def SetDefaultChanModes(self, *args) -> "void" : return _znc_core.CUser_SetDefaultChanModes(self, *args) def SetQuitMsg(self, *args) -> "void" : return _znc_core.CUser_SetQuitMsg(self, *args) def AddCTCPReply(self, *args) -> "bool" : return _znc_core.CUser_AddCTCPReply(self, *args) def DelCTCPReply(self, *args) -> "bool" : return _znc_core.CUser_DelCTCPReply(self, *args) def SetBufferCount(self, *args) -> "bool" : return _znc_core.CUser_SetBufferCount(self, *args) def SetAutoClearChanBuffer(self, *args) -> "void" : return _znc_core.CUser_SetAutoClearChanBuffer(self, *args) def SetBeingDeleted(self, *args) -> "void" : return _znc_core.CUser_SetBeingDeleted(self, *args) def SetTimestampFormat(self, *args) -> "void" : return _znc_core.CUser_SetTimestampFormat(self, *args) def SetTimestampAppend(self, *args) -> "void" : return _znc_core.CUser_SetTimestampAppend(self, *args) def SetTimestampPrepend(self, *args) -> "void" : return _znc_core.CUser_SetTimestampPrepend(self, *args) def SetTimezone(self, *args) -> "void" : return _znc_core.CUser_SetTimezone(self, *args) def SetJoinTries(self, *args) -> "void" : return _znc_core.CUser_SetJoinTries(self, *args) def SetMaxJoins(self, *args) -> "void" : return _znc_core.CUser_SetMaxJoins(self, *args) def SetSkinName(self, *args) -> "void" : return _znc_core.CUser_SetSkinName(self, *args) def SetMaxNetworks(self, *args) -> "void" : return _znc_core.CUser_SetMaxNetworks(self, *args) def GetUserClients(self) -> "std::vector< CClient *,std::allocator< CClient * > > &" : 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 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 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 __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(*args) -> "CString" : return _znc_core.CUser_SaltedHash(*args) CUser_SaltedHash = _znc_core.CUser_SaltedHash def CUser_IsValidUserName(*args) -> "bool" : return _znc_core.CUser_IsValidUserName(*args) CUser_IsValidUserName = _znc_core.CUser_IsValidUserName def CUser_MakeCleanUserName(*args) -> "CString" : return _znc_core.CUser_MakeCleanUserName(*args) 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; def Clone(self, *args) -> "void" : return _znc_core.CIRCNetwork_Clone(self, *args) def GetNetworkPath(self) -> "CString" : return _znc_core.CIRCNetwork_GetNetworkPath(self) def DelServers(self) -> "void" : return _znc_core.CIRCNetwork_DelServers(self) def ParseConfig(self, *args) -> "bool" : return _znc_core.CIRCNetwork_ParseConfig(self, *args) 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, *args) -> "void" : return _znc_core.CIRCNetwork_ClientConnected(self, *args) def ClientDisconnected(self, *args) -> "void" : return _znc_core.CIRCNetwork_ClientDisconnected(self, *args) 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 * > > &" : return _znc_core.CIRCNetwork_GetClients(self) def SetUser(self, *args) -> "void" : return _znc_core.CIRCNetwork_SetUser(self, *args) def SetName(self, *args) -> "bool" : return _znc_core.CIRCNetwork_SetName(self, *args) def GetModules(self, *args) -> "CModules const &" : return _znc_core.CIRCNetwork_GetModules(self, *args) def PutUser(self, *args) -> "bool" : return _znc_core.CIRCNetwork_PutUser(self, *args) def PutStatus(self, *args) -> "bool" : return _znc_core.CIRCNetwork_PutStatus(self, *args) def PutModule(self, *args) -> "bool" : return _znc_core.CIRCNetwork_PutModule(self, *args) def GetChans(self) -> "std::vector< CChan *,std::allocator< CChan * > > const &" : return _znc_core.CIRCNetwork_GetChans(self) def FindChan(self, *args) -> "CChan *" : return _znc_core.CIRCNetwork_FindChan(self, *args) def AddChan(self, *args) -> "bool" : return _znc_core.CIRCNetwork_AddChan(self, *args) def DelChan(self, *args) -> "bool" : return _znc_core.CIRCNetwork_DelChan(self, *args) def JoinChans(self, *args) -> "void" : return _znc_core.CIRCNetwork_JoinChans(self, *args) def GetChanPrefixes(self) -> "CString const &" : return _znc_core.CIRCNetwork_GetChanPrefixes(self) def SetChanPrefixes(self, *args) -> "void" : return _znc_core.CIRCNetwork_SetChanPrefixes(self, *args) def IsChan(self, *args) -> "bool" : return _znc_core.CIRCNetwork_IsChan(self, *args) 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, *args) -> "CServer *" : return _znc_core.CIRCNetwork_FindServer(self, *args) def DelServer(self, *args) -> "bool" : return _znc_core.CIRCNetwork_DelServer(self, *args) 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, *args) -> "void" : return _znc_core.CIRCNetwork_SetIRCServer(self, *args) def SetNextServer(self, *args) -> "bool" : return _znc_core.CIRCNetwork_SetNextServer(self, *args) def IsLastServer(self) -> "bool" : return _znc_core.CIRCNetwork_IsLastServer(self) def SetIRCConnectEnabled(self, *args) -> "void" : return _znc_core.CIRCNetwork_SetIRCConnectEnabled(self, *args) 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, *args) -> "void" : return _znc_core.CIRCNetwork_SetIRCNick(self, *args) def GetCurNick(self) -> "CString" : return _znc_core.CIRCNetwork_GetCurNick(self) def IsIRCAway(self) -> "bool" : return _znc_core.CIRCNetwork_IsIRCAway(self) def SetIRCAway(self, *args) -> "void" : return _znc_core.CIRCNetwork_SetIRCAway(self, *args) def Connect(self) -> "bool" : return _znc_core.CIRCNetwork_Connect(self) def IsIRCConnected(self) -> "bool" : return _znc_core.CIRCNetwork_IsIRCConnected(self) def SetIRCSocket(self, *args) -> "void" : return _znc_core.CIRCNetwork_SetIRCSocket(self, *args) def IRCDisconnected(self) -> "void" : return _znc_core.CIRCNetwork_IRCDisconnected(self) def CheckIRCConnect(self) -> "void" : return _znc_core.CIRCNetwork_CheckIRCConnect(self) def PutIRC(self, *args) -> "bool" : return _znc_core.CIRCNetwork_PutIRC(self, *args) 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 AddQueryBuffer(self, *args) -> "void" : return _znc_core.CIRCNetwork_AddQueryBuffer(self, *args) def UpdateQueryBuffer(self, *args) -> "void" : return _znc_core.CIRCNetwork_UpdateQueryBuffer(self, *args) def ClearQueryBuffer(self) -> "void" : return _znc_core.CIRCNetwork_ClearQueryBuffer(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 SetNick(self, *args) -> "void" : return _znc_core.CIRCNetwork_SetNick(self, *args) def SetAltNick(self, *args) -> "void" : return _znc_core.CIRCNetwork_SetAltNick(self, *args) def SetIdent(self, *args) -> "void" : return _znc_core.CIRCNetwork_SetIdent(self, *args) def SetRealName(self, *args) -> "void" : return _znc_core.CIRCNetwork_SetRealName(self, *args) def SetBindHost(self, *args) -> "void" : return _znc_core.CIRCNetwork_SetBindHost(self, *args) def GetFloodRate(self) -> "double" : return _znc_core.CIRCNetwork_GetFloodRate(self) def GetFloodBurst(self) -> "unsigned short" : return _znc_core.CIRCNetwork_GetFloodBurst(self) def SetFloodRate(self, *args) -> "void" : return _znc_core.CIRCNetwork_SetFloodRate(self, *args) def SetFloodBurst(self, *args) -> "void" : return _znc_core.CIRCNetwork_SetFloodBurst(self, *args) 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(*args) -> "bool" : return _znc_core.CIRCNetwork_IsValidNetwork(*args) 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, *args) -> "void" : return _znc_core.CAuthBase_SetLoginInfo(self, *args) def AcceptLogin(self, *args) -> "void" : return _znc_core.CAuthBase_AcceptLogin(self, *args) def RefuseLogin(self, *args) -> "void" : return _znc_core.CAuthBase_RefuseLogin(self, *args) 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, *args): this = _znc_core.new_CClientAuth(*args) 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, *args) -> "void" : return _znc_core.CClientAuth_AcceptedLogin(self, *args) def RefusedLogin(self, *args) -> "void" : return _znc_core.CClientAuth_RefusedLogin(self, *args) CClientAuth_swigregister = _znc_core.CClientAuth_swigregister CClientAuth_swigregister(CClientAuth) class CClient(CZNCSock): __swig_setmethods__ = {} for _s in [CZNCSock]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, CClient, name, value) __swig_getmethods__ = {} for _s in [CZNCSock]: __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, *args) -> "void" : return _znc_core.CClient_AcceptLogin(self, *args) def RefuseLogin(self, *args) -> "void" : return _znc_core.CClient_RefuseLogin(self, *args) 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 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 UserCommand(self, *args) -> "void" : return _znc_core.CClient_UserCommand(self, *args) def UserPortCommand(self, *args) -> "void" : return _znc_core.CClient_UserPortCommand(self, *args) def StatusCTCP(self, *args) -> "void" : return _znc_core.CClient_StatusCTCP(self, *args) def BouncedOff(self) -> "void" : return _znc_core.CClient_BouncedOff(self) def IsAttached(self) -> "bool" : return _znc_core.CClient_IsAttached(self) def PutIRC(self, *args) -> "void" : return _znc_core.CClient_PutIRC(self, *args) def PutClient(self, *args) -> "void" : return _znc_core.CClient_PutClient(self, *args) def PutStatus(self, *args) -> "void" : return _znc_core.CClient_PutStatus(self, *args) def PutStatusNotice(self, *args) -> "void" : return _znc_core.CClient_PutStatusNotice(self, *args) def PutModule(self, *args) -> "void" : return _znc_core.CClient_PutModule(self, *args) def PutModNotice(self, *args) -> "void" : return _znc_core.CClient_PutModNotice(self, *args) def IsCapEnabled(self, *args) -> "bool" : return _znc_core.CClient_IsCapEnabled(self, *args) def ReadLine(self, *args) -> "void" : return _znc_core.CClient_ReadLine(self, *args) def SendMotd(self) -> "bool" : return _znc_core.CClient_SendMotd(self) def HelpUser(self) -> "void" : return _znc_core.CClient_HelpUser(self) 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, *args) -> "void" : return _znc_core.CClient_SetNick(self, *args) def SetAway(self, *args) -> "void" : return _znc_core.CClient_SetAway(self, *args) def GetUser(self) -> "CUser *" : return _znc_core.CClient_GetUser(self) def SetNetwork(self, *args) -> "void" : return _znc_core.CClient_SetNetwork(self, *args) def GetNetwork(self) -> "CIRCNetwork *" : return _znc_core.CClient_GetNetwork(self) def GetClients(self) -> "std::vector< CClient *,std::allocator< CClient * > > &" : 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) class CIRCSock(CZNCSock): __swig_setmethods__ = {} for _s in [CZNCSock]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, CIRCSock, name, value) __swig_getmethods__ = {} for _s in [CZNCSock]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, CIRCSock, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_CIRCSock(*args) 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, *args) -> "bool" : return _znc_core.CIRCSock_OnCTCPReply(self, *args) def OnPrivCTCP(self, *args) -> "bool" : return _znc_core.CIRCSock_OnPrivCTCP(self, *args) def OnChanCTCP(self, *args) -> "bool" : return _znc_core.CIRCSock_OnChanCTCP(self, *args) def OnGeneralCTCP(self, *args) -> "bool" : return _znc_core.CIRCSock_OnGeneralCTCP(self, *args) def OnPrivMsg(self, *args) -> "bool" : return _znc_core.CIRCSock_OnPrivMsg(self, *args) def OnChanMsg(self, *args) -> "bool" : return _znc_core.CIRCSock_OnChanMsg(self, *args) def OnPrivNotice(self, *args) -> "bool" : return _znc_core.CIRCSock_OnPrivNotice(self, *args) def OnChanNotice(self, *args) -> "bool" : return _znc_core.CIRCSock_OnChanNotice(self, *args) def OnServerCapAvailable(self, *args) -> "bool" : return _znc_core.CIRCSock_OnServerCapAvailable(self, *args) def ReadLine(self, *args) -> "void" : return _znc_core.CIRCSock_ReadLine(self, *args) 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, *args) -> "void" : return _znc_core.CIRCSock_SockError(self, *args) def Timeout(self) -> "void" : return _znc_core.CIRCSock_Timeout(self) def ReachedMaxBuffer(self) -> "void" : return _znc_core.CIRCSock_ReachedMaxBuffer(self) def PutIRC(self, *args) -> "void" : return _znc_core.CIRCSock_PutIRC(self, *args) def PutIRCQuick(self, *args) -> "void" : return _znc_core.CIRCSock_PutIRCQuick(self, *args) def ResetChans(self) -> "void" : return _znc_core.CIRCSock_ResetChans(self) def Quit(self, sQuitMsg : 'CString'="") -> "void" : return _znc_core.CIRCSock_Quit(self, sQuitMsg) def PauseCap(self) -> "void" : return _znc_core.CIRCSock_PauseCap(self) def ResumeCap(self) -> "void" : return _znc_core.CIRCSock_ResumeCap(self) def SetPass(self, *args) -> "void" : return _znc_core.CIRCSock_SetPass(self, *args) def GetMaxNickLen(self) -> "unsigned int" : return _znc_core.CIRCSock_GetMaxNickLen(self) def GetModeType(self, *args) -> "CIRCSock::EChanModeArgs" : return _znc_core.CIRCSock_GetModeType(self, *args) def GetPermFromMode(self, *args) -> "unsigned char" : return _znc_core.CIRCSock_GetPermFromMode(self, *args) 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, *args) -> "bool" : return _znc_core.CIRCSock_IsPermChar(self, *args) def IsPermMode(self, *args) -> "bool" : return _znc_core.CIRCSock_IsPermMode(self, *args) 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, *args) -> "bool" : return _znc_core.CIRCSock_IsCapAccepted(self, *args) 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(*args) -> "bool" : return _znc_core.CIRCSock_IsFloodProtected(*args) 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, *args): this = _znc_core.new_CListener(*args) 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 GetAcceptType(self) -> "CListener::EAcceptType" : return _znc_core.CListener_GetAcceptType(self) def SetAcceptType(self, *args) -> "void" : return _znc_core.CListener_SetAcceptType(self, *args) 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, *args): this = _znc_core.new_CRealListener(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CRealListener __del__ = lambda self : None; def ConnectionFrom(self, *args) -> "bool" : return _znc_core.CRealListener_ConnectionFrom(self, *args) def GetSockObj(self, *args) -> "Csock *" : return _znc_core.CRealListener_GetSockObj(self, *args) def SockError(self, *args) -> "void" : return _znc_core.CRealListener_SockError(self, *args) 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, *args): this = _znc_core.new_CIncomingConnection(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CIncomingConnection __del__ = lambda self : None; def ReadLine(self, *args) -> "void" : return _znc_core.CIncomingConnection_ReadLine(self, *args) 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, *args) -> "void" : return _znc_core.CHTTPSock_ReadData(self, *args) def ReadLine(self, *args) -> "void" : return _znc_core.CHTTPSock_ReadLine(self, *args) def Connected(self) -> "void" : return _znc_core.CHTTPSock_Connected(self) def GetSockObj(self, *args) -> "Csock *" : return _znc_core.CHTTPSock_GetSockObj(self, *args) def ForceLogin(self) -> "bool" : return _znc_core.CHTTPSock_ForceLogin(self) def OnLogin(self, *args) -> "bool" : return _znc_core.CHTTPSock_OnLogin(self, *args) def OnPageRequest(self, *args) -> "void" : return _znc_core.CHTTPSock_OnPageRequest(self, *args) 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, *args) -> "void" : return _znc_core.CHTTPSock_AddHeader(self, *args) def SetContentType(self, *args) -> "void" : return _znc_core.CHTTPSock_SetContentType(self, *args) def PrintNotFound(self) -> "bool" : return _znc_core.CHTTPSock_PrintNotFound(self) def Redirect(self, *args) -> "bool" : return _znc_core.CHTTPSock_Redirect(self, *args) def PrintErrorPage(self, *args) -> "bool" : return _znc_core.CHTTPSock_PrintErrorPage(self, *args) __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 GetRequestCookie(self, *args) -> "CString" : return _znc_core.CHTTPSock_GetRequestCookie(self, *args) def SendCookie(self, *args) -> "bool" : return _znc_core.CHTTPSock_SendCookie(self, *args) def SetDocRoot(self, *args) -> "void" : return _znc_core.CHTTPSock_SetDocRoot(self, *args) def SetLoggedIn(self, *args) -> "void" : return _znc_core.CHTTPSock_SetLoggedIn(self, *args) 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 IsPost(self) -> "bool" : return _znc_core.CHTTPSock_IsPost(self) def GetParam(self, *args) -> "CString" : return _znc_core.CHTTPSock_GetParam(self, *args) def GetRawParam(self, *args) -> "CString" : return _znc_core.CHTTPSock_GetRawParam(self, *args) def HasParam(self, *args) -> "bool" : return _znc_core.CHTTPSock_HasParam(self, *args) 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(*args) -> "void" : return _znc_core.CHTTPSock_ParseParams(*args) 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, *args) -> "bool" : return _znc_core.CTemplateTagHandler_HandleVar(self, *args) def HandleTag(self, *args) -> "bool" : return _znc_core.CTemplateTagHandler_HandleTag(self, *args) def HandleIf(self, *args) -> "bool" : return _znc_core.CTemplateTagHandler_HandleIf(self, *args) def HandleValue(self, *args) -> "bool" : return _znc_core.CTemplateTagHandler_HandleValue(self, *args) 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, *args) -> "void" : return _znc_core.CTemplateOptions_Parse(self, *args) 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, *args): this = _znc_core.new_CTemplateLoopContext(*args) 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, *args) -> "void" : return _znc_core.CTemplateLoopContext_SetName(self, *args) def SetRowIndex(self, *args) -> "void" : return _znc_core.CTemplateLoopContext_SetRowIndex(self, *args) 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, *args) -> "void" : return _znc_core.CTemplateLoopContext_SetFilePosition(self, *args) 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, *args) -> "CTemplate *" : return _znc_core.CTemplateLoopContext_GetRow(self, *args) def GetValue(self, *args) -> "CString" : return _znc_core.CTemplateLoopContext_GetValue(self, *args) 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, *args) -> "void" : return _znc_core.CTemplate_AddTagHandler(self, *args) def GetTagHandlers(self) -> "std::vector< CSmartPtr< CTemplateTagHandler >,std::allocator< CSmartPtr< CTemplateTagHandler > > > &" : return _znc_core.CTemplate_GetTagHandlers(self) def ResolveLiteral(self, *args) -> "CString" : return _znc_core.CTemplate_ResolveLiteral(self, *args) def Init(self) -> "void" : return _znc_core.CTemplate_Init(self) def GetParent(self, *args) -> "CTemplate *" : return _znc_core.CTemplate_GetParent(self, *args) def ExpandFile(self, *args) -> "CString" : return _znc_core.CTemplate_ExpandFile(self, *args) def SetFile(self, *args) -> "bool" : return _znc_core.CTemplate_SetFile(self, *args) def SetPath(self, *args) -> "void" : return _znc_core.CTemplate_SetPath(self, *args) def MakePath(self, *args) -> "CString" : return _znc_core.CTemplate_MakePath(self, *args) def PrependPath(self, *args) -> "void" : return _znc_core.CTemplate_PrependPath(self, *args) def AppendPath(self, *args) -> "void" : return _znc_core.CTemplate_AppendPath(self, *args) def RemovePath(self, *args) -> "void" : return _znc_core.CTemplate_RemovePath(self, *args) def ClearPaths(self) -> "void" : return _znc_core.CTemplate_ClearPaths(self) def PrintString(self, *args) -> "bool" : return _znc_core.CTemplate_PrintString(self, *args) def Print(self, *args) -> "bool" : return _znc_core.CTemplate_Print(self, *args) def ValidIf(self, *args) -> "bool" : return _znc_core.CTemplate_ValidIf(self, *args) def ValidExpr(self, *args) -> "bool" : return _znc_core.CTemplate_ValidExpr(self, *args) def IsTrue(self, *args) -> "bool" : return _znc_core.CTemplate_IsTrue(self, *args) def HasLoop(self, *args) -> "bool" : return _znc_core.CTemplate_HasLoop(self, *args) def GetValue(self, *args) -> "CString" : return _znc_core.CTemplate_GetValue(self, *args) def AddRow(self, *args) -> "CTemplate &" : return _znc_core.CTemplate_AddRow(self, *args) def GetRow(self, *args) -> "CTemplate *" : return _znc_core.CTemplate_GetRow(self, *args) def GetLoop(self, *args) -> "std::vector< CTemplate *,std::allocator< CTemplate * > > *" : return _znc_core.CTemplate_GetLoop(self, *args) 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, *args) -> "void" : return _znc_core.CTemplate_set(self, *args) 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, *args): this = _znc_core.new_CZNCTagHandler(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CZNCTagHandler __del__ = lambda self : None; def HandleTag(self, *args) -> "bool" : return _znc_core.CZNCTagHandler_HandleTag(self, *args) 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, *args): this = _znc_core.new_CWebSession(*args) 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 IsLoggedIn(self) -> "bool" : return _znc_core.CWebSession_IsLoggedIn(self) def IsAdmin(self) -> "bool" : return _znc_core.CWebSession_IsAdmin(self) def SetUser(self, *args) -> "CUser *" : return _znc_core.CWebSession_SetUser(self, *args) def ClearMessageLoops(self) -> "void" : return _znc_core.CWebSession_ClearMessageLoops(self) def FillMessageLoops(self, *args) -> "void" : return _znc_core.CWebSession_FillMessageLoops(self, *args) def AddError(self, *args) -> "size_t" : return _znc_core.CWebSession_AddError(self, *args) def AddSuccess(self, *args) -> "size_t" : return _znc_core.CWebSession_AddSuccess(self, *args) 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, *args) -> "void" : return _znc_core.CWebSubPage_SetName(self, *args) def SetTitle(self, *args) -> "void" : return _znc_core.CWebSubPage_SetTitle(self, *args) def AddParam(self, *args) -> "void" : return _znc_core.CWebSubPage_AddParam(self, *args) 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, *args) -> "void" : return _znc_core.CWebSessionMap_FinishUserSessions(self, *args) __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): this = _znc_core.new_CWebSock() 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, *args) -> "bool" : return _znc_core.CWebSock_OnLogin(self, *args) def OnPageRequest(self, *args) -> "void" : return _znc_core.CWebSock_OnPageRequest(self, *args) def PrintTemplate(self, *args) -> "CWebSock::EPageReqResult" : return _znc_core.CWebSock_PrintTemplate(self, *args) def PrintStaticFile(self, *args) -> "CWebSock::EPageReqResult" : return _znc_core.CWebSock_PrintStaticFile(self, *args) def FindTmpl(self, *args) -> "CString" : return _znc_core.CWebSock_FindTmpl(self, *args) def GetSession(self) -> "CSmartPtr< CWebSession >" : return _znc_core.CWebSock_GetSession(self) def GetSockObj(self, *args) -> "Csock *" : return _znc_core.CWebSock_GetSockObj(self, *args) __swig_getmethods__["GetSkinPath"] = lambda x: _znc_core.CWebSock_GetSkinPath if _newclass:GetSkinPath = staticmethod(_znc_core.CWebSock_GetSkinPath) def GetModule(self) -> "CModule *" : return _znc_core.CWebSock_GetModule(self) def GetAvailSkins(self, *args) -> "void" : return _znc_core.CWebSock_GetAvailSkins(self, *args) def GetSkinName(self) -> "CString" : return _znc_core.CWebSock_GetSkinName(self) def GetRequestCookie(self, *args) -> "CString" : return _znc_core.CWebSock_GetRequestCookie(self, *args) def SendCookie(self, *args) -> "bool" : return _znc_core.CWebSock_SendCookie(self, *args) __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(*args) -> "CString" : return _znc_core.CWebSock_GetSkinPath(*args) CWebSock_GetSkinPath = _znc_core.CWebSock_GetSkinPath def CWebSock_FinishUserSessions(*args) -> "void" : return _znc_core.CWebSock_FinishUserSessions(*args) 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 def DeleteUsers(self) -> "void" : return _znc_core.CZNC_DeleteUsers(self) def Loop(self) -> "void" : return _znc_core.CZNC_Loop(self) def WritePidFile(self, *args) -> "bool" : return _znc_core.CZNC_WritePidFile(self, *args) def DeletePidFile(self) -> "bool" : return _znc_core.CZNC_DeletePidFile(self) def WaitForChildLock(self) -> "bool" : return _znc_core.CZNC_WaitForChildLock(self) def IsHostAllowed(self, *args) -> "bool" : return _znc_core.CZNC_IsHostAllowed(self, *args) def AllowConnectionFrom(self, *args) -> "bool" : return _znc_core.CZNC_AllowConnectionFrom(self, *args) def InitDirs(self, *args) -> "void" : return _znc_core.CZNC_InitDirs(self, *args) def OnBoot(self) -> "bool" : return _znc_core.CZNC_OnBoot(self) def ExpandConfigPath(self, *args) -> "CString" : return _znc_core.CZNC_ExpandConfigPath(self, *args) def WriteNewConfig(self, *args) -> "bool" : return _znc_core.CZNC_WriteNewConfig(self, *args) def WriteConfig(self) -> "bool" : return _znc_core.CZNC_WriteConfig(self) def ParseConfig(self, *args) -> "bool" : return _znc_core.CZNC_ParseConfig(self, *args) def RehashConfig(self, *args) -> "bool" : return _znc_core.CZNC_RehashConfig(self, *args) def BackupConfigOnce(self, *args) -> "void" : return _znc_core.CZNC_BackupConfigOnce(self, *args) __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, *args) -> "bool" : return _znc_core.CZNC_AddBindHost(self, *args) def RemBindHost(self, *args) -> "bool" : return _znc_core.CZNC_RemBindHost(self, *args) def Broadcast(self, *args) -> "void" : return _znc_core.CZNC_Broadcast(self, *args) def AddBytesRead(self, *args) -> "void" : return _znc_core.CZNC_AddBytesRead(self, *args) def AddBytesWritten(self, *args) -> "void" : return _znc_core.CZNC_AddBytesWritten(self, *args) 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, *args) -> "CZNC::TrafficStatsMap" : return _znc_core.CZNC_GetTrafficStats(self, *args) def AuthUser(self, *args) -> "void" : return _znc_core.CZNC_AuthUser(self, *args) def SetConfigState(self, *args) -> "void" : return _znc_core.CZNC_SetConfigState(self, *args) def SetSkinName(self, *args) -> "void" : return _znc_core.CZNC_SetSkinName(self, *args) def SetStatusPrefix(self, *args) -> "void" : return _znc_core.CZNC_SetStatusPrefix(self, *args) def SetMaxBufferSize(self, *args) -> "void" : return _znc_core.CZNC_SetMaxBufferSize(self, *args) def SetAnonIPLimit(self, *args) -> "void" : return _znc_core.CZNC_SetAnonIPLimit(self, *args) def SetServerThrottle(self, *args) -> "void" : return _znc_core.CZNC_SetServerThrottle(self, *args) def SetProtectWebSessions(self, *args) -> "void" : return _znc_core.CZNC_SetProtectWebSessions(self, *args) def SetConnectDelay(self, *args) -> "void" : return _znc_core.CZNC_SetConnectDelay(self, *args) 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 FilterUncommonModules(self, *args) -> "size_t" : return _znc_core.CZNC_FilterUncommonModules(self, *args) 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 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) __swig_getmethods__["Get"] = lambda x: _znc_core.CZNC_Get if _newclass:Get = staticmethod(_znc_core.CZNC_Get) def FindUser(self, *args) -> "CUser *" : return _znc_core.CZNC_FindUser(self, *args) def FindModule(self, *args) -> "CModule *" : return _znc_core.CZNC_FindModule(self, *args) def UpdateModule(self, *args) -> "bool" : return _znc_core.CZNC_UpdateModule(self, *args) def DeleteUser(self, *args) -> "bool" : return _znc_core.CZNC_DeleteUser(self, *args) def AddUser(self, *args) -> "bool" : return _znc_core.CZNC_AddUser(self, *args) 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, *args) -> "CListener *" : return _znc_core.CZNC_FindListener(self, *args) def AddListener(self, *args) -> "bool" : return _znc_core.CZNC_AddListener(self, *args) def DelListener(self, *args) -> "bool" : return _znc_core.CZNC_DelListener(self, *args) def SetMotd(self, *args) -> "void" : return _znc_core.CZNC_SetMotd(self, *args) def AddMotd(self, *args) -> "void" : return _znc_core.CZNC_AddMotd(self, *args) def ClearMotd(self) -> "void" : return _znc_core.CZNC_ClearMotd(self) def GetMotd(self) -> "VCString const &" : return _znc_core.CZNC_GetMotd(self) def AddServerThrottle(self, *args) -> "void" : return _znc_core.CZNC_AddServerThrottle(self, *args) def GetServerThrottle(self, *args) -> "bool" : return _znc_core.CZNC_GetServerThrottle(self, *args) def AddNetworkToQueue(self, *args) -> "void" : return _znc_core.CZNC_AddNetworkToQueue(self, *args) 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, *args) -> "void" : return _znc_core.CZNC_LeakConnectQueueTimer(self, *args) __swig_getmethods__["DumpConfig"] = lambda x: _znc_core.CZNC_DumpConfig if _newclass:DumpConfig = staticmethod(_znc_core.CZNC_DumpConfig) 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_Get() -> "CZNC &" : return _znc_core.CZNC_Get() CZNC_Get = _znc_core.CZNC_Get def CZNC_DumpConfig(*args) -> "void" : return _znc_core.CZNC_DumpConfig(*args) 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(*args) -> "bool" : return _znc_core.CServer_IsValidHostName(*args) 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(*args) -> "void" : return _znc_core.CDebug_SetStdoutIsTTY(*args) CDebug_SetStdoutIsTTY = _znc_core.CDebug_SetStdoutIsTTY def CDebug_StdoutIsTTY() -> "bool" : return _znc_core.CDebug_StdoutIsTTY() CDebug_StdoutIsTTY = _znc_core.CDebug_StdoutIsTTY def CDebug_SetDebug(*args) -> "void" : return _znc_core.CDebug_SetDebug(*args) 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, *args) -> "int" : return _znc_core.CExecSock_Execute(self, *args) def Kill(self, *args) -> "void" : return _znc_core.CExecSock_Kill(self, *args) __swig_destroy__ = _znc_core.delete_CExecSock __del__ = lambda self : None; def popen2(self, *args) -> "int" : return _znc_core.CExecSock_popen2(self, *args) def close2(self, *args) -> "void" : return _znc_core.CExecSock_close2(self, *args) 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, *args) -> "CString" : return _znc_core.CBufLine_GetLine(self, *args) def UpdateTime(self) -> "void" : return _znc_core.CBufLine_UpdateTime(self) def SetFormat(self, *args) -> "void" : return _znc_core.CBufLine_SetFormat(self, *args) def SetText(self, *args) -> "void" : return _znc_core.CBufLine_SetText(self, *args) def SetTime(self, *args) -> "void" : return _znc_core.CBufLine_SetTime(self, *args) 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, *args) -> "CBufLine const &" : return _znc_core.CBuffer_GetBufLine(self, *args) 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, *args) -> "bool" : return _znc_core.CBuffer_SetLineCount(self, *args) 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, *args): this = _znc_core.new_CPyModule(*args) 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, *args) -> "bool" : return _znc_core.CPyModule_OnWebPreRequest(self, *args) def OnWebRequest(self, *args) -> "bool" : return _znc_core.CPyModule_OnWebRequest(self, *args) 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, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnIRCConnecting(self, *args) def OnIRCConnectionError(self, *args) -> "void" : return _znc_core.CPyModule_OnIRCConnectionError(self, *args) def OnIRCRegistration(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnIRCRegistration(self, *args) def OnBroadcast(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnBroadcast(self, *args) def OnChanPermission(self, *args) -> "void" : return _znc_core.CPyModule_OnChanPermission(self, *args) def OnOp(self, *args) -> "void" : return _znc_core.CPyModule_OnOp(self, *args) def OnDeop(self, *args) -> "void" : return _znc_core.CPyModule_OnDeop(self, *args) def OnVoice(self, *args) -> "void" : return _znc_core.CPyModule_OnVoice(self, *args) def OnDevoice(self, *args) -> "void" : return _znc_core.CPyModule_OnDevoice(self, *args) def OnMode(self, *args) -> "void" : return _znc_core.CPyModule_OnMode(self, *args) def OnRawMode(self, *args) -> "void" : return _znc_core.CPyModule_OnRawMode(self, *args) def OnRaw(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnRaw(self, *args) def OnStatusCommand(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnStatusCommand(self, *args) def OnModCommand(self, *args) -> "void" : return _znc_core.CPyModule_OnModCommand(self, *args) def OnModNotice(self, *args) -> "void" : return _znc_core.CPyModule_OnModNotice(self, *args) def OnModCTCP(self, *args) -> "void" : return _znc_core.CPyModule_OnModCTCP(self, *args) def OnQuit(self, *args) -> "void" : return _znc_core.CPyModule_OnQuit(self, *args) def OnNick(self, *args) -> "void" : return _znc_core.CPyModule_OnNick(self, *args) def OnKick(self, *args) -> "void" : return _znc_core.CPyModule_OnKick(self, *args) def OnJoin(self, *args) -> "void" : return _znc_core.CPyModule_OnJoin(self, *args) def OnPart(self, *args) -> "void" : return _znc_core.CPyModule_OnPart(self, *args) def OnChanBufferStarting(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnChanBufferStarting(self, *args) def OnChanBufferEnding(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnChanBufferEnding(self, *args) def OnChanBufferPlayLine(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnChanBufferPlayLine(self, *args) def OnPrivBufferPlayLine(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnPrivBufferPlayLine(self, *args) def OnClientLogin(self) -> "void" : return _znc_core.CPyModule_OnClientLogin(self) def OnClientDisconnect(self) -> "void" : return _znc_core.CPyModule_OnClientDisconnect(self) def OnUserRaw(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnUserRaw(self, *args) def OnUserCTCPReply(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnUserCTCPReply(self, *args) def OnUserCTCP(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnUserCTCP(self, *args) def OnUserAction(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnUserAction(self, *args) def OnUserMsg(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnUserMsg(self, *args) def OnUserNotice(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnUserNotice(self, *args) def OnUserJoin(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnUserJoin(self, *args) def OnUserPart(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnUserPart(self, *args) def OnUserTopic(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnUserTopic(self, *args) def OnUserTopicRequest(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnUserTopicRequest(self, *args) def OnCTCPReply(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnCTCPReply(self, *args) def OnPrivCTCP(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnPrivCTCP(self, *args) def OnChanCTCP(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnChanCTCP(self, *args) def OnPrivAction(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnPrivAction(self, *args) def OnChanAction(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnChanAction(self, *args) def OnPrivMsg(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnPrivMsg(self, *args) def OnChanMsg(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnChanMsg(self, *args) def OnPrivNotice(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnPrivNotice(self, *args) def OnChanNotice(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnChanNotice(self, *args) def OnTopic(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnTopic(self, *args) def OnServerCapAvailable(self, *args) -> "bool" : return _znc_core.CPyModule_OnServerCapAvailable(self, *args) def OnServerCapResult(self, *args) -> "void" : return _znc_core.CPyModule_OnServerCapResult(self, *args) def OnTimerAutoJoin(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnTimerAutoJoin(self, *args) def OnEmbeddedWebRequest(self, *args) -> "bool" : return _znc_core.CPyModule_OnEmbeddedWebRequest(self, *args) def OnAddUser(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnAddUser(self, *args) def OnDeleteUser(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnDeleteUser(self, *args) def OnClientConnect(self, *args) -> "void" : return _znc_core.CPyModule_OnClientConnect(self, *args) def OnFailedLogin(self, *args) -> "void" : return _znc_core.CPyModule_OnFailedLogin(self, *args) def OnUnknownUserRaw(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnUnknownUserRaw(self, *args) def IsClientCapSupported(self, *args) -> "bool" : return _znc_core.CPyModule_IsClientCapSupported(self, *args) def OnClientCapRequest(self, *args) -> "void" : return _znc_core.CPyModule_OnClientCapRequest(self, *args) def OnModuleLoading(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnModuleLoading(self, *args) def OnModuleUnloading(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnModuleUnloading(self, *args) def OnGetModInfo(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnGetModInfo(self, *args) def OnGetAvailableMods(self, *args) -> "void" : return _znc_core.CPyModule_OnGetAvailableMods(self, *args) def OnClientCapLs(self, *args) -> "void" : return _znc_core.CPyModule_OnClientCapLs(self, *args) def OnLoginAttempt(self, *args) -> "CModule::EModRet" : return _znc_core.CPyModule_OnLoginAttempt(self, *args) __swig_destroy__ = _znc_core.delete_CPyModule __del__ = lambda self : None; CPyModule_swigregister = _znc_core.CPyModule_swigregister CPyModule_swigregister(CPyModule) def AsPyModule(*args) -> "CPyModule *" : return _znc_core.AsPyModule(*args) AsPyModule = _znc_core.AsPyModule def CreatePyModule(*args) -> "CPyModule *" : return _znc_core.CreatePyModule(*args) 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, *args): this = _znc_core.new_CPyTimer(*args) 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(*args) -> "CPyTimer *" : return _znc_core.CreatePyTimer(*args) 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, *args): this = _znc_core.new_CPySocket(*args) 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, *args) -> "void" : return _znc_core.CPySocket_ReadData(self, *args) def ReadLine(self, *args) -> "void" : return _znc_core.CPySocket_ReadLine(self, *args) def GetSockObj(self, *args) -> "Csock *" : return _znc_core.CPySocket_GetSockObj(self, *args) CPySocket_swigregister = _znc_core.CPySocket_swigregister CPySocket_swigregister(CPySocket) def CreatePySocket(*args) -> "CPySocket *" : return _znc_core.CreatePySocket(*args) 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 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, *args) -> "bool" : return _znc_core.MCString_iter_is_end(self, *args) __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, *args): this = _znc_core.new_CModulesIter(*args) 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, *args) -> "std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > *" : return _znc_core.VPair___getslice__(self, *args) def __setslice__(self, *args) -> "void" : return _znc_core.VPair___setslice__(self, *args) def __delslice__(self, *args) -> "void" : return _znc_core.VPair___delslice__(self, *args) 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, *args) -> "void" : return _znc_core.VPair_append(self, *args) 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, *args) -> "void" : return _znc_core.VPair_swap(self, *args) 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, *args) -> "void" : return _znc_core.VPair_push_back(self, *args) 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, *args) -> "void" : return _znc_core.VPair_assign(self, *args) 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, *args) -> "void" : return _znc_core.VPair_reserve(self, *args) 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< CSmartPtr< CWebSubPage > >::size_type" : return _znc_core.VWebSubPages___len__(self) def pop(self) -> "std::vector< CSmartPtr< CWebSubPage > >::value_type" : return _znc_core.VWebSubPages_pop(self) def __getslice__(self, *args) -> "std::vector< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< CWebSubPage > > > *" : return _znc_core.VWebSubPages___getslice__(self, *args) def __setslice__(self, *args) -> "void" : return _znc_core.VWebSubPages___setslice__(self, *args) def __delslice__(self, *args) -> "void" : return _znc_core.VWebSubPages___delslice__(self, *args) def __delitem__(self, *args) -> "void" : return _znc_core.VWebSubPages___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< CSmartPtr< 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, *args) -> "void" : return _znc_core.VWebSubPages_append(self, *args) def empty(self) -> "bool" : return _znc_core.VWebSubPages_empty(self) def size(self) -> "std::vector< CSmartPtr< CWebSubPage > >::size_type" : return _znc_core.VWebSubPages_size(self) def clear(self) -> "void" : return _znc_core.VWebSubPages_clear(self) def swap(self, *args) -> "void" : return _znc_core.VWebSubPages_swap(self, *args) def get_allocator(self) -> "std::vector< CSmartPtr< CWebSubPage > >::allocator_type" : return _znc_core.VWebSubPages_get_allocator(self) def begin(self) -> "std::vector< CSmartPtr< CWebSubPage > >::iterator" : return _znc_core.VWebSubPages_begin(self) def end(self) -> "std::vector< CSmartPtr< CWebSubPage > >::iterator" : return _znc_core.VWebSubPages_end(self) def rbegin(self) -> "std::vector< CSmartPtr< CWebSubPage > >::reverse_iterator" : return _znc_core.VWebSubPages_rbegin(self) def rend(self) -> "std::vector< CSmartPtr< 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< CSmartPtr< 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, *args) -> "void" : return _znc_core.VWebSubPages_push_back(self, *args) def front(self) -> "std::vector< CSmartPtr< CWebSubPage > >::value_type const &" : return _znc_core.VWebSubPages_front(self) def back(self) -> "std::vector< CSmartPtr< CWebSubPage > >::value_type const &" : return _znc_core.VWebSubPages_back(self) def assign(self, *args) -> "void" : return _znc_core.VWebSubPages_assign(self, *args) 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, *args) -> "void" : return _znc_core.VWebSubPages_reserve(self, *args) def capacity(self) -> "std::vector< CSmartPtr< 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_(*args) -> "void" : return _znc_core.VPair_Add2Str_(*args) VPair_Add2Str_ = _znc_core.VPair_Add2Str_ def CreateWebSubPage_(*args) -> "TWebSubPage" : return _znc_core.CreateWebSubPage_(*args) CreateWebSubPage_ = _znc_core.CreateWebSubPage_ # This file is compatible with both classic and new-style classes. znc-1.2/modules/modpython/modpython.i0000644000175000017500000001732212235710266020267 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. */ %module znc_core %{ #include #include "../include/znc/Utils.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 }; %begin %{ #include "znc/zncconfig.h" %} %include %include %include %include %include %include %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; %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); } } /*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/ZNCString.h" %include "../include/znc/defines.h" %include "../include/znc/Utils.h" %template(PAuthBase) CSmartPtr; %template(WebSession) CSmartPtr; %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() + ">"; } }; /* 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 new CWebSubPage(sName, sTitle, vParams, uFlags); } %} /* vim: set filetype=cpp: */ znc-1.2/modules/modpython/functions.cpp0000644000175000017500000047336212235710306020615 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. * * 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 = NULL; 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_std_string (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) free((char*)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, NULL); 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, NULL); 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, NULL); 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, NULL); 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 = NULL; int res = SWIG_AsPtr_std_string(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 NULL"); result = ""; } else result = *p; if (SWIG_IsNewObj(res)) free((char*)p); // Don't ask me, that's how SWIG works... } 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, NULL); 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, NULL); 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*)NULL; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, NULL); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/_GetSubPages failed: " << sPyErr); Py_CLEAR(pyName); return (VWebSubPages*)NULL; } Py_CLEAR(pyName); VWebSubPages* result; if (pyRes == Py_None) { result = (VWebSubPages*)NULL; } 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*)NULL; } } 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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::OnChanPermission(const CNick& OpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) { PyObject* pyName = Py_BuildValue("s", "OnChanPermission"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanPermission: can't convert string 'OnChanPermission' 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() << "/OnChanPermission: can't convert parameter 'OpNick' 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() << "/OnChanPermission: can't convert parameter 'Nick' 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() << "/OnChanPermission: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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() << "/OnChanPermission: can't convert parameter 'uMode' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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() << "/OnChanPermission: can't convert parameter 'bAdded' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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() << "/OnChanPermission: can't convert parameter 'bNoChange' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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_OpNick, pyArg_Nick, pyArg_Channel, pyArg_uMode, pyArg_bAdded, pyArg_bNoChange, NULL); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanPermission failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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_OpNick); 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::OnOp(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PyObject* pyName = Py_BuildValue("s", "OnOp"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnOp: can't convert string 'OnOp' 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() << "/OnOp: can't convert parameter 'OpNick' 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() << "/OnOp: can't convert parameter 'Nick' 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() << "/OnOp: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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() << "/OnOp: can't convert parameter 'bNoChange' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_OpNick, pyArg_Nick, pyArg_Channel, pyArg_bNoChange, NULL); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnOp failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); Py_CLEAR(pyRes); } void CPyModule::OnDeop(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PyObject* pyName = Py_BuildValue("s", "OnDeop"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeop: can't convert string 'OnDeop' 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() << "/OnDeop: can't convert parameter 'OpNick' 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() << "/OnDeop: can't convert parameter 'Nick' 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() << "/OnDeop: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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() << "/OnDeop: can't convert parameter 'bNoChange' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_OpNick, pyArg_Nick, pyArg_Channel, pyArg_bNoChange, NULL); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeop failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); Py_CLEAR(pyRes); } void CPyModule::OnVoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PyObject* pyName = Py_BuildValue("s", "OnVoice"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnVoice: can't convert string 'OnVoice' 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() << "/OnVoice: can't convert parameter 'OpNick' 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() << "/OnVoice: can't convert parameter 'Nick' 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() << "/OnVoice: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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() << "/OnVoice: can't convert parameter 'bNoChange' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_OpNick, pyArg_Nick, pyArg_Channel, pyArg_bNoChange, NULL); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnVoice failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); Py_CLEAR(pyRes); } void CPyModule::OnDevoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PyObject* pyName = Py_BuildValue("s", "OnDevoice"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDevoice: can't convert string 'OnDevoice' 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() << "/OnDevoice: can't convert parameter 'OpNick' 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() << "/OnDevoice: can't convert parameter 'Nick' 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() << "/OnDevoice: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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() << "/OnDevoice: can't convert parameter 'bNoChange' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_OpNick, pyArg_Nick, pyArg_Channel, pyArg_bNoChange, NULL); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDevoice failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); Py_CLEAR(pyRes); } void CPyModule::OnMode(const CNick& OpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) { PyObject* pyName = Py_BuildValue("s", "OnMode"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnMode: can't convert string 'OnMode' 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() << "/OnMode: can't convert parameter 'OpNick' 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() << "/OnMode: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); return ; } PyObject* pyArg_uMode = Py_BuildValue("b", uMode); if (!pyArg_uMode) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnMode: can't convert parameter 'uMode' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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() << "/OnMode: can't convert parameter 'sArg' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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() << "/OnMode: can't convert parameter 'bAdded' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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() << "/OnMode: can't convert parameter 'bNoChange' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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_OpNick, pyArg_Channel, pyArg_uMode, pyArg_sArg, pyArg_bAdded, pyArg_bNoChange, NULL); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnMode failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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_OpNick); 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::OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs) { PyObject* pyName = Py_BuildValue("s", "OnRawMode"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnRawMode: can't convert string 'OnRawMode' 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() << "/OnRawMode: can't convert parameter 'OpNick' 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() << "/OnRawMode: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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() << "/OnRawMode: can't convert parameter 'sModes' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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() << "/OnRawMode: can't convert parameter 'sArgs' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sModes); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_OpNick, pyArg_Channel, pyArg_sModes, pyArg_sArgs, NULL); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnRawMode failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sModes); Py_CLEAR(pyArg_sArgs); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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); } 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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::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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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, NULL); 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(CSmartPtr 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 CSmartPtr(Auth), SWIG_TypeQuery("CSmartPtr*"), 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, NULL); 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.2/modules/modpython/functions.in0000644000175000017500000001061412235710266020431 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 OnChanPermission(const CNick& OpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) void OnOp(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnDeop(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnVoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnDevoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnMode(const CNick& OpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) void OnRawMode(const CNick& OpNick, 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) 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 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(CSmartPtr Auth) znc-1.2/modules/modpython/swigpyrun.h0000644000175000017500000024762312235710306020320 0ustar somebodysomebody/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.9 * * 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 # 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 not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCompare(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* 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) { register size_t l = 0; register size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ register size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { register 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 { register 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"; register const unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register 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) { register unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register char d = *(c++); register 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) { register 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 { register 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 { register 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_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { char *str; #ifdef METH_NOARGS PyObject *repr = SwigPyObject_repr(v); #else PyObject *repr = SwigPyObject_repr(v, NULL); #endif if (repr) { str = SWIG_Python_str_AsChar(repr); fputs(str, fp); SWIG_Python_str_DelForPy3(str); Py_DECREF(repr); return 0; } else { return 1; } } SWIGRUNTIME PyObject * SwigPyObject_str(SwigPyObject *v) { char result[SWIG_BUFFER_SIZE]; return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? SWIG_Python_str_FromChar(result) : 0; } 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 *)"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_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 */ (printfunc)SwigPyObject_print, /* 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 */ (reprfunc)SwigPyObject_str, /* 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; if (!obj) return SWIG_ERROR; if (obj == Py_None) { 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 (flags & SWIG_POINTER_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); } } } } } 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 = PyBaseObject_Type.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; # 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; } res = -1; 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.2/modules/modpython/znc.py0000644000175000017500000004252212235710266017240 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. # 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 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 # 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 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]) 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_() 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_ 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.2/modules/modpython/ret.h0000644000175000017500000000213712235710266017035 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. */ #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.2/modules/modpython/module.h0000644000175000017500000002265012235710266017532 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. */ #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(); virtual bool WebRequiresLogin(); virtual bool WebRequiresAdmin(); virtual CString GetWebMenuTitle(); virtual bool OnWebPreRequest(CWebSock& WebSock, const CString& sPageName); virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl); virtual VWebSubPages& GetSubPages(); virtual void OnPreRehash(); virtual void OnPostRehash(); virtual void OnIRCDisconnected(); virtual void OnIRCConnected(); virtual EModRet OnIRCConnecting(CIRCSock *pIRCSock); virtual void OnIRCConnectionError(CIRCSock *pIRCSock); virtual EModRet OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName); virtual EModRet OnBroadcast(CString& sMessage); virtual void OnChanPermission(const CNick& OpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange); virtual void OnOp(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange); virtual void OnDeop(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange); virtual void OnVoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange); virtual void OnDevoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange); virtual void OnMode(const CNick& OpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange); virtual void OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs); virtual EModRet OnRaw(CString& sLine); virtual EModRet OnStatusCommand(CString& sCommand); virtual void OnModCommand(const CString& sCommand); virtual void OnModNotice(const CString& sMessage); virtual void OnModCTCP(const CString& sMessage); virtual void OnQuit(const CNick& Nick, const CString& sMessage, const std::vector& vChans); virtual void OnNick(const CNick& Nick, const CString& sNewNick, const std::vector& vChans); virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage); virtual void OnJoin(const CNick& Nick, CChan& Channel); virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage); virtual EModRet OnChanBufferStarting(CChan& Chan, CClient& Client); virtual EModRet OnChanBufferEnding(CChan& Chan, CClient& Client); virtual EModRet OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine); virtual EModRet OnPrivBufferPlayLine(CClient& Client, CString& sLine); virtual void OnClientLogin(); virtual void OnClientDisconnect(); virtual EModRet OnUserRaw(CString& sLine); virtual EModRet OnUserCTCPReply(CString& sTarget, CString& sMessage); virtual EModRet OnUserCTCP(CString& sTarget, CString& sMessage); virtual EModRet OnUserAction(CString& sTarget, CString& sMessage); virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage); virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage); virtual EModRet OnUserJoin(CString& sChannel, CString& sKey); virtual EModRet OnUserPart(CString& sChannel, CString& sMessage); virtual EModRet OnUserTopic(CString& sChannel, CString& sTopic); virtual EModRet OnUserTopicRequest(CString& sChannel); virtual EModRet OnCTCPReply(CNick& Nick, CString& sMessage); virtual EModRet OnPrivCTCP(CNick& Nick, CString& sMessage); virtual EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage); virtual EModRet OnPrivAction(CNick& Nick, CString& sMessage); virtual EModRet OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage); virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage); virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage); virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage); virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage); virtual EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic); virtual bool OnServerCapAvailable(const CString& sCap); virtual void OnServerCapResult(const CString& sCap, bool bSuccess); virtual EModRet OnTimerAutoJoin(CChan& Channel); bool OnEmbeddedWebRequest(CWebSock&, const CString&, CTemplate&); // Global Modules virtual EModRet OnAddUser(CUser& User, CString& sErrorRet); virtual EModRet OnDeleteUser(CUser& User); virtual void OnClientConnect(CZNCSock* pSock, const CString& sHost, unsigned short uPort); virtual void OnFailedLogin(const CString& sUsername, const CString& sRemoteIP); virtual EModRet OnUnknownUserRaw(CClient* pClient, CString& sLine); virtual bool IsClientCapSupported(CClient* pClient, const CString& sCap, bool bState); virtual void OnClientCapRequest(CClient* pClient, const CString& sCap, bool bState); virtual EModRet OnModuleLoading(const CString& sModName, const CString& sArgs, CModInfo::EModuleType eType, bool& bSuccess, CString& sRetMsg); virtual EModRet OnModuleUnloading(CModule* pModule, bool& bSuccess, CString& sRetMsg); virtual EModRet OnGetModInfo(CModInfo& ModInfo, const CString& sModule, bool& bSuccess, CString& sRetMsg); virtual void OnGetAvailableMods(std::set& ssMods, CModInfo::EModuleType eType); virtual void OnClientCapLs(CClient* pClient, SCString& ssCaps); virtual EModRet OnLoginAttempt(CSmartPtr Auth); }; 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(); 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(); virtual void Disconnected(); virtual void Timeout(); virtual void ConnectionRefused(); virtual void ReadData(const char *data, size_t len); virtual void ReadLine(const CString& sLine); virtual Csock* GetSockObj(const CString& sHost, unsigned short uPort); }; 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 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.2/modules/modpython/cstring.i0000644000175000017500000003174512235710266017724 0ustar somebodysomebody/* SWIG-generated sources are used here. */ // // String // %{ #include %} %feature("naturalvar") CString; class CString { public: typedef size_t size_type; }; /*@SWIG:/usr/share/swig1.3/typemaps/std_strings.swg,74,%typemaps_std_string@*/ /*@SWIG:/usr/share/swig1.3/typemaps/std_strings.swg,4,%std_string_asptr@*/ %fragment("SWIG_" "AsPtr" "_" {CString},"header",fragment="SWIG_AsCharPtrAndSize") { SWIGINTERN int SWIG_AsPtr_std_string (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) free((char*)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:/usr/share/swig1.3/typemaps/std_strings.swg,52,%std_string_asval@*/ %fragment("SWIG_" "AsVal" "_" {CString},"header", fragment="SWIG_" "AsPtr" "_" {CString}) { SWIGINTERN int SWIG_AsVal_std_string (PyObject * obj, CString *val) { CString* v = (CString *) 0; int res = SWIG_AsPtr_std_string (obj, &v); if (!SWIG_IsOK(res)) return res; if (v) { if (val) *val = *v; if (SWIG_IsNewObj(res)) { free((char*)v); res = SWIG_DelNewMask(res); } return res; } return SWIG_ERROR; } } /*@SWIG@*/ /*@SWIG:/usr/share/swig1.3/typemaps/std_strings.swg,38,%std_string_from@*/ %fragment("SWIG_" "From" "_" {CString},"header",fragment="SWIG_FromCharPtrAndSize",fragment="StdTraits") { SWIGINTERNINLINE PyObject * SWIG_From_std_string (const CString& s) { if (s.size()) { return SWIG_FromCharPtrAndSize(s.data(), s.size()); } else { return SWIG_FromCharPtrAndSize(s.c_str(), 0); } } } /*@SWIG@*/ %fragment("StdTraitsCString","header",fragment="SWIG_From_CString") { namespace swig { template<> struct traits_from { static PyObject *from(const CString& s) { return SWIG_From_std_string(s); } }; } } /*@SWIG:/usr/share/swig1.3/typemaps/ptrtypes.swg,204,%typemaps_asptrfromn@*/ /*@SWIG:/usr/share/swig1.3/typemaps/ptrtypes.swg,193,%typemaps_asptrfrom@*/ /*@SWIG:/usr/share/swig1.3/typemaps/ptrtypes.swg,163,%typemaps_asptr@*/ %fragment("SWIG_" "AsVal" "_" {CString},"header",fragment="SWIG_" "AsPtr" "_" {CString}) { SWIGINTERNINLINE int SWIG_AsVal_std_string (PyObject * obj, CString *val) { CString *v = (CString *)0; int res = SWIG_AsPtr_std_string (obj, &v); if (!SWIG_IsOK(res)) return res; if (v) { if (val) *val = *v; if (SWIG_IsNewObj(res)) { free((char*)v); res = SWIG_DelNewMask(res); } return res; } return SWIG_ERROR; } } /*@SWIG:/usr/share/swig1.3/typemaps/ptrtypes.swg,31,%ptr_in_typemap@*/ %typemap(in,fragment="SWIG_" "AsPtr" "_" {CString},fragment="StdTraitsCString") CString { CString *ptr = (CString *)0; int res = SWIG_AsPtr_std_string($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)) free((char*)ptr); } %typemap(freearg) CString ""; %typemap(in,fragment="SWIG_" "AsPtr" "_" {CString}) const CString & (int res = SWIG_OLDOBJ) { CString *ptr = (CString *)0; res = SWIG_AsPtr_std_string($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)) free((char*)$1); } /*@SWIG@*/; /*@SWIG:/usr/share/swig1.3/typemaps/ptrtypes.swg,56,%ptr_varin_typemap@*/ %typemap(varin,fragment="SWIG_" "AsPtr" "_" {CString}) CString { CString *ptr = (CString *)0; int res = SWIG_AsPtr_std_string($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)) free((char*)ptr); } /*@SWIG@*/; /*@SWIG:/usr/share/swig1.3/typemaps/ptrtypes.swg,71,%ptr_directorout_typemap@*/ %typemap(directorargout,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString}) CString *DIRECTOROUT ($*ltype temp) { CString *swig_optr = 0; int swig_ores = $input ? SWIG_AsPtr_std_string($input, &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; $result = &temp; if (SWIG_IsNewObj(swig_ores)) free((char*)swig_optr); } %typemap(directorout,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString}) CString { CString *swig_optr = 0; int swig_ores = SWIG_AsPtr_std_string($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)) free((char*)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_std_string($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_std_string($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:/usr/share/swig1.3/typemaps/ptrtypes.swg,146,%ptr_typecheck_typemap@*/ %typemap(typecheck,noblock=1,precedence=135,fragment="SWIG_" "AsPtr" "_" {CString}) CString * { int res = SWIG_AsPtr_std_string($input, (CString**)(0)); $1 = SWIG_CheckState(res); } %typemap(typecheck,noblock=1,precedence=135,fragment="SWIG_" "AsPtr" "_" {CString}) CString, const CString& { int res = SWIG_AsPtr_std_string($input, (CString**)(0)); $1 = SWIG_CheckState(res); } /*@SWIG@*/; /*@SWIG:/usr/share/swig1.3/typemaps/inoutlist.swg,254,%ptr_input_typemap@*/ /*@SWIG:/usr/share/swig1.3/typemaps/inoutlist.swg,117,%_ptr_input_typemap@*/ %typemap(in,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString}) CString *INPUT(int res = 0) { res = SWIG_AsPtr_std_string($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_std_string($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)) free((char*)$1); } %typemap(typecheck,noblock=1,precedence=135,fragment="SWIG_" "AsPtr" "_" {CString}) CString *INPUT, CString &INPUT { int res = SWIG_AsPtr_std_string($input, (CString**)0); $1 = SWIG_CheckState(res); } /*@SWIG@*/ /*@SWIG@*/; /*@SWIG@*/ /*@SWIG:/usr/share/swig1.3/typemaps/valtypes.swg,184,%typemaps_from@*/ /*@SWIG:/usr/share/swig1.3/typemaps/valtypes.swg,55,%value_out_typemap@*/ %typemap(out,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString, const CString { $result = SWIG_From_std_string((CString)($1)); } %typemap(out,noblock=1,fragment="SWIG_" "From" "_" {CString}) const CString& { $result = SWIG_From_std_string((CString)(*$1)); } /*@SWIG@*/; /*@SWIG:/usr/share/swig1.3/typemaps/valtypes.swg,79,%value_varout_typemap@*/ %typemap(varout,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString, const CString& { $result = SWIG_From_std_string((CString)($1)); } /*@SWIG@*/; /*@SWIG:/usr/share/swig1.3/typemaps/valtypes.swg,87,%value_constcode_typemap@*/ %typemap(constcode,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString { SWIG_Python_SetConstant(d, "$symname",SWIG_From_std_string((CString)($value))); } /*@SWIG@*/; /*@SWIG:/usr/share/swig1.3/typemaps/valtypes.swg,98,%value_directorin_typemap@*/ %typemap(directorin,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString *DIRECTORIN { $input = SWIG_From_std_string((CString)(*$1_name)); } %typemap(directorin,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString, const CString& { $input = SWIG_From_std_string((CString)($1_name)); } /*@SWIG@*/; /*@SWIG:/usr/share/swig1.3/typemaps/valtypes.swg,154,%value_throws_typemap@*/ %typemap(throws,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString { SWIG_Python_Raise(SWIG_From_std_string((CString)($1)), "$type", 0); SWIG_fail; } /*@SWIG@*/; /*@SWIG:/usr/share/swig1.3/typemaps/inoutlist.swg,258,%value_output_typemap@*/ /*@SWIG:/usr/share/swig1.3/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_std_string((*$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:/usr/share/swig1.3/typemaps/inoutlist.swg,258,%value_output_typemap@*/ /*@SWIG:/usr/share/swig1.3/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_std_string((*$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:/usr/share/swig1.3/typemaps/inoutlist.swg,240,%_ptr_inout_typemap@*/ /*@SWIG:/usr/share/swig1.3/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.2/modules/modpython/_znc_core.cpp0000644000175000017500002027060212235710306020540 0ustar somebodysomebody/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.9 * * 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 /* Python.h has to appear first */ #include /* ----------------------------------------------------------------------------- * 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 # 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 not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCompare(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* 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) { register size_t l = 0; register size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ register size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { register 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 { register 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"; register const unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register 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) { register unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register char d = *(c++); register 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) { register 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 { register 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 { register 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_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { char *str; #ifdef METH_NOARGS PyObject *repr = SwigPyObject_repr(v); #else PyObject *repr = SwigPyObject_repr(v, NULL); #endif if (repr) { str = SWIG_Python_str_AsChar(repr); fputs(str, fp); SWIG_Python_str_DelForPy3(str); Py_DECREF(repr); return 0; } else { return 1; } } SWIGRUNTIME PyObject * SwigPyObject_str(SwigPyObject *v) { char result[SWIG_BUFFER_SIZE]; return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? SWIG_Python_str_FromChar(result) : 0; } 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 *)"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_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 */ (printfunc)SwigPyObject_print, /* 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 */ (reprfunc)SwigPyObject_str, /* 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; if (!obj) return SWIG_ERROR; if (obj == Py_None) { 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 (flags & SWIG_POINTER_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); } } } } } 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 = PyBaseObject_Type.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; # 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; } res = -1; 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_CConfig__EntryMap__const_iterator swig_types[9] #define SWIGTYPE_p_CConfig__SubConfigMap__const_iterator swig_types[10] #define SWIGTYPE_p_CConnectQueueTimer swig_types[11] #define SWIGTYPE_p_CCron swig_types[12] #define SWIGTYPE_p_CDebug swig_types[13] #define SWIGTYPE_p_CDebugStream swig_types[14] #define SWIGTYPE_p_CDir swig_types[15] #define SWIGTYPE_p_CException swig_types[16] #define SWIGTYPE_p_CExecSock swig_types[17] #define SWIGTYPE_p_CFPTimer swig_types[18] #define SWIGTYPE_p_CFile swig_types[19] #define SWIGTYPE_p_CGetAddrInfo swig_types[20] #define SWIGTYPE_p_CHTTPSock swig_types[21] #define SWIGTYPE_p_CIRCNetwork swig_types[22] #define SWIGTYPE_p_CIRCSock swig_types[23] #define SWIGTYPE_p_CIncomingConnection swig_types[24] #define SWIGTYPE_p_CListener swig_types[25] #define SWIGTYPE_p_CModCommand swig_types[26] #define SWIGTYPE_p_CModInfo swig_types[27] #define SWIGTYPE_p_CModPython swig_types[28] #define SWIGTYPE_p_CModule swig_types[29] #define SWIGTYPE_p_CModules swig_types[30] #define SWIGTYPE_p_CModulesIter swig_types[31] #define SWIGTYPE_p_CNick swig_types[32] #define SWIGTYPE_p_CPyModule swig_types[33] #define SWIGTYPE_p_CPyRetBool swig_types[34] #define SWIGTYPE_p_CPyRetString swig_types[35] #define SWIGTYPE_p_CPySocket swig_types[36] #define SWIGTYPE_p_CPyTimer 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_CSmartPtrT_CAuthBase_t swig_types[46] #define SWIGTYPE_p_CSmartPtrT_CTemplateOptions_t swig_types[47] #define SWIGTYPE_p_CSmartPtrT_CTemplateTagHandler_t swig_types[48] #define SWIGTYPE_p_CSmartPtrT_CWebSession_t swig_types[49] #define SWIGTYPE_p_CSmartPtrT_CWebSubPage_t swig_types[50] #define SWIGTYPE_p_CSockCommon swig_types[51] #define SWIGTYPE_p_CSockManager swig_types[52] #define SWIGTYPE_p_CSocket swig_types[53] #define SWIGTYPE_p_CSocketManager swig_types[54] #define SWIGTYPE_p_CString swig_types[55] #define SWIGTYPE_p_CString__EEscape swig_types[56] #define SWIGTYPE_p_CTable swig_types[57] #define SWIGTYPE_p_CTemplate swig_types[58] #define SWIGTYPE_p_CTemplateLoopContext swig_types[59] #define SWIGTYPE_p_CTemplateOptions swig_types[60] #define SWIGTYPE_p_CTemplateTagHandler swig_types[61] #define SWIGTYPE_p_CTimer swig_types[62] #define SWIGTYPE_p_CUser swig_types[63] #define SWIGTYPE_p_CUtils swig_types[64] #define SWIGTYPE_p_CWebSession swig_types[65] #define SWIGTYPE_p_CWebSessionMap swig_types[66] #define SWIGTYPE_p_CWebSock swig_types[67] #define SWIGTYPE_p_CWebSubPage swig_types[68] #define SWIGTYPE_p_CZNC swig_types[69] #define SWIGTYPE_p_CZNCSock swig_types[70] #define SWIGTYPE_p_CZNCTagHandler swig_types[71] #define SWIGTYPE_p_Csock swig_types[72] #define SWIGTYPE_p_EAcceptType swig_types[73] #define SWIGTYPE_p_EChanModeArgs swig_types[74] #define SWIGTYPE_p_EModException swig_types[75] #define SWIGTYPE_p_EModRet swig_types[76] #define SWIGTYPE_p_EModes swig_types[77] #define SWIGTYPE_p_EModuleType swig_types[78] #define SWIGTYPE_p_EType swig_types[79] #define SWIGTYPE_p_EUserPerms swig_types[80] #define SWIGTYPE_p_EntryMap swig_types[81] #define SWIGTYPE_p_EntryMapIterator swig_types[82] #define SWIGTYPE_p_MCString swig_types[83] #define SWIGTYPE_p_MCString_iter swig_types[84] #define SWIGTYPE_p_ModCmdFunc swig_types[85] #define SWIGTYPE_p_ModDirList swig_types[86] #define SWIGTYPE_p_String swig_types[87] #define SWIGTYPE_p_SubConfig swig_types[88] #define SWIGTYPE_p_SubConfigMap swig_types[89] #define SWIGTYPE_p_SubConfigMapIterator swig_types[90] #define SWIGTYPE_p_TSocketManagerT_CZNCSock_t swig_types[91] #define SWIGTYPE_p_TrafficStatsMap swig_types[92] #define SWIGTYPE_p_TrafficStatsPair swig_types[93] #define SWIGTYPE_p_allocator_type swig_types[94] #define SWIGTYPE_p_bool swig_types[95] #define SWIGTYPE_p_char swig_types[96] #define SWIGTYPE_p_const_reference swig_types[97] #define SWIGTYPE_p_difference_type swig_types[98] #define SWIGTYPE_p_double swig_types[99] #define SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModPython swig_types[100] #define SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule swig_types[101] #define SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPyModule swig_types[102] #define SWIGTYPE_p_f_p_CModule_p_CFPTimer__void swig_types[103] #define SWIGTYPE_p_f_r_std__ostream__r_std__ostream swig_types[104] #define SWIGTYPE_p_fd_set swig_types[105] #define SWIGTYPE_p_first_type swig_types[106] #define SWIGTYPE_p_gid_t swig_types[107] #define SWIGTYPE_p_in_addr swig_types[108] #define SWIGTYPE_p_int swig_types[109] #define SWIGTYPE_p_int32_t swig_types[110] #define SWIGTYPE_p_int64_t swig_types[111] #define SWIGTYPE_p_key_type swig_types[112] #define SWIGTYPE_p_long swig_types[113] #define SWIGTYPE_p_mapped_type swig_types[114] #define SWIGTYPE_p_mode_t swig_types[115] #define SWIGTYPE_p_p_PyObject swig_types[116] #define SWIGTYPE_p_reference swig_types[117] #define SWIGTYPE_p_second_type swig_types[118] #define SWIGTYPE_p_size_type swig_types[119] #define SWIGTYPE_p_sockaddr_in swig_types[120] #define SWIGTYPE_p_sockaddr_storage swig_types[121] #define SWIGTYPE_p_socklen_t swig_types[122] #define SWIGTYPE_p_ssize_t swig_types[123] #define SWIGTYPE_p_stat swig_types[124] #define SWIGTYPE_p_std__allocatorT_CBufLine_t swig_types[125] #define SWIGTYPE_p_std__allocatorT_CChan_p_t swig_types[126] #define SWIGTYPE_p_std__allocatorT_CIRCNetwork_p_t swig_types[127] #define SWIGTYPE_p_std__allocatorT_CListener_p_t swig_types[128] #define SWIGTYPE_p_std__allocatorT_CModule_p_t swig_types[129] #define SWIGTYPE_p_std__allocatorT_CSmartPtrT_CWebSubPage_t_t swig_types[130] #define SWIGTYPE_p_std__allocatorT_CString_t swig_types[131] #define SWIGTYPE_p_std__allocatorT_std__pairT_CString_CString_t_t swig_types[132] #define SWIGTYPE_p_std__allocatorT_std__pairT_CString_const_CNick_t_t swig_types[133] #define SWIGTYPE_p_std__allocatorT_std__pairT_CString_const_CString_t_t swig_types[134] #define SWIGTYPE_p_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t swig_types[135] #define SWIGTYPE_p_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t swig_types[136] #define SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t swig_types[137] #define SWIGTYPE_p_std__dequeT__Tp__Alloc_t swig_types[138] #define SWIGTYPE_p_std__invalid_argument swig_types[139] #define SWIGTYPE_p_std__lessT_CModInfo_t swig_types[140] #define SWIGTYPE_p_std__lessT_CString_t swig_types[141] #define SWIGTYPE_p_std__listT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t swig_types[142] #define SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t swig_types[143] #define SWIGTYPE_p_std__listT__Tp__Alloc_t swig_types[144] #define SWIGTYPE_p_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t swig_types[145] #define SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t swig_types[146] #define SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t swig_types[147] #define SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t__iterator swig_types[148] #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[149] #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[150] #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[151] #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[152] #define SWIGTYPE_p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t swig_types[153] #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[154] #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[155] #define SWIGTYPE_p_std__ostream swig_types[156] #define SWIGTYPE_p_std__pairT_CString_CString_t swig_types[157] #define SWIGTYPE_p_std__pairT_unsigned_long_long_unsigned_long_long_t swig_types[158] #define SWIGTYPE_p_std__setT_CChan_p_std__lessT_CChan_p_t_std__allocatorT_CChan_p_t_t swig_types[159] #define SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t swig_types[160] #define SWIGTYPE_p_std__setT_CSocket_p_std__lessT_CSocket_p_t_std__allocatorT_CSocket_p_t_t__const_iterator swig_types[161] #define SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t swig_types[162] #define SWIGTYPE_p_std__setT_CTimer_p_std__lessT_CTimer_p_t_std__allocatorT_CTimer_p_t_t__const_iterator swig_types[163] #define SWIGTYPE_p_std__setT_unsigned_char_std__lessT_unsigned_char_t_std__allocatorT_unsigned_char_t_t swig_types[164] #define SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t swig_types[165] #define SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t swig_types[166] #define SWIGTYPE_p_std__vectorT_CCron_p_std__allocatorT_CCron_p_t_t swig_types[167] #define SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t swig_types[168] #define SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t swig_types[169] #define SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t swig_types[170] #define SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t__const_iterator swig_types[171] #define SWIGTYPE_p_std__vectorT_CServer_p_std__allocatorT_CServer_p_t_t swig_types[172] #define SWIGTYPE_p_std__vectorT_CSmartPtrT_CTemplateTagHandler_t_std__allocatorT_CSmartPtrT_CTemplateTagHandler_t_t_t swig_types[173] #define SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_CWebSubPage_t_t_t swig_types[174] #define SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t swig_types[175] #define SWIGTYPE_p_std__vectorT_CTemplate_p_std__allocatorT_CTemplate_p_t_t swig_types[176] #define SWIGTYPE_p_std__vectorT_Csock_p_std__allocatorT_Csock_p_t_t swig_types[177] #define SWIGTYPE_p_std__vectorT__Tp__Alloc_t swig_types[178] #define SWIGTYPE_p_std__vectorT__Tp_p__Alloc_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__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t swig_types[181] #define SWIGTYPE_p_swig__SwigPyIterator swig_types[182] #define SWIGTYPE_p_time_t swig_types[183] #define SWIGTYPE_p_timeval swig_types[184] #define SWIGTYPE_p_uid_t swig_types[185] #define SWIGTYPE_p_uint16_t swig_types[186] #define SWIGTYPE_p_uint32_t swig_types[187] #define SWIGTYPE_p_uint64_t swig_types[188] #define SWIGTYPE_p_unsigned_int swig_types[189] #define SWIGTYPE_p_unsigned_short swig_types[190] #define SWIGTYPE_p_value_type swig_types[191] #define SWIGTYPE_p_void swig_types[192] static swig_type_info *swig_types[194]; static swig_module_info swig_module = {swig_types, 193, 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 0x020009 #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) { Py_XINCREF(_obj); } SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) { if (initial_ref) { Py_XINCREF(_obj); } } SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) { Py_XINCREF(item._obj); Py_XDECREF(_obj); _obj = item._obj; return *this; } ~SwigPtr_PyObject() { Py_XDECREF(_obj); } 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/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 #include #include #if PY_VERSION_HEX >= 0x03020000 # define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj)) #else # define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj)) #endif #include 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(); } } #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 #include #include #include 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; rc 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; rc 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); if (it==self->end()) break; for (Py_ssize_t c=0; c<(step-1); ++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) { self->erase((++it).base()); if (it==self->rend()) break; for (Py_ssize_t c=0; c<(-step-1); ++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 return PyUnicode_FromStringAndSize(carray, static_cast< int >(size)); #else return PyString_FromStringAndSize(carray, static_cast< int >(size)); #endif } } else { return SWIG_Py_Void(); } } SWIGINTERNINLINE PyObject * SWIG_From_std_string (const CString& s) { if (s.size()) { return SWIG_FromCharPtrAndSize(s.data(), s.size()); } else { return SWIG_FromCharPtrAndSize(s.c_str(), 0); } } 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_std_string (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) free((char*)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); } 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); } 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); } 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 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); } } }; 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 <> 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); } 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); } 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(); } namespace swig { template<> struct traits_from { static PyObject *from(const CString& s) { return SWIG_From_std_string(s); } }; } 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); } 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); } 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); } 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); } 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); } 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); } 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); } 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); } #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 = 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)); } SWIGINTERNINLINE PyObject* SWIG_From_int (int value) { return PyInt_FromLong((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_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; } SWIGINTERN int SWIG_AsVal_float (PyObject * obj, float *val) { double v; int res = SWIG_AsVal_double (obj, &v); if (SWIG_IsOK(res)) { if ((v < -FLT_MAX || v > FLT_MAX)) { 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); } 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)) { if ((csize == size + 1) && cptr && !(cptr[csize-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(); } 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 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); } namespace swig { template <> struct traits > { typedef pointer_category category; static const char* type_name() { return"CSmartPtr< CWebSubPage >"; } }; } namespace swig { template <> struct traits, std::allocator< CSmartPtr< CWebSubPage > > > > { typedef pointer_category category; static const char* type_name() { return "std::vector<" "CSmartPtr< CWebSubPage >" "," "std::allocator< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::size_type std_vector_Sl_TWebSubPage_Sg____len__(std::vector< TWebSubPage > const *self){ return self->size(); } SWIGINTERN std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > > >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN std::vector< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< CWebSubPage > > > *std_vector_Sl_TWebSubPage_Sg____getslice__(std::vector< TWebSubPage > *self,std::vector< CSmartPtr< CWebSubPage > >::difference_type i,std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::difference_type i,std::vector< CSmartPtr< CWebSubPage > >::difference_type j,std::vector< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< CWebSubPage > > > const &v=std::vector< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< CWebSubPage > > >()){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_TWebSubPage_Sg____delslice__(std::vector< TWebSubPage > *self,std::vector< CSmartPtr< CWebSubPage > >::difference_type i,std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::difference_type i){ self->erase(swig::getpos(self,i)); } SWIGINTERN std::vector< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< 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< CSmartPtr< CWebSubPage > > >::difference_type id = i; std::vector,std::allocator< CSmartPtr< 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< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< 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< CSmartPtr< CWebSubPage > > >::difference_type id = i; std::vector,std::allocator< CSmartPtr< 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< CSmartPtr< CWebSubPage > > >::difference_type id = i; std::vector,std::allocator< CSmartPtr< 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< CSmartPtr< CWebSubPage > > >::difference_type id = i; std::vector,std::allocator< CSmartPtr< CWebSubPage > > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< CSmartPtr< CWebSubPage > >::value_type const &std_vector_Sl_TWebSubPage_Sg____getitem____SWIG_1(std::vector< TWebSubPage > const *self,std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::difference_type i,std::vector< CSmartPtr< CWebSubPage > >::value_type const &x){ *(swig::getpos(self,i)) = x; } SWIGINTERN void std_vector_Sl_TWebSubPage_Sg__append(std::vector< TWebSubPage > *self,std::vector< CSmartPtr< CWebSubPage > >::value_type const &x){ self->push_back(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 new CWebSubPage(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 *_wrap_new_CString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CString")) SWIG_fail; result = (CString *)new CString(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CString, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = (CString *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CString, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CString" "', argument " "1"" of type '" "CString *""'"); } arg1 = reinterpret_cast< CString * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CString_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CString, SWIG_NewClientData(obj)); 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_std_string((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_std_string((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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 = (arg1)->erase(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 = (arg1)->erase(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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 = (arg1)->insert(arg2,(std::list< CString >::value_type 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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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; } (arg1)->insert(arg2,arg3,(std::list< CString >::value_type const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 = (arg1)->erase(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 = (arg1)->erase(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 = (arg1)->insert(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); (arg1)->insert(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 = (arg1)->erase(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 = (arg1)->erase(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 = (arg1)->insert(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); (arg1)->insert(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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""'"); } } (arg1)->erase(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""'"); } } (arg1)->erase(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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""'"); } } (arg1)->erase(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""'"); } } (arg1)->erase(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_std_string(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)) free((char*)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_std_string(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)) free((char*)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_std_string((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_std_string(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)) free((char*)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_std_string(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)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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""'"); } } (arg1)->erase(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""'"); } } (arg1)->erase(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 = (arg1)->erase(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 = (arg1)->erase(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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 = (arg1)->insert(arg2,(std::vector< CString >::value_type 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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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; } (arg1)->insert(arg2,arg3,(std::vector< CString >::value_type const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string((CString)(*result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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""'"); } } (arg1)->erase(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""'"); } } (arg1)->erase(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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""'"); } } (arg1)->erase(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""'"); } } (arg1)->erase(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 = (arg1)->erase(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 = (arg1)->erase(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 = (arg1)->insert(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); (arg1)->insert(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 = (arg1)->erase(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 = (arg1)->erase(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 = (arg1)->insert(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); (arg1)->insert(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 = (arg1)->erase(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 = (arg1)->erase(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 = (arg1)->insert(arg2,(std::deque< CBufLine >::value_type 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); (arg1)->insert(arg2,arg3,(std::deque< CBufLine >::value_type 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 = (arg1)->erase(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 = (arg1)->erase(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 = (arg1)->insert(arg2,(std::vector< std::vector< CString,std::allocator< CString > > >::value_type 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; } (arg1)->insert(arg2,arg3,(std::vector< std::vector< CString,std::allocator< CString > > >::value_type 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_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_std_string((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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string((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_std_string((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_std_string((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_std_string(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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res1)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUtils_GetInput__SWIG_2(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); 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 *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(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_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(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); return NULL; } 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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_From_size_t(static_cast< size_t >(result)); 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_PAuthBase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_PAuthBase")) SWIG_fail; result = (CSmartPtr< CAuthBase > *)new CSmartPtr< CAuthBase >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSmartPtrT_CAuthBase_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PAuthBase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CAuthBase *arg1 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CSmartPtr< CAuthBase > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_PAuthBase",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CAuthBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PAuthBase" "', argument " "1"" of type '" "CAuthBase *""'"); } arg1 = reinterpret_cast< CAuthBase * >(argp1); result = (CSmartPtr< CAuthBase > *)new CSmartPtr< CAuthBase >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSmartPtrT_CAuthBase_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PAuthBase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CSmartPtr< CAuthBase > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_PAuthBase",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PAuthBase" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PAuthBase" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > const &""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); result = (CSmartPtr< CAuthBase > *)new CSmartPtr< CAuthBase >((CSmartPtr< CAuthBase > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSmartPtrT_CAuthBase_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PAuthBase(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_PAuthBase__SWIG_0(self, args); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CAuthBase, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_PAuthBase__SWIG_1(self, args); } } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_PAuthBase__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PAuthBase'.\n" " Possible C/C++ prototypes are:\n" " CSmartPtr< CAuthBase >::CSmartPtr()\n" " CSmartPtr< CAuthBase >::CSmartPtr(CAuthBase *)\n" " CSmartPtr< CAuthBase >::CSmartPtr(CSmartPtr< CAuthBase > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_PAuthBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_PAuthBase",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PAuthBase" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase___ref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CAuthBase *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PAuthBase___ref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase___ref__" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); result = (CAuthBase *) &((CSmartPtr< CAuthBase > const *)arg1)->operator *(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CAuthBase, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CAuthBase *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PAuthBase___deref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase___deref__" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); result = (CAuthBase *)((CSmartPtr< CAuthBase > const *)arg1)->operator ->(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CAuthBase, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:PAuthBase___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase___nonzero__" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); result = (bool)((CSmartPtr< CAuthBase > const *)arg1)->operator bool(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:PAuthBase_IsNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase_IsNull" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); result = (bool)((CSmartPtr< CAuthBase > const *)arg1)->IsNull(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; CAuthBase *arg2 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CSmartPtr< CAuthBase > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PAuthBase_Attach",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase_Attach" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CAuthBase, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PAuthBase_Attach" "', argument " "2"" of type '" "CAuthBase *""'"); } arg2 = reinterpret_cast< CAuthBase * >(argp2); result = (CSmartPtr< CAuthBase > *) &(arg1)->Attach(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase_Release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PAuthBase_Release",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase_Release" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); (arg1)->Release(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase_GetPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CAuthBase *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PAuthBase_GetPtr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase_GetPtr" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); result = (CAuthBase *)((CSmartPtr< CAuthBase > const *)arg1)->GetPtr(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CAuthBase, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:PAuthBase_GetCount",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase_GetCount" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); result = (unsigned int)((CSmartPtr< CAuthBase > const *)arg1)->GetCount(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase_SetLoginInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; Csock *arg4 = (Csock *) 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 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:PAuthBase_SetLoginInfo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase_SetLoginInfo" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PAuthBase_SetLoginInfo" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PAuthBase_SetLoginInfo" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PAuthBase_SetLoginInfo" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PAuthBase_SetLoginInfo" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "PAuthBase_SetLoginInfo" "', argument " "4"" of type '" "Csock *""'"); } arg4 = reinterpret_cast< Csock * >(argp4); (*arg1)->SetLoginInfo((CString const &)*arg2,(CString const &)*arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase_AcceptLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 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:PAuthBase_AcceptLogin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase_AcceptLogin" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PAuthBase_AcceptLogin" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PAuthBase_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_PAuthBase_RefuseLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 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:PAuthBase_RefuseLogin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase_RefuseLogin" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PAuthBase_RefuseLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PAuthBase_RefuseLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (*arg1)->RefuseLogin((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase_GetUsername(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PAuthBase_GetUsername",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase_GetUsername" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); result = (CString *) &(*arg1)->GetUsername(); resultobj = SWIG_From_std_string((CString)(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase_GetPassword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PAuthBase_GetPassword",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase_GetPassword" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); result = (CString *) &(*arg1)->GetPassword(); resultobj = SWIG_From_std_string((CString)(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase_GetSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PAuthBase_GetSocket",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase_GetSocket" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); result = (Csock *)(*arg1)->GetSocket(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase_GetRemoteIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:PAuthBase_GetRemoteIP",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase_GetRemoteIP" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); result = (*arg1)->GetRemoteIP(); resultobj = SWIG_From_std_string((CString)(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PAuthBase_Invalidate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CAuthBase > *arg1 = (CSmartPtr< CAuthBase > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PAuthBase_Invalidate",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PAuthBase_Invalidate" "', argument " "1"" of type '" "CSmartPtr< CAuthBase > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp1); (*arg1)->Invalidate(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *PAuthBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CSmartPtrT_CAuthBase_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_WebSession__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_WebSession")) SWIG_fail; result = (CSmartPtr< CWebSession > *)new CSmartPtr< CWebSession >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSmartPtrT_CWebSession_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_WebSession__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CSmartPtr< CWebSession > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_WebSession",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WebSession" "', argument " "1"" of type '" "CWebSession *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); result = (CSmartPtr< CWebSession > *)new CSmartPtr< CWebSession >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSmartPtrT_CWebSession_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_WebSession__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CSmartPtr< CWebSession > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_WebSession",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WebSession" "', argument " "1"" of type '" "CSmartPtr< CWebSession > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_WebSession" "', argument " "1"" of type '" "CSmartPtr< CWebSession > const &""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); result = (CSmartPtr< CWebSession > *)new CSmartPtr< CWebSession >((CSmartPtr< CWebSession > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSmartPtrT_CWebSession_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_WebSession(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_WebSession__SWIG_0(self, args); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CWebSession, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_WebSession__SWIG_1(self, args); } } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_WebSession__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_WebSession'.\n" " Possible C/C++ prototypes are:\n" " CSmartPtr< CWebSession >::CSmartPtr()\n" " CSmartPtr< CWebSession >::CSmartPtr(CWebSession *)\n" " CSmartPtr< CWebSession >::CSmartPtr(CSmartPtr< CWebSession > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_WebSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_WebSession",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_WebSession" "', argument " "1"" of type '" "CSmartPtr< CWebSession > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession___ref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CWebSession *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:WebSession___ref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession___ref__" "', argument " "1"" of type '" "CSmartPtr< CWebSession > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); result = (CWebSession *) &((CSmartPtr< CWebSession > const *)arg1)->operator *(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSession, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession___deref__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CWebSession *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:WebSession___deref__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession___deref__" "', argument " "1"" of type '" "CSmartPtr< CWebSession > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); result = (CWebSession *)((CSmartPtr< CWebSession > const *)arg1)->operator ->(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSession, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:WebSession___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession___nonzero__" "', argument " "1"" of type '" "CSmartPtr< CWebSession > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); result = (bool)((CSmartPtr< CWebSession > const *)arg1)->operator bool(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:WebSession_IsNull",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_IsNull" "', argument " "1"" of type '" "CSmartPtr< CWebSession > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); result = (bool)((CSmartPtr< CWebSession > const *)arg1)->IsNull(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; CWebSession *arg2 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CSmartPtr< CWebSession > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:WebSession_Attach",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_Attach" "', argument " "1"" of type '" "CSmartPtr< CWebSession > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WebSession_Attach" "', argument " "2"" of type '" "CWebSession *""'"); } arg2 = reinterpret_cast< CWebSession * >(argp2); result = (CSmartPtr< CWebSession > *) &(arg1)->Attach(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession_Release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:WebSession_Release",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_Release" "', argument " "1"" of type '" "CSmartPtr< CWebSession > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); (arg1)->Release(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession_GetPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CWebSession *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:WebSession_GetPtr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_GetPtr" "', argument " "1"" of type '" "CSmartPtr< CWebSession > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); result = (CWebSession *)((CSmartPtr< CWebSession > const *)arg1)->GetPtr(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSession, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:WebSession_GetCount",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_GetCount" "', argument " "1"" of type '" "CSmartPtr< CWebSession > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); result = (unsigned int)((CSmartPtr< CWebSession > const *)arg1)->GetCount(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:WebSession_GetId",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_GetId" "', argument " "1"" of type '" "CSmartPtr< CWebSession > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); result = (CString *) &(*arg1)->GetId(); resultobj = SWIG_From_std_string((CString)(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession_GetIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:WebSession_GetIP",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_GetIP" "', argument " "1"" of type '" "CSmartPtr< CWebSession > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); result = (CString *) &(*arg1)->GetIP(); resultobj = SWIG_From_std_string((CString)(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession_GetUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CUser *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:WebSession_GetUser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_GetUser" "', argument " "1"" of type '" "CSmartPtr< CWebSession > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); result = (CUser *)(*arg1)->GetUser(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession_IsLoggedIn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:WebSession_IsLoggedIn",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_IsLoggedIn" "', argument " "1"" of type '" "CSmartPtr< CWebSession > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); result = (bool)(*arg1)->IsLoggedIn(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession_IsAdmin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:WebSession_IsAdmin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_IsAdmin" "', argument " "1"" of type '" "CSmartPtr< CWebSession > const *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); result = (bool)(*arg1)->IsAdmin(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession_SetUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; CUser *arg2 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CUser *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:WebSession_SetUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_SetUser" "', argument " "1"" of type '" "CSmartPtr< CWebSession > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WebSession_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_WebSession_ClearMessageLoops(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:WebSession_ClearMessageLoops",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_ClearMessageLoops" "', argument " "1"" of type '" "CSmartPtr< CWebSession > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); (*arg1)->ClearMessageLoops(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_WebSession_FillMessageLoops(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 0 ; CTemplate *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:WebSession_FillMessageLoops",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_FillMessageLoops" "', argument " "1"" of type '" "CSmartPtr< CWebSession > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WebSession_FillMessageLoops" "', argument " "2"" of type '" "CTemplate &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WebSession_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_WebSession_AddError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 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:WebSession_AddError",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_AddError" "', argument " "1"" of type '" "CSmartPtr< CWebSession > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WebSession_AddError" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WebSession_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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); return NULL; } SWIGINTERN PyObject *_wrap_WebSession_AddSuccess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< CWebSession > *arg1 = (CSmartPtr< CWebSession > *) 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:WebSession_AddSuccess",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSmartPtrT_CWebSession_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WebSession_AddSuccess" "', argument " "1"" of type '" "CSmartPtr< CWebSession > *""'"); } arg1 = reinterpret_cast< CSmartPtr< CWebSession > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WebSession_AddSuccess" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "WebSession_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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); return NULL; } SWIGINTERN PyObject *WebSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CSmartPtrT_CWebSession_t, 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 ; CConfig::EntryMapIterator 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((new CConfig::EntryMapIterator(static_cast< const CConfig::EntryMapIterator& >(result))), SWIGTYPE_p_CConfig__EntryMap__const_iterator, SWIG_POINTER_OWN | 0 ); 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 ; CConfig::EntryMapIterator 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((new CConfig::EntryMapIterator(static_cast< const CConfig::EntryMapIterator& >(result))), SWIGTYPE_p_CConfig__EntryMap__const_iterator, SWIG_POINTER_OWN | 0 ); 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 ; CConfig::SubConfigMapIterator 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_CConfig__SubConfigMap__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 ; CConfig::SubConfigMapIterator 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_CConfig__SubConfigMap__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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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 *_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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSSockAddr_SinPort" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSSockAddr_SinPort" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); return NULL; } SWIGINTERN PyObject *_wrap_GetCsockClassIdx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; if (!PyArg_ParseTuple(args,(char *)":GetCsockClassIdx")) SWIG_fail; result = (int)GetCsockClassIdx(); 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_NewPointerObj(SWIG_as_voidptr(&CS_BLOCKSIZE), SWIGTYPE_p_uint32_t, 0 ); 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 ; void *argp3 ; int res3 = 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_std_string(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); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint32_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "__Perror" "', argument " "3"" of type '" "uint32_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__Perror" "', argument " "3"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } __Perror((CString const &)*arg1,(char const *)arg2,arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) free((char*)arg1); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); 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 ; void *argp3 ; int res3 = 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); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint32_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CCron_StartMaxCycles" "', argument " "3"" of type '" "uint32_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CCron_StartMaxCycles" "', argument " "3"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } (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 ; void *argp3 ; int res3 = 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); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint32_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CCron_StartMaxCycles" "', argument " "3"" of type '" "uint32_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CCron_StartMaxCycles" "', argument " "3"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } (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_ConvertPtr(argv[2], 0, SWIGTYPE_p_uint32_t, 0); _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_ConvertPtr(argv[2], 0, SWIGTYPE_p_uint32_t, 0); _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_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_NewPointerObj((new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 ); 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_NewPointerObj((new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 ); 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 *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = (bool)(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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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< int,short,std::less< int >,std::allocator< std::pair< int 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< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_GatherFDsForSelect" "', argument " "2"" of type '" "std::map< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > &""'"); } arg2 = reinterpret_cast< std::map< int,short,std::less< int >,std::allocator< std::pair< int 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< int,short,std::less< int >,std::allocator< std::pair< int 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< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_FDsThatTriggered" "', argument " "2"" of type '" "std::map< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > const &""'"); } arg2 = reinterpret_cast< std::map< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > * >(argp2); result = (bool)(arg1)->FDsThatTriggered((std::map< int,short,std::less< int >,std::allocator< std::pair< int 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< int,short,std::less< int >,std::allocator< std::pair< int 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< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_CheckFDs" "', argument " "2"" of type '" "std::map< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > const &""'"); } arg2 = reinterpret_cast< std::map< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > * >(argp2); result = (bool)(arg1)->CheckFDs((std::map< int,short,std::less< int >,std::allocator< std::pair< int 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 ; int 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 '" "int""'"); } arg2 = static_cast< int >(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 ; 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: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 '" "int""'"); } arg2 = static_cast< int >(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint32_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint32_t, 0); _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_std_string(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_std_string(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_std_string(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< int,short,std::less< int >,std::allocator< std::pair< int 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< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_CheckFDs" "', argument " "2"" of type '" "std::map< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > const &""'"); } arg2 = reinterpret_cast< std::map< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > * >(argp2); (arg1)->CheckFDs((std::map< int,short,std::less< int >,std::allocator< std::pair< int 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< int,short,std::less< int >,std::allocator< std::pair< int 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< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_AssignFDs" "', argument " "2"" of type '" "std::map< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > &""'"); } arg2 = reinterpret_cast< std::map< int,short,std::less< int >,std::allocator< std::pair< int 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 ; void *argp2 ; int res2 = 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_std_string(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; } { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Csock" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Csock" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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 ; void *argp2 ; int res2 = 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_std_string(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; } { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Csock" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Csock" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_Csock__SWIG_3(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 0); _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 ; void *argp3 ; int res3 = 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_std_string(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; } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; 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_uint32_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock___lshift__" "', argument " "2"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_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_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 ; 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_uint64_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock___lshift__" "', argument " "2"" of type '" "uint64_t""'"); } else { uint64_t * temp = reinterpret_cast< uint64_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_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_uint32_t, 0); _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_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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint64_t, 0); _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_std_string(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 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; void *argp5 ; int res5 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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_std_string(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; } { res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_uint32_t, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Csock_Listen" "', argument " "5"" of type '" "uint32_t""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "5"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_t * >(argp5); arg5 = *temp; if (SWIG_IsNewObj(res5)) delete temp; } } 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)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; 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: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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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_std_string(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; } { res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_uint32_t, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Csock_Listen" "', argument " "5"" of type '" "uint32_t""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "5"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_t * >(argp5); arg5 = *temp; if (SWIG_IsNewObj(res5)) delete temp; } } result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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_std_string(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)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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 ; void *argp2 ; 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: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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 0); _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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 0); _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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 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_std_string(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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 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_std_string(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_uint32_t, 0); _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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 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_std_string(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_uint32_t, 0); _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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetLocalIP(); resultobj = SWIG_From_std_string((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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetRemoteIP(); resultobj = SWIG_From_std_string((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(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_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(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_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(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_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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(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 ; void *argp3 ; int res3 = 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); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint32_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_SetTimeout" "', argument " "3"" of type '" "uint32_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetTimeout" "', argument " "3"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } (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_ConvertPtr(argv[2], 0, SWIGTYPE_p_uint32_t, 0); _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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint32_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetTimeoutType" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetTimeoutType" "', argument " "2"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (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_NewPointerObj((new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 ); 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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint32_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetMaxBufferThreshold" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetMaxBufferThreshold" "', argument " "2"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (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_NewPointerObj((new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 ); 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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); 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_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); 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_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); 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 ; void *argp2 ; int res2 = 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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint64_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_GetAvgRead" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetAvgRead" "', argument " "2"" of type '" "uint64_t""'"); } else { uint64_t * temp = reinterpret_cast< uint64_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } result = (double)(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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (double)(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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint64_t, 0); _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)\n" " Csock::GetAvgRead()\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 ; void *argp2 ; int res2 = 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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint64_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_GetAvgWrite" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetAvgWrite" "', argument " "2"" of type '" "uint64_t""'"); } else { uint64_t * temp = reinterpret_cast< uint64_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } result = (double)(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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (double)(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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint64_t, 0); _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)\n" " Csock::GetAvgWrite()\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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetRemotePort(); resultobj = SWIG_NewPointerObj((new uint16_t(static_cast< const uint16_t& >(result))), SWIGTYPE_p_uint16_t, SWIG_POINTER_OWN | 0 ); 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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetLocalPort(); resultobj = SWIG_NewPointerObj((new uint16_t(static_cast< const uint16_t& >(result))), SWIGTYPE_p_uint16_t, SWIG_POINTER_OWN | 0 ); 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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetPort(); resultobj = SWIG_NewPointerObj((new uint16_t(static_cast< const uint16_t& >(result))), SWIGTYPE_p_uint16_t, SWIG_POINTER_OWN | 0 ); 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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (Csock::ECloseType)(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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(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_GetWriteBuffer(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_GetWriteBuffer",&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_GetWriteBuffer" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &(arg1)->GetWriteBuffer(); resultobj = SWIG_From_std_string((CString)(*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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &(arg1)->GetParentSockName(); resultobj = SWIG_From_std_string((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 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint32_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetRate" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetRate" "', argument " "2"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint64_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_SetRate" "', argument " "3"" of type '" "uint64_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetRate" "', argument " "3"" of type '" "uint64_t""'"); } else { uint64_t * temp = reinterpret_cast< uint64_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } (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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetRateBytes(); resultobj = SWIG_NewPointerObj((new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 ); 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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetRateTime(); resultobj = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); 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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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 ; void *argp3 ; int res3 = 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_std_string(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; } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_ConnectionFrom" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConnectionFrom" "', argument " "3"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } result = (bool)(arg1)->ConnectionFrom((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; void *argp3 ; int res3 = 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_std_string(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; } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_Listening" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listening" "', argument " "3"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } (arg1)->Listening((CString const &)*arg2,arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } 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 = (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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (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)\n" " Csock::GetTimeSinceLastDataTransaction()\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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (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 *""'"); } 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 = (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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (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)\n" " Csock::GetNextCheckTimeout()\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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (int)(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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } 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)(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 ; void *argp2 ; int res2 = 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_std_string(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; } { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSConnection" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSConnection" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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 ; void *argp2 ; int res2 = 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_std_string(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; } { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSConnection" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSConnection" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CSConnection__SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 0); _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_std_string((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_std_string((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_std_string((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_NewPointerObj((new uint16_t(static_cast< const uint16_t& >(result))), SWIGTYPE_p_uint16_t, SWIG_POINTER_OWN | 0 ); 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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSConnection_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSConnection_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (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 ; void *argp2 ; int res2 = 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_std_string(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; } { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSSSLConnection" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSSSLConnection" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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 ; void *argp2 ; int res2 = 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_std_string(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; } { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSSSLConnection" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSSSLConnection" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CSSSLConnection__SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 0); _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 ; void *argp1 ; int res1 = 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; { res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); return NULL; } SWIGINTERN PyObject *_wrap_new_CSListener__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; uint16_t arg1 ; CString *arg2 = 0 ; void *argp1 ; int res1 = 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; { res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); return NULL; } SWIGINTERN PyObject *_wrap_new_CSListener__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; uint16_t arg1 ; void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; CSListener *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CSListener",&obj0)) SWIG_fail; { res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } 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_ConvertPtr(argv[0], 0, SWIGTYPE_p_uint16_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CSListener__SWIG_2(self, args); } } if (argc == 2) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_uint16_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_ConvertPtr(argv[0], 0, SWIGTYPE_p_uint16_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_NewPointerObj((new uint16_t(static_cast< const uint16_t& >(result))), SWIGTYPE_p_uint16_t, SWIG_POINTER_OWN | 0 ); 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_std_string((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_std_string((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_NewPointerObj((new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 ); 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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSListener_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSListener_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint32_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSListener_SetTimeout" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSListener_SetTimeout" "', argument " "2"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (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 ; void *argp3 ; int res3 = 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_std_string(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; } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } 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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; void *argp3 ; int res3 = 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_std_string(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; } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_uint16_t, 0); _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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_uint16_t, 0); _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 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint64_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "2"" of type '" "uint64_t""'"); } else { uint64_t * temp = reinterpret_cast< uint64_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint64_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "3"" of type '" "uint64_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "3"" of type '" "uint64_t""'"); } else { uint64_t * temp = reinterpret_cast< uint64_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { 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 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint64_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "2"" of type '" "uint64_t""'"); } else { uint64_t * temp = reinterpret_cast< uint64_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint64_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "3"" of type '" "uint64_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "3"" of type '" "uint64_t""'"); } else { uint64_t * temp = reinterpret_cast< uint64_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } (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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint64_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_uint64_t, 0); _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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint64_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_uint64_t, 0); _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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_FindSockByRemotePort" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FindSockByRemotePort" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_FindSockByLocalPort" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FindSockByLocalPort" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = (int)(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 *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = (arg1)->GetSelectTimeout(); resultobj = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); 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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint64_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_SetSelectTimeout" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_SetSelectTimeout" "', argument " "2"" of type '" "uint64_t""'"); } else { uint64_t * temp = reinterpret_cast< uint64_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (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_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); 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_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_FDSetCheck(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; int arg2 ; std::map< int,short,std::less< int >,std::allocator< std::pair< int 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 '" "int""'"); } arg2 = static_cast< int >(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< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FDSetCheck" "', argument " "3"" of type '" "std::map< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > &""'"); } arg3 = reinterpret_cast< std::map< int,short,std::less< int >,std::allocator< std::pair< int 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 ; int arg2 ; std::map< int,short,std::less< int >,std::allocator< std::pair< int 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 '" "int""'"); } arg2 = static_cast< int >(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< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FDHasCheck" "', argument " "3"" of type '" "std::map< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > &""'"); } arg3 = reinterpret_cast< std::map< int,short,std::less< int >,std::allocator< std::pair< int 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 ; void *argp3 ; int res3 = 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_std_string(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; } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZNCSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } 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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; void *argp3 ; int res3 = 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_std_string(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; } { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZNCSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } result = (CZNCSock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCSock, 0 | 0 ); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_uint16_t, 0); _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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_uint16_t, 0); _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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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 *""'"); } 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)(arg1)->ConvertAddress((sockaddr_storage const *)arg2,arg3,*arg4,arg5); resultobj = SWIG_From_int(static_cast< int >(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 *_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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res7)) free((char*)arg7); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res7)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res7)) free((char*)arg7); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res7)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; void *argp5 ; int res5 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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_std_string(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; } { res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_uint32_t, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CSocket_Listen" "', argument " "5"" of type '" "uint32_t""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "5"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_t * >(argp5); arg5 = *temp; if (SWIG_IsNewObj(res5)) delete temp; } } 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)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; 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: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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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_std_string(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; } { res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_uint32_t, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CSocket_Listen" "', argument " "5"" of type '" "uint32_t""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "5"" of type '" "uint32_t""'"); } else { uint32_t * temp = reinterpret_cast< uint32_t * >(argp5); arg5 = *temp; if (SWIG_IsNewObj(res5)) delete temp; } } result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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_std_string(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)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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 ; void *argp2 ; 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: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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint16_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { uint16_t * temp = reinterpret_cast< uint16_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 0); _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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 0); _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 == 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 == 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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 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_std_string(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSocket_Listen__SWIG_0_2(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 == 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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 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_std_string(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_uint32_t, 0); _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_ConvertPtr(argv[1], 0, SWIGTYPE_p_uint16_t, 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_std_string(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_uint32_t, 0); _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_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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CString, 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_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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string((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_std_string((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_std_string((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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string((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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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 *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); result = (CFile::EFileAttr)(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 *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); result = (bool)(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_std_string(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_std_string(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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string(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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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_std_string((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_std_string(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_std_string(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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string(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_std_string(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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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 *""'"); } 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)(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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; CModCommand::ModCmdFunc arg2 ; 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 ; CModCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:new_CModCommand",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_std_string(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; } { int res = SWIG_ConvertMember(obj1, SWIG_as_voidptr(&arg2), 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 " "2"" of type '" "CModCommand::ModCmdFunc""'"); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return NULL; } SWIGINTERN PyObject *_wrap_new_CModCommand__SWIG_2(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[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 == 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_2(self, args); } } if (argc == 4) { int _v; int res = SWIG_AsPtr_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_m_CModule__f_r_q_const__CString__void, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[3], (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 &,CModCommand::ModCmdFunc,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_std_string((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 ; CModCommand::ModCmdFunc 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::ModCmdFunc)((CModCommand const *)arg1)->GetFunction(); resultobj = SWIG_NewMemberObj(SWIG_as_voidptr(&result), sizeof(CModCommand::ModCmdFunc), SWIGTYPE_m_CModule__f_r_q_const__CString__void); 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_std_string((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_std_string((CString)(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModCommand_Call(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModCommand *arg1 = (CModCommand *) 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 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CModCommand_Call",&obj0,&obj1,&obj2)) 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); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModCommand_Call" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModCommand_Call" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModCommand_Call" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ((CModCommand const *)arg1)->Call(arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); 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_std_string(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_std_string(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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string((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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; SwigValueWrapper< CSmartPtr< 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_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_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_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_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_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_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_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_std_string(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)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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_std_string(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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); 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_std_string(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)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_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_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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string((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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res6)) free((char*)arg6); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res6)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); 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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[4], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_AddCommand__SWIG_1(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"); 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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string((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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string((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 *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CUser *)(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 *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CIRCNetwork *)(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 *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CClient *)(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 *""'"); } arg1 = reinterpret_cast< CModule * >(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_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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnLoginAttempt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CSmartPtr< 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnLoginAttempt" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnLoginAttempt" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } else { CSmartPtr< CAuthBase > * temp = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (CUser *)(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 *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (CIRCNetwork *)(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 *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (CClient *)(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_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_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_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_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_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_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_std_string(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_std_string(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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); 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_std_string(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)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_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_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_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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnLoginAttempt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CSmartPtr< 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnLoginAttempt" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnLoginAttempt" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } else { CSmartPtr< CAuthBase > * temp = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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 *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (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 ; bool arg2 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; 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:CChan_JoinUser",&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_JoinUser" "', 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_JoinUser" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_JoinUser" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_JoinUser" "', 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 '" "CChan_JoinUser" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); (arg1)->JoinUser(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); return NULL; } SWIGINTERN PyObject *_wrap_CChan_JoinUser__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 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 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CChan_JoinUser",&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_JoinUser" "', 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_JoinUser" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_JoinUser" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_JoinUser" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->JoinUser(arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); return NULL; } SWIGINTERN PyObject *_wrap_CChan_JoinUser__SWIG_2(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_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); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_JoinUser" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->JoinUser(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_JoinUser__SWIG_3(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[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_CChan, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_JoinUser__SWIG_3(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_JoinUser__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_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_JoinUser__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_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_std_string(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_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(bool,CString const &,CClient *)\n" " CChan::JoinUser(bool,CString const &)\n" " CChan::JoinUser(bool)\n" " CChan::JoinUser()\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_AttachUser(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_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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string((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_std_string((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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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(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_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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string((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_std_string((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) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_GetModeArg__SWIG_0(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_unsigned_SS_char(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CChan_GetModeArg__SWIG_1(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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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___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_std_string((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_std_string((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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res1)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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 *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (arg1)->GetLocalDCCIP(); resultobj = SWIG_From_std_string((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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_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 *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (std::vector< CClient *,std::allocator< CClient * > > *) &(arg1)->GetUserClients(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); 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 ; SwigValueWrapper< 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 *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (arg1)->GetAllClients(); resultobj = SWIG_NewPointerObj((new std::vector< CClient *,std::allocator< CClient * > >(static_cast< const std::vector< CClient *,std::allocator< CClient * > >& >(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_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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_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_std_string((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_std_string((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___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_std_string((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_std_string((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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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 *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (arg1)->GetNetworkPath(); resultobj = SWIG_From_std_string((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) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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 *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (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 *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CUser *)(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_std_string((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 *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (std::vector< CClient *,std::allocator< CClient * > > *) &(arg1)->GetClients(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); return resultobj; fail: 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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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)) free((char*)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_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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string((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_std_string((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_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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_AddQueryBuffer__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_AddQueryBuffer",&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_AddQueryBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_AddQueryBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddQueryBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddQueryBuffer((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddQueryBuffer__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_AddQueryBuffer",&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_AddQueryBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AddQueryBuffer((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddQueryBuffer(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_AddQueryBuffer__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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_AddQueryBuffer__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_AddQueryBuffer'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::AddQueryBuffer(CString const &,CString const &)\n" " CIRCNetwork::AddQueryBuffer(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateQueryBuffer__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_UpdateQueryBuffer",&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_UpdateQueryBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_std_string(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->UpdateQueryBuffer((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateQueryBuffer__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_UpdateQueryBuffer",&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_UpdateQueryBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->UpdateQueryBuffer((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateQueryBuffer(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_UpdateQueryBuffer__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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_UpdateQueryBuffer__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_UpdateQueryBuffer'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::UpdateQueryBuffer(CString const &,CString const &,CString const &)\n" " CIRCNetwork::UpdateQueryBuffer(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_ClearQueryBuffer(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_ClearQueryBuffer",&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_ClearQueryBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->ClearQueryBuffer(); 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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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_std_string((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_std_string((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 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CAuthBase",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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; 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 ; Csock *arg4 = (Csock *) 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 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CAuthBase_SetLoginInfo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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_std_string(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_std_string(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_Csock, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CAuthBase_SetLoginInfo" "', argument " "4"" of type '" "Csock *""'"); } arg4 = reinterpret_cast< Csock * >(argp4); (arg1)->SetLoginInfo((CString const &)*arg2,(CString const &)*arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CAuthBase_AcceptLogin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(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 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CAuthBase_RefuseLogin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CAuthBase_GetUsername",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(); resultobj = SWIG_From_std_string((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 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CAuthBase_GetPassword",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(); resultobj = SWIG_From_std_string((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 ; PyObject * obj0 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CAuthBase_GetSocket",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(); 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 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CAuthBase_GetRemoteIP",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(); resultobj = SWIG_From_std_string((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 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CAuthBase_Invalidate",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(); 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_CAuthBase, 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_std_string(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_std_string(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); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CClientAuth, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CClientAuth",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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; 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 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClientAuth_Invalidate",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(); 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 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClientAuth_AcceptedLogin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(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 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClientAuth_RefusedLogin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_CClientAuth, 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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string((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_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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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 *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(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)(arg1)->IsCapEnabled((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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(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_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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (std::vector< CClient *,std::allocator< CClient * > > *) &(arg1)->GetClients(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); 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 *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (arg1)->GetFullName(); resultobj = SWIG_From_std_string((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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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 ; bool arg3 ; EAddrType arg4 ; CListener::EAcceptType arg5 ; unsigned short val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; CListener *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_CListener",&obj0,&obj1,&obj2,&obj3,&obj4)) 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_std_string(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; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CListener" "', 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 '" "new_CListener" "', argument " "4"" of type '" "EAddrType""'"); } arg4 = static_cast< EAddrType >(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 '" "CListener::EAcceptType""'"); } arg5 = static_cast< CListener::EAcceptType >(val5); result = (CListener *)new CListener(arg1,(CString const &)*arg2,arg3,arg4,arg5); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CListener, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); 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_std_string((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_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 = (CListener *) 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 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CIncomingConnection *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CIncomingConnection",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_std_string(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); result = (CIncomingConnection *)new CIncomingConnection((CString const &)*arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIncomingConnection, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); 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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; 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_OnLogin",&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_OnLogin" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(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_std_string(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; } result = (bool)(arg1)->OnLogin((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)ptr); } result = (bool)(arg1)->PrintFile((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string((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_std_string((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_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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string(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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); return NULL; } SWIGINTERN PyObject *_wrap_new_CTemplate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSmartPtr< 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_CSmartPtrT_CTemplateOptions_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CTemplate" "', argument " "1"" of type '" "CSmartPtr< CTemplateOptions > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTemplate" "', argument " "1"" of type '" "CSmartPtr< CTemplateOptions > const &""'"); } arg1 = reinterpret_cast< CSmartPtr< 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((CSmartPtr< 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; CSmartPtr< 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_CSmartPtrT_CTemplateOptions_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CTemplate" "', argument " "1"" of type '" "CSmartPtr< CTemplateOptions > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTemplate" "', argument " "1"" of type '" "CSmartPtr< CTemplateOptions > const &""'"); } arg1 = reinterpret_cast< CSmartPtr< CTemplateOptions > * >(argp1); result = (CTemplate *)new CTemplate((CSmartPtr< 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_CSmartPtrT_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_std_string(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_CSmartPtrT_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(CSmartPtr< CTemplateOptions > const &,CTemplate *)\n" " CTemplate::CTemplate(CSmartPtr< 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< CSmartPtr< 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_CSmartPtrT_CTemplateTagHandler_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_AddTagHandler" "', argument " "2"" of type '" "CSmartPtr< CTemplateTagHandler >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_AddTagHandler" "', argument " "2"" of type '" "CSmartPtr< CTemplateTagHandler >""'"); } else { CSmartPtr< CTemplateTagHandler > * temp = reinterpret_cast< CSmartPtr< 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< CSmartPtr< CTemplateTagHandler >,std::allocator< CSmartPtr< 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< CSmartPtr< CTemplateTagHandler >,std::allocator< CSmartPtr< CTemplateTagHandler > > > *) &(arg1)->GetTagHandlers(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CSmartPtrT_CTemplateTagHandler_t_std__allocatorT_CSmartPtrT_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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSession, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CWebSession",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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; 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 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_GetId",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(); resultobj = SWIG_From_std_string((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 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_GetIP",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(); resultobj = SWIG_From_std_string((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 ; PyObject * obj0 = 0 ; CUser *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_GetUser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | 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 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_IsLoggedIn",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(); 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 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_IsAdmin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(); resultobj = SWIG_From_bool(static_cast< bool >(result)); 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 ; 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; res1 = SWIG_ConvertPtr(obj0, &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(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 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_ClearMessageLoops",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(); 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 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CWebSession_FillMessageLoops",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &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(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 ; 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; res1 = SWIG_ConvertPtr(obj0, &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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; 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; res1 = SWIG_ConvertPtr(obj0, &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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_CWebSession, 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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string((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_std_string((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; CWebSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CWebSock")) SWIG_fail; result = (CWebSock *)new CWebSock(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSock, SWIG_POINTER_NEW | 0 ); return resultobj; fail: 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 ; 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_OnLogin",&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_OnLogin" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(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_std_string(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; } result = (bool)(arg1)->OnLogin((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _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_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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); 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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CString, 0); _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_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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; CSmartPtr< 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(); resultobj = SWIG_NewPointerObj((new CSmartPtr< CWebSession >(static_cast< const CSmartPtr< CWebSession >& >(result))), SWIGTYPE_p_CSmartPtrT_CWebSession_t, SWIG_POINTER_OWN | 0 ); 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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res1)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_GetModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModule *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSock_GetModule",&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_GetModule" "', argument " "1"" of type '" "CWebSock const *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); result = (CModule *)((CWebSock const *)arg1)->GetModule(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | 0 ); return resultobj; fail: 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_std_string((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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string((CString)(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; 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_ParseConfig",&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_ParseConfig" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string(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; } result = (bool)(arg1)->ParseConfig((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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 ; CSmartPtr< 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AuthUser" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AuthUser" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } else { CSmartPtr< CAuthBase > * temp = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_FilterUncommonModules(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_FilterUncommonModules",&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_FilterUncommonModules" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(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 '" "CZNC_FilterUncommonModules" "', 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 '" "CZNC_FilterUncommonModules" "', 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); result = (arg1)->FilterUncommonModules(*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); 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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_std_string((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_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_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_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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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 ; bool arg4 ; EAddrType arg5 ; CListener::EAcceptType arg6 ; CString *arg7 = 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 ; int val6 ; int ecode6 = 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:CZNC_AddListener",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) 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_std_string(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; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CZNC_AddListener" "', 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 '" "CZNC_AddListener" "', 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 '" "CZNC_AddListener" "', argument " "6"" of type '" "CListener::EAcceptType""'"); } arg6 = static_cast< CListener::EAcceptType >(val6); { 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 sError"); } } result = (bool)(arg1)->AddListener(arg2,(CString const &)*arg3,arg4,arg5,arg6,*arg7); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); return NULL; } SWIGINTERN PyObject *_wrap_CZNC_AddListener(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_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 == 7) { 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_std_string(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) { { 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_CString, 0); _v = SWIG_CheckState(res); 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 &,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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)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_std_string(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)) free((char*)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_std_string(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 *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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string(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_std_string((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_std_string((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_std_string((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_std_string((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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg1); return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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_std_string(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string((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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string((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_std_string((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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_OnChanPermission(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 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:CPyModule_OnChanPermission",&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_OnChanPermission" "', 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_OnChanPermission" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_OnChanPermission" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_OnChanPermission" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_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 '" "CPyModule_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 '" "CPyModule_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_CPyModule_OnOp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 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:CPyModule_OnOp",&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_OnOp" "', 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_OnOp" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_OnOp" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_OnOp" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_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_CPyModule_OnDeop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 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:CPyModule_OnDeop",&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_OnDeop" "', 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_OnDeop" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_OnDeop" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_OnDeop" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_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_CPyModule_OnVoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 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:CPyModule_OnVoice",&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_OnVoice" "', 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_OnVoice" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_OnVoice" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_OnVoice" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_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_CPyModule_OnDevoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 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:CPyModule_OnDevoice",&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_OnDevoice" "', 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_OnDevoice" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_OnDevoice" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_OnDevoice" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_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_CPyModule_OnMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 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:CPyModule_OnMode",&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_OnMode" "', 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_OnMode" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_OnMode" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_OnMode" "', argument " "4"" of type '" "char""'"); } arg4 = static_cast< char >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_std_string(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CPyModule_OnMode" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_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 '" "CPyModule_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)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res5)) free((char*)arg5); return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnRawMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 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:CPyModule_OnRawMode",&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_OnRawMode" "', 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_OnRawMode" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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 '" "CPyModule_OnRawMode" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnRawMode" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_std_string(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnRawMode" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnRawMode" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_std_string(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CPyModule_OnRawMode" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); 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_std_string(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)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); 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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string(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)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)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 ; CSmartPtr< 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); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CSmartPtrT_CAuthBase_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnLoginAttempt" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnLoginAttempt" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } else { CSmartPtr< CAuthBase > * temp = reinterpret_cast< CSmartPtr< CAuthBase > * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } 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_std_string(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_std_string(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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); return resultobj; fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string(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_std_string(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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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_std_string(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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); return resultobj; fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string((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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string((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_std_string(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)) free((char*)ptr); } { CString *ptr = (CString *)0; int res = SWIG_AsPtr_std_string(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)) free((char*)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_std_string(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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_std_string(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)) free((char*)arg2); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string((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 = (arg1)->erase(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 = (arg1)->erase(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 = (arg1)->insert(arg2,(std::vector< std::pair< CString,CString > >::value_type 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; } (arg1)->insert(arg2,arg3,(std::vector< std::pair< CString,CString > >::value_type 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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< CSmartPtr< CWebSubPage > > result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::value_type(static_cast< const std::vector< CSmartPtr< CWebSubPage > >::value_type& >(result))), SWIGTYPE_p_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::difference_type arg2 ; std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::difference_type""'"); } arg3 = static_cast< std::vector< CSmartPtr< CWebSubPage > >::difference_type >(val3); try { result = (std::vector< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::difference_type arg2 ; std::vector< CSmartPtr< CWebSubPage > >::difference_type arg3 ; std::vector< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::difference_type""'"); } arg3 = static_cast< std::vector< CSmartPtr< CWebSubPage > >::difference_type >(val3); { std::vector,std::allocator< CSmartPtr< CWebSubPage > > > *ptr = (std::vector,std::allocator< CSmartPtr< 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< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< CWebSubPage > > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages___setslice__" "', argument " "4"" of type '" "std::vector< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< CWebSubPage > > > const &""'"); } arg4 = ptr; } try { std_vector_Sl_TWebSubPage_Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::vector< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::difference_type arg2 ; std::vector< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::difference_type""'"); } arg3 = static_cast< std::vector< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::difference_type,std::vector< CSmartPtr< CWebSubPage > >::difference_type,std::vector< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< CWebSubPage > > > const &)\n" " std::vector< TWebSubPage >::__setslice__(std::vector< CSmartPtr< CWebSubPage > >::difference_type,std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::difference_type arg2 ; std::vector< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::difference_type""'"); } arg3 = static_cast< std::vector< CSmartPtr< 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< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< CWebSubPage > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VWebSubPages___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > > > *ptr = (std::vector,std::allocator< CSmartPtr< 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< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< CWebSubPage > > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages___setitem__" "', argument " "3"" of type '" "std::vector< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< CWebSubPage > > > const &""'"); } arg3 = ptr; } try { std_vector_Sl_TWebSubPage_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< CSmartPtr< CWebSubPage > >::difference_type >(val2); try { result = (std::vector< CSmartPtr< CWebSubPage > >::value_type *) &std_vector_Sl_TWebSubPage_Sg____getitem____SWIG_1((std::vector< CSmartPtr< 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_CSmartPtrT_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< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::difference_type arg2 ; std::vector< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< CSmartPtr< CWebSubPage > >::difference_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CSmartPtrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VWebSubPages___setitem__" "', argument " "3"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages___setitem__" "', argument " "3"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } arg3 = reinterpret_cast< std::vector< CSmartPtr< CWebSubPage > >::value_type * >(argp3); try { std_vector_Sl_TWebSubPage_Sg____setitem____SWIG_2(arg1,arg2,(CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< 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_CSmartPtrT_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< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< CWebSubPage > > > const &)\n" " std::vector< TWebSubPage >::__setitem__(PySliceObject *)\n" " std::vector< TWebSubPage >::__setitem__(std::vector< CSmartPtr< CWebSubPage > >::difference_type,std::vector< CSmartPtr< 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< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VWebSubPages_append" "', argument " "2"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_append" "', argument " "2"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } arg2 = reinterpret_cast< std::vector< CSmartPtr< CWebSubPage > >::value_type * >(argp2); std_vector_Sl_TWebSubPage_Sg__append(arg1,(CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > > > *ptr = (std::vector,std::allocator< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > > > result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::allocator_type(static_cast< const std::vector< CSmartPtr< CWebSubPage > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::reverse_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::reverse_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::size_type""'"); } arg1 = static_cast< std::vector< CSmartPtr< CWebSubPage > >::size_type >(val1); result = (std::vector< TWebSubPage > *)new std::vector< TWebSubPage >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::size_type""'"); } arg2 = static_cast< std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::iterator > arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::vector< CSmartPtr< CWebSubPage > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"OO:VWebSubPages_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::iterator""'"); } } result = (arg1)->erase(arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::iterator > arg2 ; SwigValueWrapper< std::vector< CSmartPtr< 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< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::iterator""'"); } } result = (arg1)->erase(arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::iterator)\n" " std::vector< TWebSubPage >::erase(std::vector< CSmartPtr< CWebSubPage > >::iterator,std::vector< CSmartPtr< CWebSubPage > >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_VWebSubPages__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CSmartPtr< CWebSubPage > >::size_type arg1 ; std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::size_type""'"); } arg1 = static_cast< std::vector< CSmartPtr< CWebSubPage > >::size_type >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CSmartPtrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VWebSubPages" "', argument " "2"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VWebSubPages" "', argument " "2"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } arg2 = reinterpret_cast< std::vector< CSmartPtr< CWebSubPage > >::value_type * >(argp2); result = (std::vector< TWebSubPage > *)new std::vector< TWebSubPage >(arg1,(std::vector< CSmartPtr< CWebSubPage > >::value_type const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::size_type)\n" " std::vector< TWebSubPage >::vector(std::vector< CSmartPtr< CWebSubPage > >::size_type,std::vector< CSmartPtr< 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< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_CSmartPtrT_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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::value_type const &""'"); } arg2 = reinterpret_cast< std::vector< CSmartPtr< CWebSubPage > >::value_type * >(argp2); (arg1)->push_back((std::vector< CSmartPtr< 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< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::value_type *) &((std::vector< TWebSubPage > const *)arg1)->front(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSmartPtrT_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< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::value_type *) &((std::vector< TWebSubPage > const *)arg1)->back(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::size_type arg2 ; std::vector< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::size_type""'"); } arg2 = static_cast< std::vector< CSmartPtr< CWebSubPage > >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CSmartPtrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VWebSubPages_assign" "', argument " "3"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_assign" "', argument " "3"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } arg3 = reinterpret_cast< std::vector< CSmartPtr< CWebSubPage > >::value_type * >(argp3); (arg1)->assign(arg2,(std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::size_type arg2 ; std::vector< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::size_type""'"); } arg2 = static_cast< std::vector< CSmartPtr< CWebSubPage > >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CSmartPtrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VWebSubPages_resize" "', argument " "3"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_resize" "', argument " "3"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } arg3 = reinterpret_cast< std::vector< CSmartPtr< CWebSubPage > >::value_type * >(argp3); (arg1)->resize(arg2,(std::vector< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< 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_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::size_type)\n" " std::vector< TWebSubPage >::resize(std::vector< CSmartPtr< CWebSubPage > >::size_type,std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::iterator > arg2 ; std::vector< CSmartPtr< 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< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CSmartPtrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VWebSubPages_insert" "', argument " "3"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_insert" "', argument " "3"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } arg3 = reinterpret_cast< std::vector< CSmartPtr< CWebSubPage > >::value_type * >(argp3); result = (arg1)->insert(arg2,(std::vector< CSmartPtr< CWebSubPage > >::value_type const &)*arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::iterator > arg2 ; std::vector< CSmartPtr< CWebSubPage > >::size_type arg3 ; std::vector< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::size_type""'"); } arg3 = static_cast< std::vector< CSmartPtr< CWebSubPage > >::size_type >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CSmartPtrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VWebSubPages_insert" "', argument " "4"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_insert" "', argument " "4"" of type '" "std::vector< CSmartPtr< CWebSubPage > >::value_type const &""'"); } arg4 = reinterpret_cast< std::vector< CSmartPtr< CWebSubPage > >::value_type * >(argp4); (arg1)->insert(arg2,arg3,(std::vector< CSmartPtr< CWebSubPage > >::value_type 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< CSmartPtr< 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_CSmartPtrT_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< CSmartPtr< 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_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::iterator,std::vector< CSmartPtr< CWebSubPage > >::value_type const &)\n" " std::vector< TWebSubPage >::insert(std::vector< CSmartPtr< CWebSubPage > >::iterator,std::vector< CSmartPtr< CWebSubPage > >::size_type,std::vector< CSmartPtr< 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< CSmartPtr< 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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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< CSmartPtr< CWebSubPage > >::size_type""'"); } arg2 = static_cast< std::vector< CSmartPtr< 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< CSmartPtr< CWebSubPage > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_capacity",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_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_std_string(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_std_string(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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); return resultobj; fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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< CSmartPtr< CWebSubPage > > result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CreateWebSubPage_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_std_string(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_std_string(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_CSmartPtrT_CWebSubPage_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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 *)"new_CString", _wrap_new_CString, METH_VARARGS, NULL}, { (char *)"delete_CString", _wrap_delete_CString, METH_VARARGS, NULL}, { (char *)"CString_swigregister", CString_swigregister, 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 *)"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_GetTimezones", _wrap_CUtils_GetTimezones, 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_PAuthBase", _wrap_new_PAuthBase, METH_VARARGS, NULL}, { (char *)"delete_PAuthBase", _wrap_delete_PAuthBase, METH_VARARGS, NULL}, { (char *)"PAuthBase___ref__", _wrap_PAuthBase___ref__, METH_VARARGS, NULL}, { (char *)"PAuthBase___deref__", _wrap_PAuthBase___deref__, METH_VARARGS, NULL}, { (char *)"PAuthBase___nonzero__", _wrap_PAuthBase___nonzero__, METH_VARARGS, NULL}, { (char *)"PAuthBase_IsNull", _wrap_PAuthBase_IsNull, METH_VARARGS, NULL}, { (char *)"PAuthBase_Attach", _wrap_PAuthBase_Attach, METH_VARARGS, NULL}, { (char *)"PAuthBase_Release", _wrap_PAuthBase_Release, METH_VARARGS, NULL}, { (char *)"PAuthBase_GetPtr", _wrap_PAuthBase_GetPtr, METH_VARARGS, NULL}, { (char *)"PAuthBase_GetCount", _wrap_PAuthBase_GetCount, METH_VARARGS, NULL}, { (char *)"PAuthBase_SetLoginInfo", _wrap_PAuthBase_SetLoginInfo, METH_VARARGS, NULL}, { (char *)"PAuthBase_AcceptLogin", _wrap_PAuthBase_AcceptLogin, METH_VARARGS, NULL}, { (char *)"PAuthBase_RefuseLogin", _wrap_PAuthBase_RefuseLogin, METH_VARARGS, NULL}, { (char *)"PAuthBase_GetUsername", _wrap_PAuthBase_GetUsername, METH_VARARGS, NULL}, { (char *)"PAuthBase_GetPassword", _wrap_PAuthBase_GetPassword, METH_VARARGS, NULL}, { (char *)"PAuthBase_GetSocket", _wrap_PAuthBase_GetSocket, METH_VARARGS, NULL}, { (char *)"PAuthBase_GetRemoteIP", _wrap_PAuthBase_GetRemoteIP, METH_VARARGS, NULL}, { (char *)"PAuthBase_Invalidate", _wrap_PAuthBase_Invalidate, METH_VARARGS, NULL}, { (char *)"PAuthBase_swigregister", PAuthBase_swigregister, METH_VARARGS, NULL}, { (char *)"new_WebSession", _wrap_new_WebSession, METH_VARARGS, NULL}, { (char *)"delete_WebSession", _wrap_delete_WebSession, METH_VARARGS, NULL}, { (char *)"WebSession___ref__", _wrap_WebSession___ref__, METH_VARARGS, NULL}, { (char *)"WebSession___deref__", _wrap_WebSession___deref__, METH_VARARGS, NULL}, { (char *)"WebSession___nonzero__", _wrap_WebSession___nonzero__, METH_VARARGS, NULL}, { (char *)"WebSession_IsNull", _wrap_WebSession_IsNull, METH_VARARGS, NULL}, { (char *)"WebSession_Attach", _wrap_WebSession_Attach, METH_VARARGS, NULL}, { (char *)"WebSession_Release", _wrap_WebSession_Release, METH_VARARGS, NULL}, { (char *)"WebSession_GetPtr", _wrap_WebSession_GetPtr, METH_VARARGS, NULL}, { (char *)"WebSession_GetCount", _wrap_WebSession_GetCount, METH_VARARGS, NULL}, { (char *)"WebSession_GetId", _wrap_WebSession_GetId, METH_VARARGS, NULL}, { (char *)"WebSession_GetIP", _wrap_WebSession_GetIP, METH_VARARGS, NULL}, { (char *)"WebSession_GetUser", _wrap_WebSession_GetUser, METH_VARARGS, NULL}, { (char *)"WebSession_IsLoggedIn", _wrap_WebSession_IsLoggedIn, METH_VARARGS, NULL}, { (char *)"WebSession_IsAdmin", _wrap_WebSession_IsAdmin, METH_VARARGS, NULL}, { (char *)"WebSession_SetUser", _wrap_WebSession_SetUser, METH_VARARGS, NULL}, { (char *)"WebSession_ClearMessageLoops", _wrap_WebSession_ClearMessageLoops, METH_VARARGS, NULL}, { (char *)"WebSession_FillMessageLoops", _wrap_WebSession_FillMessageLoops, METH_VARARGS, NULL}, { (char *)"WebSession_AddError", _wrap_WebSession_AddError, METH_VARARGS, NULL}, { (char *)"WebSession_AddSuccess", _wrap_WebSession_AddSuccess, METH_VARARGS, NULL}, { (char *)"WebSession_swigregister", WebSession_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 *)"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 *)"GetCsockClassIdx", _wrap_GetCsockClassIdx, 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_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_GetWriteBuffer", _wrap_Csock_GetWriteBuffer, 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_swigregister", CZNCSock_swigregister, 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_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_OnChanPermission", _wrap_CModule_OnChanPermission, METH_VARARGS, NULL}, { (char *)"CModule_OnOp", _wrap_CModule_OnOp, METH_VARARGS, NULL}, { (char *)"CModule_OnDeop", _wrap_CModule_OnDeop, METH_VARARGS, NULL}, { (char *)"CModule_OnVoice", _wrap_CModule_OnVoice, METH_VARARGS, NULL}, { (char *)"CModule_OnDevoice", _wrap_CModule_OnDevoice, METH_VARARGS, NULL}, { (char *)"CModule_OnMode", _wrap_CModule_OnMode, 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_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_OnChanBufferPlayLine", _wrap_CModule_OnChanBufferPlayLine, 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_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_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_OnChanPermission", _wrap_CModules_OnChanPermission, METH_VARARGS, NULL}, { (char *)"CModules_OnOp", _wrap_CModules_OnOp, METH_VARARGS, NULL}, { (char *)"CModules_OnDeop", _wrap_CModules_OnDeop, METH_VARARGS, NULL}, { (char *)"CModules_OnVoice", _wrap_CModules_OnVoice, METH_VARARGS, NULL}, { (char *)"CModules_OnDevoice", _wrap_CModules_OnDevoice, METH_VARARGS, NULL}, { (char *)"CModules_OnRawMode", _wrap_CModules_OnRawMode, 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_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_OnChanBufferPlayLine", _wrap_CModules_OnChanBufferPlayLine, 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_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_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_DetachUser", _wrap_CChan_DetachUser, METH_VARARGS, NULL}, { (char *)"CChan_AttachUser", _wrap_CChan_AttachUser, 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_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_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___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_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_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_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_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_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___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_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_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_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_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_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_AddQueryBuffer", _wrap_CIRCNetwork_AddQueryBuffer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_UpdateQueryBuffer", _wrap_CIRCNetwork_UpdateQueryBuffer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_ClearQueryBuffer", _wrap_CIRCNetwork_ClearQueryBuffer, 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_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_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_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_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_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_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_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_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_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_IsLoggedIn", _wrap_CWebSession_IsLoggedIn, METH_VARARGS, NULL}, { (char *)"CWebSession_IsAdmin", _wrap_CWebSession_IsAdmin, 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_GetModule", _wrap_CWebSock_GetModule, 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_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_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_FilterUncommonModules", _wrap_CZNC_FilterUncommonModules, 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_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_Get", _wrap_CZNC_Get, 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_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_OnChanPermission", _wrap_CPyModule_OnChanPermission, METH_VARARGS, NULL}, { (char *)"CPyModule_OnOp", _wrap_CPyModule_OnOp, METH_VARARGS, NULL}, { (char *)"CPyModule_OnDeop", _wrap_CPyModule_OnDeop, METH_VARARGS, NULL}, { (char *)"CPyModule_OnVoice", _wrap_CPyModule_OnVoice, METH_VARARGS, NULL}, { (char *)"CPyModule_OnDevoice", _wrap_CPyModule_OnDevoice, METH_VARARGS, NULL}, { (char *)"CPyModule_OnMode", _wrap_CPyModule_OnMode, METH_VARARGS, NULL}, { (char *)"CPyModule_OnRawMode", _wrap_CPyModule_OnRawMode, 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_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_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 *)"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_CClientTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((CClient *) x)); } static void *_p_CIRCSockTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((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_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_CClientTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((CClient *) x)); } static void *_p_CIRCSockTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((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_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_CPySocketTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *)(CSocket *) ((CPySocket *) x)); } static void *_p_CClientTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *) ((CClient *) 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_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 *) ((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", "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_CConfig__EntryMap__const_iterator = {"_p_CConfig__EntryMap__const_iterator", "CConfig::EntryMap::const_iterator *|CConfig::EntryMapIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CConfig__SubConfigMap__const_iterator = {"_p_CConfig__SubConfigMap__const_iterator", "CConfig::SubConfigMap::const_iterator *|CConfig::SubConfigMapIterator *", 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_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_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_CSmartPtrT_CAuthBase_t = {"_p_CSmartPtrT_CAuthBase_t", "CSmartPtr< CAuthBase > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSmartPtrT_CTemplateOptions_t = {"_p_CSmartPtrT_CTemplateOptions_t", "CSmartPtr< CTemplateOptions > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSmartPtrT_CTemplateTagHandler_t = {"_p_CSmartPtrT_CTemplateTagHandler_t", "CSmartPtr< CTemplateTagHandler > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSmartPtrT_CWebSession_t = {"_p_CSmartPtrT_CWebSession_t", "CSmartPtr< CWebSession > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSmartPtrT_CWebSubPage_t = {"_p_CSmartPtrT_CWebSubPage_t", "CSmartPtr< CWebSubPage > *|std::vector< CSmartPtr< CWebSubPage > >::value_type *|TWebSubPage *", 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 = {"_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_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_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_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_CSmartPtrT_CWebSubPage_t_t = {"_p_std__allocatorT_CSmartPtrT_CWebSubPage_t_t", "std::allocator< CSmartPtr< CWebSubPage > > *|std::vector< CSmartPtr< CWebSubPage > >::allocator_type *", 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__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__dequeT__Tp__Alloc_t = {"_p_std__dequeT__Tp__Alloc_t", "std::deque< _Tp,_Alloc > *", 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__listT__Tp__Alloc_t = {"_p_std__listT__Tp__Alloc_t", "std::list< _Tp,_Alloc > *", 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__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 > > > *", 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__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 * > > *", 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_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_CSmartPtrT_CTemplateTagHandler_t_std__allocatorT_CSmartPtrT_CTemplateTagHandler_t_t_t = {"_p_std__vectorT_CSmartPtrT_CTemplateTagHandler_t_std__allocatorT_CSmartPtrT_CTemplateTagHandler_t_t_t", "std::vector< CSmartPtr< CTemplateTagHandler >,std::allocator< CSmartPtr< CTemplateTagHandler > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_CWebSubPage_t_t_t = {"_p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_CWebSubPage_t_t_t", "std::vector< CSmartPtr< CWebSubPage > > *|std::vector< CSmartPtr< CWebSubPage >,std::allocator< CSmartPtr< CWebSubPage > > > *|std::vector< TWebSubPage > *|VWebSubPages *", 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__Tp__Alloc_t = {"_p_std__vectorT__Tp__Alloc_t", "std::vector< _Tp,_Alloc > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT__Tp_p__Alloc_t = {"_p_std__vectorT__Tp_p__Alloc_t", "std::vector< _Tp *,_Alloc > *", 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__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_uint32_t = {"_p_uint32_t", "uint32_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_CConfig__EntryMap__const_iterator, &_swigt__p_CConfig__SubConfigMap__const_iterator, &_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_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_CRealListener, &_swigt__p_CSCharBuffer, &_swigt__p_CSConnection, &_swigt__p_CSListener, &_swigt__p_CSMonitorFD, &_swigt__p_CSSSLConnection, &_swigt__p_CSSockAddr, &_swigt__p_CServer, &_swigt__p_CSmartPtrT_CAuthBase_t, &_swigt__p_CSmartPtrT_CTemplateOptions_t, &_swigt__p_CSmartPtrT_CTemplateTagHandler_t, &_swigt__p_CSmartPtrT_CWebSession_t, &_swigt__p_CSmartPtrT_CWebSubPage_t, &_swigt__p_CSockCommon, &_swigt__p_CSockManager, &_swigt__p_CSocket, &_swigt__p_CSocketManager, &_swigt__p_CString, &_swigt__p_CString__EEscape, &_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_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_CIRCNetwork_p_t, &_swigt__p_std__allocatorT_CListener_p_t, &_swigt__p_std__allocatorT_CModule_p_t, &_swigt__p_std__allocatorT_CSmartPtrT_CWebSubPage_t_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__vectorT_CString_std__allocatorT_CString_t_t_t, &_swigt__p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, &_swigt__p_std__dequeT__Tp__Alloc_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__listT__Tp__Alloc_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__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__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_CServer_p_std__allocatorT_CServer_p_t_t, &_swigt__p_std__vectorT_CSmartPtrT_CTemplateTagHandler_t_std__allocatorT_CSmartPtrT_CTemplateTagHandler_t_t_t, &_swigt__p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_CWebSubPage_t_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__Tp__Alloc_t, &_swigt__p_std__vectorT__Tp_p__Alloc_t, &_swigt__p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_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_uint32_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_CConfig__EntryMap__const_iterator[] = { {&_swigt__p_CConfig__EntryMap__const_iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CConfig__SubConfigMap__const_iterator[] = { {&_swigt__p_CConfig__SubConfigMap__const_iterator, 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_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_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_CSmartPtrT_CAuthBase_t[] = { {&_swigt__p_CSmartPtrT_CAuthBase_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSmartPtrT_CTemplateOptions_t[] = { {&_swigt__p_CSmartPtrT_CTemplateOptions_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSmartPtrT_CTemplateTagHandler_t[] = { {&_swigt__p_CSmartPtrT_CTemplateTagHandler_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSmartPtrT_CWebSession_t[] = { {&_swigt__p_CSmartPtrT_CWebSession_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSmartPtrT_CWebSubPage_t[] = { {&_swigt__p_CSmartPtrT_CWebSubPage_t, 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_CPySocket, _p_CPySocketTo_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_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[] = { {&_swigt__p_CString, 0, 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_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_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_Csock[] = { {&_swigt__p_CSocket, _p_CSocketTo_p_Csock, 0, 0}, {&_swigt__p_CPySocket, _p_CPySocketTo_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_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_CSmartPtrT_CWebSubPage_t_t[] = { {&_swigt__p_std__allocatorT_CSmartPtrT_CWebSubPage_t_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__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__dequeT__Tp__Alloc_t[] = { {&_swigt__p_std__dequeT__Tp__Alloc_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__listT__Tp__Alloc_t[] = { {&_swigt__p_std__listT__Tp__Alloc_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__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__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_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_CSmartPtrT_CTemplateTagHandler_t_std__allocatorT_CSmartPtrT_CTemplateTagHandler_t_t_t[] = { {&_swigt__p_std__vectorT_CSmartPtrT_CTemplateTagHandler_t_std__allocatorT_CSmartPtrT_CTemplateTagHandler_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_CWebSubPage_t_t_t[] = { {&_swigt__p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_CWebSubPage_t_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__Tp__Alloc_t[] = { {&_swigt__p_std__vectorT__Tp__Alloc_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT__Tp_p__Alloc_t[] = { {&_swigt__p_std__vectorT__Tp_p__Alloc_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__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_uint32_t[] = { {&_swigt__p_uint32_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_CConfig__EntryMap__const_iterator, _swigc__p_CConfig__SubConfigMap__const_iterator, _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_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_CRealListener, _swigc__p_CSCharBuffer, _swigc__p_CSConnection, _swigc__p_CSListener, _swigc__p_CSMonitorFD, _swigc__p_CSSSLConnection, _swigc__p_CSSockAddr, _swigc__p_CServer, _swigc__p_CSmartPtrT_CAuthBase_t, _swigc__p_CSmartPtrT_CTemplateOptions_t, _swigc__p_CSmartPtrT_CTemplateTagHandler_t, _swigc__p_CSmartPtrT_CWebSession_t, _swigc__p_CSmartPtrT_CWebSubPage_t, _swigc__p_CSockCommon, _swigc__p_CSockManager, _swigc__p_CSocket, _swigc__p_CSocketManager, _swigc__p_CString, _swigc__p_CString__EEscape, _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_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_CIRCNetwork_p_t, _swigc__p_std__allocatorT_CListener_p_t, _swigc__p_std__allocatorT_CModule_p_t, _swigc__p_std__allocatorT_CSmartPtrT_CWebSubPage_t_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__vectorT_CString_std__allocatorT_CString_t_t_t, _swigc__p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, _swigc__p_std__dequeT__Tp__Alloc_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__listT__Tp__Alloc_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__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__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_CServer_p_std__allocatorT_CServer_p_t_t, _swigc__p_std__vectorT_CSmartPtrT_CTemplateTagHandler_t_std__allocatorT_CSmartPtrT_CTemplateTagHandler_t_t_t, _swigc__p_std__vectorT_CSmartPtrT_CWebSubPage_t_std__allocatorT_CSmartPtrT_CWebSubPage_t_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__Tp__Alloc_t, _swigc__p_std__vectorT__Tp_p__Alloc_t, _swigc__p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_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_uint32_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 staticly 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 found, 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); module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ found=0; iter=module_head; do { if (iter==&swig_module) { found=1; break; } iter=iter->next; } while (iter!= module_head); /* if the is found in the list, then all is done and we may leave */ if (found) return; /* otherwise we must add out module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpeters 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_SetString(PyExc_NameError,"Unknown C global variable"); } 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_SetString(PyExc_NameError,"Unknown C global variable"); } 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; int i; (void)builtin_pytype; (void)builtin_base_count; (void)builtin_basetype; (void)tuple; (void)static_getset; /* 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, "CS_INVALID_SOCK",SWIG_From_int(static_cast< int >(-1))); 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_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, "ADDR_IPV4ONLY",SWIG_From_int(static_cast< int >(ADDR_IPV4ONLY))); SWIG_Python_SetConstant(d, "ADDR_IPV6ONLY",SWIG_From_int(static_cast< int >(ADDR_IPV6ONLY))); SWIG_Python_SetConstant(d, "ADDR_ALL",SWIG_From_int(static_cast< int >(ADDR_ALL))); 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, "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))); #if PY_VERSION_HEX >= 0x03000000 return m; #else return; #endif } znc-1.2/modules/modpython/codegen.pl0000755000175000017500000003456412235710266020047 0ustar somebodysomebody#!/usr/bin/env perl # # 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. # # 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-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. * * 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 = NULL; 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_std_string (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) free((char*)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, NULL); 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)NULL" } } } 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 (/^CSmartPtr/) { 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 ", NULL);"; 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 = NULL;"; say $out "\t\tint res = SWIG_AsPtr_std_string(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 NULL\");"; say $out "\t\t\tresult = $default;"; say $out "\t\t} else result = *p;"; say $out "\t\tif (SWIG_IsNewObj(res)) free((char*)p); // Don't ask me, that's how SWIG works..."; } 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.2/modules/modpython/compiler.cpp0000644000175000017500000000271312235710266020410 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 void fail(PyObject* py, int n) { // Doesn't clear any variables, but meh, finalize anyway... if (!py) { PyErr_Print(); Py_Finalize(); exit(n); } } int main(int argc, char** argv) { // Don't use this as an example: this has awful memory leaks. Py_Initialize(); PyObject* pyModule = PyImport_ImportModule("py_compile"); fail(pyModule, 1); PyObject* pyFunc = PyObject_GetAttrString(pyModule, "compile"); fail(pyFunc, 2); std::string cfile = argv[2]; if (cfile.find('/') == std::string::npos) { cfile = "./" + cfile; } PyObject* pyKW = Py_BuildValue("{sssN}", "cfile", cfile.c_str(), "doraise", Py_True); fail(pyKW, 3); PyObject* pyArg = Py_BuildValue("(s)", argv[1]); fail(pyArg, 4); PyObject* pyRes = PyObject_Call(pyFunc, pyArg, pyKW); fail(pyRes, 5); Py_Finalize(); return 0; } znc-1.2/modules/modpython/Makefile.gen0000644000175000017500000000145412235710266020303 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.2/modules/identfile.cpp0000644000175000017500000001312312235710266016515 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 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) { if (m_pUser->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("%", m_pUser->GetIdent()); } DEBUG("Writing [" + sData + "] to ident spoof file [" + m_pISpoofLockFile->GetLongName() + "] for user/network [" + m_pUser->GetUserName() + "/" + m_pNetwork->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) { 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) { 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() { if (m_pIRCSock == m_pNetwork->GetIRCSock()) { ReleaseISpoof(); } } virtual void OnIRCConnectionError(CIRCSock *pIRCSock) { if (m_pIRCSock == pIRCSock) { ReleaseISpoof(); } } virtual void OnIRCDisconnected() { if (m_pIRCSock == m_pNetwork->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.2/modules/keepnick.cpp0000644000175000017500000001216212235710266016345 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 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) {} ~CKeepNickMod() {} bool OnLoad(const CString& sArgs, CString& sMessage) { m_pTimer = NULL; // Check if we need to start the timer if (m_pNetwork->IsIRCConnected()) OnIRCConnected(); return true; } void KeepNick() { if (!m_pTimer) // No timer means we are turned off return; CIRCSock* pIRCSock = m_pNetwork->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 = m_pNetwork->GetNick(); CIRCSock* pIRCSock = m_pNetwork->GetIRCSock(); if (pIRCSock) sConfNick = sConfNick.Left(pIRCSock->GetMaxNickLen()); return sConfNick; } void OnNick(const CNick& Nick, const CString& sNewNick, const vector& vChans) { if (sNewNick == m_pNetwork->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) { // If someone with the nick we want quits, be fast and get the nick if (Nick.NickEquals(GetNick())) { KeepNick(); } } void OnIRCDisconnected() { // No way we can do something if we aren't connected to IRC. Disable(); } void OnIRCConnected() { if (!m_pNetwork->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) { // We dont care if we are not connected to IRC if (!m_pNetwork->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(":" + m_pNetwork->GetIRCServer() + " 433 " + m_pNetwork->GetIRCNick().GetNick() + " " + sNick + " :ZNC is already trying to get this nickname"); return CONTINUE; } virtual EModRet OnRaw(CString& sLine) { // 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 OnModCommand(const CString& sCommand) { CString sCmd = sCommand.AsUpper(); if (sCmd == "ENABLE") { Enable(); PutModule("Trying to get your primary nick"); } else if (sCmd == "DISABLE") { Disable(); PutModule("No longer trying to get your primary nick"); } else if (sCmd == "STATE") { if (m_pTimer) PutModule("Currently trying to get your primary nick"); else PutModule("Currently disabled, try 'enable'"); } else { PutModule("Commands: Enable, Disable, State"); } } private: // If this is NULL, we are turned off for some reason CKeepNickTimer* m_pTimer; }; 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.2/modules/chansaver.cpp0000644000175000017500000000511012235710266016521 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 using std::vector; class CChanSaverMod : public CModule { public: MODCONSTRUCTOR(CChanSaverMod) { m_bWriteConf = false; vector vNetworks = pUser->GetNetworks(); for (vector::iterator it = vNetworks.begin(); it != vNetworks.end(); ++it) { const vector& vChans = (*it)->GetChans(); for (vector::const_iterator it2 = vChans.begin(); it2 != vChans.end(); ++it2) { CChan *pChan = *it2; // If that channel isn't yet in the config, // we'll have to add it... if (!pChan->InConfig()) { pChan->SetInConfig(true); m_bWriteConf = true; } } } } virtual ~CChanSaverMod() { } virtual EModRet OnRaw(CString& sLine) { if (m_bWriteConf) { CZNC::Get().WriteConfig(); m_bWriteConf = false; } return CONTINUE; } virtual void OnMode(const CNick& OpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) { // 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 || !bAdded || sArg == "*") return; Channel.SetKey(sArg); m_bWriteConf = true; } virtual void OnJoin(const CNick& Nick, CChan& Channel) { if (Nick.GetNick() == m_pNetwork->GetIRCNick().GetNick() && !Channel.InConfig()) { Channel.SetInConfig(true); CZNC::Get().WriteConfig(); } } virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) { if (Nick.GetNick() == m_pNetwork->GetIRCNick().GetNick() && Channel.InConfig()) { Channel.SetInConfig(false); CZNC::Get().WriteConfig(); } } private: bool m_bWriteConf; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("chansaver"); Info.AddType(CModInfo::NetworkModule); } USERMODULEDEFS(CChanSaverMod, "Keep config up-to-date when user joins/parts") znc-1.2/modules/schat.cpp0000644000175000017500000003076712235710266015671 0ustar somebodysomebody/* * Copyright (C) 2004-2013 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(); 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) { CSChatSock *p = new CSChatSock(m_pModule, m_sChatNick, sHostname, iPort); return(p); } virtual bool ConnectionFrom(const CS_STRING & sHost, u_short iPort) { Close(); // close the listener after the first connection return(true); } virtual void Connected(); virtual void Timeout(); const CString & GetChatNick() const { return(m_sChatNick); } void PutQuery(const CString& sText); virtual void ReadLine(const CS_STRING & sLine); virtual void Disconnected(); virtual void AddLine(const CString & sLine) { m_vBuffer.insert(m_vBuffer.begin(), sLine); if (m_vBuffer.size() > 200) m_vBuffer.pop_back(); } virtual 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) { 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() { 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) { 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) { 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 = m_pManager->ListenRand(pSock->GetSockName() + "::LISTENER", m_pUser->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(m_pUser->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") && m_pUser->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 (m_pUser->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) { 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); m_pManager->Connect(CUtils::GetIP(iIP), iPort, p->GetSockName(), 60, true, m_pUser->GetLocalDCCIP(), p); RemTimer("Remove " + sNick); // delete any associated timer to this nick } virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) { 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); } virtual 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 " + m_pNetwork->GetCurNick() + " :" + sText; PutUser(sSend); } bool IsAttached() { return(m_pNetwork->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 *)m_pModule; 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.2/modules/ctcpflood.cpp0000644000175000017500000000741512235710266016536 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 class CCtcpFloodMod : public CModule { public: MODCONSTRUCTOR(CCtcpFloodMod) { m_tLastCTCP = 0; m_iNumCTCP = 0; } ~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) { 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) { return Message(Nick, sMessage); } EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) { return Message(Nick, sMessage); } void OnModCommand(const CString& sCommand) { const CString& sCmd = sCommand.Token(0); const CString& sArg = sCommand.Token(1, true); if (sCmd.Equals("secs") && !sArg.empty()) { m_iThresholdSecs = sArg.ToUInt(); if (m_iThresholdSecs == 0) m_iThresholdSecs = 1; PutModule("Set seconds limit to [" + CString(m_iThresholdSecs) + "]"); Save(); } else if (sCmd.Equals("lines") && !sArg.empty()) { m_iThresholdMsgs = sArg.ToUInt(); if (m_iThresholdMsgs == 0) m_iThresholdMsgs = 2; PutModule("Set lines limit to [" + CString(m_iThresholdMsgs) + "]"); Save(); } else if (sCmd.Equals("show")) { PutModule("Current limit is " + CString(m_iThresholdMsgs) + " CTCPs " "in " + CString(m_iThresholdSecs) + " secs"); } else { PutModule("Commands: show, secs [limit], lines [limit]"); } } private: time_t m_tLastCTCP; unsigned int m_iNumCTCP; 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.2/modules/block_motd.cpp0000644000175000017500000000250512235710266016671 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 class CBlockMotd : public CModule { public: MODCONSTRUCTOR(CBlockMotd) { } virtual ~CBlockMotd() { } virtual EModRet OnRaw(CString &sLine) { 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.2/modules/autoattach.cpp0000644000175000017500000001723412235710266016716 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 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) { 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.JoinUser(); return; } } } virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) { TryAttach(Nick, Channel, sMessage); return CONTINUE; } virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) { TryAttach(Nick, Channel, sMessage); return CONTINUE; } virtual EModRet OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage) { 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.SetWikiPage("autoattach"); Info.SetHasArgs(true); Info.SetArgsHelpText("List of channel masks and channel masks with ! before them."); } USERMODULEDEFS(CChanAttach, "Reattaches you to channels on activity.") znc-1.2/modules/controlpanel.cpp0000644000175000017500000011264612235710266017264 0ustar somebodysomebody/* * Copyright (C) 2004-2013 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 PrintHelp(const CString&) { HandleHelpCommand(); PutModule("The following variables are available when using the Set/Get commands:"); CTable VarTable; VarTable.AddColumn("Variable"); VarTable.AddColumn("Type"); static const char* str = "String"; static const char* boolean = "Boolean (true/false)"; static const char* integer = "Integer"; static const char* doublenum = "Double"; 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}, {"Password", str}, {"JoinTries", integer}, {"MaxJoins", integer}, {"Timezone", str}, {"Admin", boolean}, {"AppendTimestamp", boolean}, {"PrependTimestamp", boolean}, {"TimestampFormat", str}, {"DCCBindHost", str}, {"StatusPrefix", str} }; for (unsigned int i = 0; i != ARRAY_SIZE(vars); ++i) { VarTable.AddRow(); VarTable.SetCell("Variable", vars[i][0]); VarTable.SetCell("Type", vars[i][1]); } PutModule(VarTable); PutModule("The following variables are available when using the SetNetwork/GetNetwork commands:"); CTable NVarTable; NVarTable.AddColumn("Variable"); NVarTable.AddColumn("Type"); static const char* nvars[][2] = { {"Nick", str}, {"Altnick", str}, {"Ident", str}, {"RealName", str}, {"FloodRate", doublenum}, {"FloodBurst", integer}, }; for (unsigned int i = 0; i != ARRAY_SIZE(nvars); ++i) { NVarTable.AddRow(); NVarTable.SetCell("Variable", nvars[i][0]); NVarTable.SetCell("Type", nvars[i][1]); } PutModule(NVarTable); PutModule("The following variables are available when using the SetChan/GetChan commands:"); CTable CVarTable; CVarTable.AddColumn("Variable"); CVarTable.AddColumn("Type"); static const char* cvars[][2] = { {"DefModes", str}, {"Key", str}, {"Buffer", integer}, {"InConfig", boolean}, {"AutoClearChanBuffer", boolean}, {"Detached", boolean} }; for (unsigned int i = 0; i != ARRAY_SIZE(cvars); ++i) { CVarTable.AddRow(); CVarTable.SetCell("Variable", cvars[i][0]); CVarTable.SetCell("Type", cvars[i][1]); } PutModule(CVarTable); PutModule("You can use $me as the user name for modifying your own user."); } CUser* GetUser(const CString& sUsername) { if (sUsername.Equals("$me")) return m_pUser; CUser *pUser = CZNC::Get().FindUser(sUsername); if (!pUser) { PutModule("Error: User [" + sUsername + "] not found."); return NULL; } if (pUser != m_pUser && !m_pUser->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 = m_pUser; } else { pUser = GetUser(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 == "maxjoins") PutModule("MaxJoins = " + CString(pUser->MaxJoins())); 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()); 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 = GetUser(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() || m_pUser->IsAdmin()) { 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(m_pUser->IsAdmin()) { bool b = sValue.ToBool(); pUser->SetDenyLoadMod(b); PutModule("DenyLoadMod = " + CString(b)); } else { PutModule("Access denied!"); } } else if (sVar == "denysetbindhost") { if(m_pUser->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, m_pUser->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 == "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 == "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(m_pUser->IsAdmin() && pUser != m_pUser) { 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() || m_pUser->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!"); } } 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 = m_pUser; pNetwork = m_pNetwork; } else { pUser = GetUser(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("floodrate")) { PutModule("FloodRate = " + CString(pNetwork->GetFloodRate())); } else if (sVar.Equals("floodburst")) { PutModule("FloodBurst = " + CString(pNetwork->GetFloodBurst())); } 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 = m_pUser; pNetwork = m_pNetwork; } else { pUser = GetUser(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("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 { PutModule("Error: Unknown variable"); } } 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 = GetUser(sUsername); if (!pUser) return; CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutModule("[" + sUsername + "] does not have a network named [" + sNetwork + "]"); return; } CChan* pChan = pNetwork->FindChan(sChan); if (!pChan) { PutModule("Error: Channel [" + sChan + "] not found."); return; } if (sVar == "defmodes") PutModule("DefModes = " + pChan->GetDefaultModes()); else if (sVar == "buffer") PutModule("Buffer = " + CString(pChan->GetBufferCount())); else if (sVar == "inconfig") PutModule("InConfig = " + CString(pChan->InConfig())); else if (sVar == "keepbuffer") PutModule("KeepBuffer = " + CString(!pChan->AutoClearChanBuffer()));// XXX compatibility crap, added in 0.207 else if (sVar == "autoclearchanbuffer") PutModule("AutoClearChanBuffer = " + CString(pChan->AutoClearChanBuffer())); else if (sVar == "detached") PutModule("Detached = " + CString(pChan->IsDetached())); else if (sVar == "key") PutModule("Key = " + pChan->GetKey()); else PutModule("Error: Unknown variable"); } 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 = GetUser(sUsername); if (!pUser) return; CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutModule("[" + sUsername + "] does not have a network named [" + sNetwork + "]"); return; } CChan* pChan = pNetwork->FindChan(sChan); if (!pChan) { PutModule("Error: Channel [" + sChan + "] not found."); return; } if (sVar == "defmodes") { pChan->SetDefaultModes(sValue); PutModule("DefModes = " + sValue); } else if (sVar == "buffer") { unsigned int i = sValue.ToUInt(); // Admins don't have to honour the buffer limit if (pChan->SetBufferCount(i, m_pUser->IsAdmin())) { PutModule("Buffer = " + sValue); } else { PutModule("Setting failed, limit is " + CString(CZNC::Get().GetMaxBufferSize())); } } else if (sVar == "inconfig") { bool b = sValue.ToBool(); pChan->SetInConfig(b); PutModule("InConfig = " + CString(b)); } else if (sVar == "keepbuffer") { // XXX compatibility crap, added in 0.207 bool b = !sValue.ToBool(); pChan->SetAutoClearChanBuffer(b); PutModule("AutoClearChanBuffer = " + CString(b)); } else if (sVar == "autoclearchanbuffer") { bool b = sValue.ToBool(); pChan->SetAutoClearChanBuffer(b); PutModule("AutoClearChanBuffer = " + CString(b)); } else if (sVar == "detached") { bool b = sValue.ToBool(); if (pChan->IsDetached() != b) { if (b) pChan->DetachUser(); else pChan->AttachUser(); } PutModule("Detached = " + CString(b)); } else if (sVar == "key") { pChan->SetKey(sValue); PutModule("Key = " + sValue); } else PutModule("Error: Unknown variable"); } void ListUsers(const CString&) { if (!m_pUser->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 (!m_pUser->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 (!m_pUser->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 == m_pUser) { 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 (!m_pUser->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 = m_pUser; if (sNetwork.empty()) { sNetwork = sUser; } else { pUser = GetUser(sUser); if (!pUser) { PutModule("User [" + sUser + "] not found"); return; } } if (sNetwork.empty()) { PutModule("Usage: " + sLine.Token(0) + " [user] network"); return; } if (!m_pUser->IsAdmin() && !pUser->HasSpaceForNewNetwork()) { PutStatus("Network number limit reached. Ask an admin to increase the limit for you, or delete few old ones 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 = m_pUser; if (sNetwork.empty()) { sNetwork = sUser; } else { pUser = GetUser(sUser); if (!pUser) { return; } } if (sNetwork.empty()) { PutModule("Usage: " + sLine.Token(0) + " [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 == m_pNetwork) { PutModule("The currently active network can be deleted via " + m_pUser->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 = m_pUser; if (!sUser.empty()) { pUser = GetUser(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 = GetUser(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 = GetUser(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 = GetUser(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 = m_pUser->GetUserName(); } CUser* pUser = GetUser(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 = m_pUser->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 = GetUser(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 = m_pUser->GetUserName(); } CUser* pUser = GetUser(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() && !m_pUser->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 []"); return; } CUser* pUser = GetUser(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 []"); return; } CUser* pUser = GetUser(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() && !m_pUser->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 + "] [" + sModRet + "]"); } } void UnLoadModuleForUser(const CString& sLine) { CString sUsername = sLine.Token(1); CString sModName = sLine.Token(2); if (sModName.empty()) { PutModule("Usage: unloadmodule "); return; } CUser* pUser = GetUser(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 = GetUser(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 = GetUser(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 = GetUser(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), "", "Generates this output"); AddCommand("Get", static_cast(&CAdminMod::Get), "variable [username]", "Prints the variable's value for the given or current user"); AddCommand("Set", static_cast(&CAdminMod::Set), "variable username value", "Sets the variable's value for the given user (use $me for the current user)"); AddCommand("GetNetwork", static_cast(&CAdminMod::GetNetwork), "variable [username network]", "Prints the variable's value for the given network"); AddCommand("SetNetwork", static_cast(&CAdminMod::SetNetwork), "variable username network value", "Sets the variable's value for the given network"); AddCommand("GetChan", static_cast(&CAdminMod::GetChan), "variable [username] network chan", "Prints the variable's value for the given channel"); AddCommand("SetChan", static_cast(&CAdminMod::SetChan), "variable username network chan value", "Sets the variable's value for the given channel"); AddCommand("ListUsers", static_cast(&CAdminMod::ListUsers), "", "Lists users"); AddCommand("AddUser", static_cast(&CAdminMod::AddUser), "username password", "Adds a new user"); AddCommand("DelUser", static_cast(&CAdminMod::DelUser), "username", "Deletes a user"); AddCommand("CloneUser", static_cast(&CAdminMod::CloneUser), "oldusername newusername", "Clones a user"); AddCommand("AddServer", static_cast(&CAdminMod::AddServer), "username network server", "Adds a new IRC server for the given or current user"); AddCommand("Reconnect", static_cast(&CAdminMod::ReconnectUser), "username network", "Cycles the user's IRC server connection"); AddCommand("Disconnect", static_cast(&CAdminMod::DisconnectUser), "username network", "Disconnects the user from their IRC server"); AddCommand("LoadModule", static_cast(&CAdminMod::LoadModuleForUser), "username modulename [args]", "Loads a Module for a user"); AddCommand("UnLoadModule", static_cast(&CAdminMod::UnLoadModuleForUser), "username modulename", "Removes a Module of a user"); AddCommand("ListMods", static_cast(&CAdminMod::ListModulesForUser), "username", "Get the list of modules for a user"); AddCommand("LoadNetModule",static_cast(&CAdminMod::LoadModuleForNetwork), "username network modulename [args]", "Loads a Module for a network"); AddCommand("UnLoadNetModule",static_cast(&CAdminMod::UnLoadModuleForNetwork), "username network modulename", "Removes a Module of a network"); AddCommand("ListNetMods", static_cast(&CAdminMod::ListModulesForNetwork), "username network", "Get the list of modules for a network"); AddCommand("ListCTCPs", static_cast(&CAdminMod::ListCTCP), "username", "List the configured CTCP replies"); AddCommand("AddCTCP", static_cast(&CAdminMod::AddCTCP), "username ctcp [reply]", "Configure a new CTCP reply"); AddCommand("DelCTCP", static_cast(&CAdminMod::DelCTCP), "username ctcp", "Remove a CTCP reply"); // Network commands AddCommand("AddNetwork", static_cast(&CAdminMod::AddNetwork), "[username] network", "Add a network for a user"); AddCommand("DelNetwork", static_cast(&CAdminMod::DelNetwork), "[username] network", "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.2/modules/watch.cpp0000644000175000017500000003764512235710266015677 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 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_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; } 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 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; 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) { Process(OpNick, "* " + OpNick.GetNick() + " sets mode: " + sModes + " " + sArgs + " on " + Channel.GetName(), Channel.GetName()); } virtual void OnClientLogin() { MCString msParams; msParams["target"] = m_pNetwork->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) { 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) { Process(Nick, "* Quits: " + Nick.GetNick() + " (" + Nick.GetIdent() + "@" + Nick.GetHost() + ") " "(" + sMessage + ")", ""); } virtual void OnJoin(const CNick& Nick, CChan& Channel) { Process(Nick, "* " + Nick.GetNick() + " (" + Nick.GetIdent() + "@" + Nick.GetHost() + ") joins " + Channel.GetName(), Channel.GetName()); } virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) { 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) { Process(OldNick, "* " + OldNick.GetNick() + " is now known as " + sNewNick, ""); } virtual EModRet OnCTCPReply(CNick& Nick, CString& sMessage) { Process(Nick, "* CTCP: " + Nick.GetNick() + " reply [" + sMessage + "]", "priv"); return CONTINUE; } virtual EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) { Process(Nick, "* CTCP: " + Nick.GetNick() + " [" + sMessage + "]", "priv"); return CONTINUE; } virtual EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) { Process(Nick, "* CTCP: " + Nick.GetNick() + " [" + sMessage + "] to " "[" + Channel.GetName() + "]", Channel.GetName()); return CONTINUE; } virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) { Process(Nick, "-" + Nick.GetNick() + "- " + sMessage, "priv"); return CONTINUE; } virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) { Process(Nick, "-" + Nick.GetNick() + ":" + Channel.GetName() + "- " + sMessage, Channel.GetName()); return CONTINUE; } virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) { Process(Nick, "<" + Nick.GetNick() + "> " + sMessage, "priv"); return CONTINUE; } virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) { Process(Nick, "<" + Nick.GetNick() + ":" + Channel.GetName() + "> " + sMessage, Channel.GetName()); return CONTINUE; } virtual void OnModCommand(const CString& sCommand) { 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("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; for (list::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); ++it) { CWatchEntry& WatchEntry = *it; if (WatchEntry.IsMatch(Nick, sMessage, sSource, m_pNetwork) && sHandledTargets.count(WatchEntry.GetTarget()) < 1) { if (m_pNetwork->IsUserAttached()) { m_pNetwork->PutUser(":" + WatchEntry.GetTarget() + "!watch@znc.in PRIVMSG " + m_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 List() { CTable Table; Table.AddColumn("Id"); Table.AddColumn("HostMask"); Table.AddColumn("Target"); Table.AddColumn("Pattern"); Table.AddColumn("Sources"); Table.AddColumn("Off"); 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" : ""); } 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)); } } 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", "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 += 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); if (vList.size() != 5) { bWarn = true; continue; } CWatchEntry WatchEntry(vList[0], vList[1], vList[2]); if (vList[3].Equals("disabled")) WatchEntry.SetDisabled(true); else WatchEntry.SetDisabled(false); WatchEntry.SetSources(vList[4]); 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.2/modules/perleval.pm0000644000175000017500000000070412235710266016217 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.2/modules/kickrejoin.cpp0000644000175000017500000000634412235710266016711 0ustar somebodysomebody/* * Copyright (C) 2004-2013 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() { CIRCNetwork* pNetwork = m_pModule->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; public: MODCONSTRUCTOR(CRejoinMod) {} virtual ~CRejoinMod() {} virtual bool OnLoad(const CString& sArgs, CString& sErrorMsg) { 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; } virtual void OnModCommand(const CString& sCommand) { CString sCmdName = sCommand.Token(0).AsLower(); if (sCmdName == "setdelay") { 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"); } else if (sCmdName == "showdelay") { if (delay) PutModule("Rejoin delay enabled, " + CString(delay) + " seconds"); else PutModule("Rejoin delay disabled"); } else { PutModule("Commands: setdelay , showdelay"); } } virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& pChan, const CString& sMessage) { if (m_pNetwork->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.2/modules/perform.cpp0000644000175000017500000001117412235710266016230 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 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), ""); AddCommand("Del", static_cast(&CPerform::Del), ""); AddCommand("List", static_cast(&CPerform::List)); AddCommand("Execute", static_cast(&CPerform::Execute)); AddCommand("Swap", static_cast(&CPerform::Swap), " "); } 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) { GetNV("Perform").Split("\n", m_vPerform, false); return true; } virtual void OnIRCConnected() { for (VCString::const_iterator it = m_vPerform.begin(); it != m_vPerform.end(); ++it) { PutIRC(ExpandString(*it)); } } virtual CString GetWebMenuTitle() { return "Perform"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { 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.2/modules/send_raw.cpp0000644000175000017500000001114512235710266016356 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 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); m_pClient->PutClient(sData); } public: virtual ~CSendRaw_Mod() {} virtual bool OnLoad(const CString& sArgs, CString& sErrorMsg) { if (!m_pUser->IsAdmin()) { sErrorMsg = "You must have admin privileges to load this module"; return false; } return true; } virtual CString GetWebMenuTitle() { return "Send Raw"; } virtual bool WebRequiresAdmin() { return true; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { 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.2/modules/imapauth.cpp0000644000175000017500000001005612235710266016364 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 using std::map; class CIMAPAuthMod; class CIMAPSock : public CSocket { public: CIMAPSock(CIMAPAuthMod* pModule, CSmartPtr 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); private: protected: CIMAPAuthMod* m_pIMAPMod; bool m_bSentLogin; bool m_bSentReply; CSmartPtr 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() { return true; } virtual bool OnLoad(const CString& sArgs, CString& sMessage) { 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(CSmartPtr Auth) { 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) { } 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.2/modules/crypt.cpp0000644000175000017500000001221112235710266015710 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. */ //! @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) {} virtual ~CCryptMod() {} virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) { sTarget.TrimLeft(NickPrefix()); if (sMessage.Left(2) == "``") { sMessage.LeftChomp(2); return CONTINUE; } MCString::iterator it = FindNV(sTarget.AsLower()); if (it != EndNV()) { CChan* pChan = m_pNetwork->FindChan(sTarget); if (pChan) { if (!pChan->AutoClearChanBuffer()) pChan->AddBuffer(":" + NickPrefix() + _NAMEDFMT(m_pNetwork->GetIRCNick().GetNickMask()) + " PRIVMSG " + _NAMEDFMT(sTarget) + " :{text}", sMessage); m_pUser->PutUser(":" + NickPrefix() + m_pNetwork->GetIRCNick().GetNickMask() + " PRIVMSG " + sTarget + " :" + sMessage, NULL, m_pClient); } 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) { FilterIncoming(Nick.GetNick(), Nick, sMessage); return CONTINUE; } virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) { 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()); } } } virtual void OnModCommand(const CString& sCommand) { CString sCmd = sCommand.Token(0); if (sCmd.Equals("DELKEY")) { 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>"); } } else if (sCmd.Equals("SETKEY")) { 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> "); } } else if (sCmd.Equals("LISTKEYS")) { 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); } } else if (sCmd.Equals("HELP")) { PutModule("Try: SetKey, DelKey, ListKeys"); } else { PutModule("Unknown command, try 'Help'"); } } 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.2/modules/modpython.cpp0000644000175000017500000003170112235710266016575 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 #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) { 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) { 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) { 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) { 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) { 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.2/modules/certauth.cpp0000644000175000017500000001644712235710266016405 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. */ #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)); AddCommand("Show", static_cast(&CSSLClientCertMod::HandleShowCommand), "", "Print your current key"); } virtual ~CSSLClientCertMod() {} virtual bool OnBoot() { 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); MCString::iterator it1; for (it1 = BeginNV(); it1 != EndNV(); ++it1) { VCString vsKeys; VCString::iterator it2; if (CZNC::Get().FindUser(it1->first) == NULL) { DEBUG("Unknown user in saved data [" + it1->first + "]"); continue; } it1->second.Split(" ", vsKeys, false); for (it2 = vsKeys.begin(); it2 != vsKeys.end(); ++it2) { m_PubKeys[it1->first].insert(*it2); } } return true; } virtual void OnPostRehash() { OnBoot(); } virtual bool OnLoad(const CString& sArgs, CString& sMessage) { OnBoot(); return true; } bool Save() { MSCString::iterator it; ClearNV(false); for (it = m_PubKeys.begin(); it != m_PubKeys.end(); ++it) { CString sVal; SCString::iterator it2; for (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, CString sKey) { pair pair = m_PubKeys[pUser->GetUserName()].insert(sKey); if (pair.second) { Save(); } return pair.second; } virtual EModRet OnLoginAttempt(CSmartPtr Auth) { CString sUser = Auth->GetUsername(); Csock *pSock = Auth->GetSocket(); CUser *pUser = CZNC::Get().FindUser(sUser); if (pSock == NULL || pUser == NULL) return CONTINUE; CString sPubKey = GetKey(pSock); DEBUG("User: " << sUser << " Key: " << sPubKey); if (sPubKey.empty()) { DEBUG("Peer got no public key, ignoring"); return CONTINUE; } MSCString::iterator it = m_PubKeys.find(sUser); if (it == m_PubKeys.end()) { DEBUG("No saved pubkeys for this client"); return CONTINUE; } SCString::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) { CString sPubKey = GetKey(m_pClient); 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(m_pClient); } if (sPubKey.empty()) { PutModule("You did not supply a public key or connect with one."); } else { if (AddKey(m_pUser, 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::iterator it = m_PubKeys.find(m_pUser->GetUserName()); if (it == m_PubKeys.end()) { PutModule("No keys set for your user"); return; } SCString::iterator it2; unsigned int id = 1; for (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(m_pUser->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::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; default: return ""; } } virtual CString GetWebMenuTitle() { return "certauth"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { CUser *pUser = WebSock.GetSession()->GetUser(); if (sPageName == "index") { MSCString::iterator it = m_PubKeys.find(pUser->GetUserName()); if (it != m_PubKeys.end()) { SCString::iterator it2; for (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.2/modules/cyrusauth.cpp0000644000175000017500000001365012235710266016606 0ustar somebodysomebody/* * Copyright (C) 2004-2013 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*/); 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) { if (m_pUser->IsAdmin()) { HandleCommand(sCommand); } else { PutModule("Access denied"); } } virtual bool OnLoad(const CString& sArgs, CString& sMessage) { 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; } 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; return true; } virtual EModRet OnLoginAttempt(CSmartPtr Auth) { 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.2/modules/adminlog.cpp0000644000175000017500000001153312235710266016347 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 class CAdminLogMod : public CModule { public: MODCONSTRUCTOR(CAdminLogMod) { openlog("znc", LOG_PID, LOG_DAEMON); } virtual ~CAdminLogMod() { Log("Logging ended."); closelog(); } virtual bool OnLoad(const CString & sArgs, CString & sMessage) { 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() { Log("[" + m_pUser->GetUserName() + "/" + m_pNetwork->GetName() + "] connected to IRC: " + m_pNetwork->GetCurrentServer()->GetName()); } virtual void OnIRCDisconnected() { Log("[" + m_pUser->GetUserName() + "/" + m_pNetwork->GetName() + "] disconnected from IRC"); } virtual EModRet OnRaw(CString& sLine) { 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("[" + m_pUser->GetUserName() + "/" + m_pNetwork->GetName() + "] disconnected from IRC: " + m_pNetwork->GetCurrentServer()->GetName() + " [" + sError + "]", LOG_NOTICE); } return CONTINUE; } virtual void OnClientLogin() { Log("[" + m_pUser->GetUserName() + "] connected to ZNC from " + m_pClient->GetRemoteIP()); } virtual void OnClientDisconnect() { Log("[" + m_pUser->GetUserName() + "] disconnected from ZNC from " + m_pClient->GetRemoteIP()); } virtual void OnFailedLogin(const CString& sUsername, const CString& sRemoteIP) { 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) { if (!GetUser()->IsAdmin()) { PutModule("Access denied"); return; } CString sCmd = sCommand.Token(0); if (sCmd.Equals("target")) { 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 { PutModule("Unknown target"); return; } Log(sMessage); SetNV("target", sTarget); m_eLogMode = mode; PutModule(sMessage); } else if (sCmd.Equals("show")) { 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 + "]"); } else PutModule("Commands: show, target "); } 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; CString m_sLogFile; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("adminlog"); } GLOBALMODULEDEFS(CAdminLogMod, "Log ZNC events to file and/or syslog.") znc-1.2/modules/sasl.cpp0000644000175000017500000003536712235710266015532 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 #ifdef HAVE_LIBSSL #define HAVE_SASL_MECHANISM #endif static const struct { const char *szName; const char *szDescription; const bool bDefault; } SupportedMechanisms[] = { { "EXTERNAL", "TLS certificate, for use with the *cert module", false }, #ifdef HAVE_SASL_MECHANISM { "DH-BLOWFISH", "Secure negotiation using the DH-BLOWFISH mechanism", true }, { "DH-AES", "More secure negotiation using the DH-AES mechanism", true }, #endif { "PLAIN", "Plain text negotiation", 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; }; #ifdef HAVE_SASL_MECHANISM class DHCommon { public: DH *dh; unsigned char *secret; int key_size; DHCommon() { dh = DH_new(); secret = NULL; key_size = 0; } ~DHCommon() { if (dh) DH_free(dh); if (secret) free(secret); } bool ParseDH(const CString &sLine) { /* * sLine contains the prime, generator and public key of the server. * We first extract this information and then we pass this to OpenSSL. * OpenSSL will generate our own public and private key. Which we then * use to encrypt our password * * sLine will look something like: * * base64( * prime length (2 bytes) * prime * generator length (2 bytes) * generator * servers public key length (2 bytes) * servers public key * ) */ /* Decode base64 into (data, length) */ CString sData = sLine.Base64Decode_n(); const unsigned char *data = (const unsigned char*)sData.c_str(); CString::size_type length = sLine.size(); if (length < 2) { DEBUG("sasl: No prime number"); return false; } /* Prime number */ uint16_t size16; memcpy(&size16, data, sizeof(size16)); unsigned int size = ntohs(size16); data += 2; length -= 2; if (size > length) { DEBUG("sasl: Extracting prime number. Invalid length"); return false; } dh->p = BN_bin2bn(data, size, NULL); data += size; /* Generator */ if (length < 2) { DEBUG("sasl: No generator"); return false; } memcpy(&size16, data, sizeof(size16)); size = ntohs(size16); data += 2; length -= 2; if (size > length) { DEBUG("sasl: Extracting generator. Invalid length"); return false; } dh->g = BN_bin2bn(data, size, NULL); data += size; /* Server public key */ if (length < 2) { DEBUG("sasl: No public key"); return false; } memcpy(&size16, data, sizeof(size16)); size = ntohs(size16); data += 2; length -= 2; if (size > length) { DEBUG("sasl: Extracting server public key. Invalid length"); return false; } BIGNUM *server_pub_key = BN_bin2bn(data, size, NULL); /* Generate our own public/private keys */ if (!DH_generate_key(dh)) { DEBUG("sasl: Failed to generate keys"); return false; } /* Compute shared secret */ secret = (unsigned char*)malloc(DH_size(dh)); if ((key_size = DH_compute_key(secret, server_pub_key, dh)) == -1) { DEBUG("sasl: Failed to compute shared secret"); return false; } return true; } }; #endif class CSASLMod : public CModule { public: MODCONSTRUCTOR(CSASLMod) { AddCommand("Help", static_cast(&CSASLMod::PrintHelp), "search", "Generate this output"); AddCommand("Set", static_cast(&CSASLMod::Set), "username password", "Set the password for DH-BLOWFISH/DH-AES/PLAIN"); 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 if SASL cannot be authenticated"); 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); } bool CheckRequireAuth() { if (!m_bAuthenticated && GetNV(NV_REQUIRE_AUTH).ToBool()) { GetNetwork()->SetIRCConnectEnabled(false); PutModule("Disabling network, we require authentication."); PutModule("Use 'RequireAuth no' to disable."); return true; } return false; } #ifdef HAVE_SASL_MECHANISM bool AuthenticateAES(const CString& sLine) { CString::size_type length; DHCommon dh; if (!dh.ParseDH(sLine)) return false; const int len = GetNV("username").size() + GetNV("password").size() + 2; const int padlen = 16 - (len % 16); CString::size_type userpass_length = len + padlen; unsigned char *encrypted_userpass = (unsigned char *)malloc(userpass_length); unsigned char *plaintext_userpass = (unsigned char *)malloc(userpass_length); memset(encrypted_userpass, 0, userpass_length); /* Create plaintext message */ unsigned char *ptr = plaintext_userpass; memcpy(ptr, GetNV("username").c_str(), GetNV("username").size() + 1); ptr += GetNV("username").size() + 1; memcpy(ptr, GetNV("password").c_str(), GetNV("password").size() + 1); ptr += GetNV("password").size() + 1; if (padlen) { /* Padding */ unsigned char randbytes[16]; if (!RAND_bytes(randbytes, padlen)) { DEBUG("sasl: DH-AES: Unable to pad"); free(encrypted_userpass); free(plaintext_userpass); return false; } memcpy(ptr, randbytes, padlen); } /* Create the IV * It is changed during encryption for some reason - so we need to keep a copy. */ unsigned char iv[16], iv_copy[16]; if (!RAND_bytes(iv, sizeof (iv))) { DEBUG("sasl: DH-AES: Unable to create IV"); free(encrypted_userpass); free(plaintext_userpass); return false; } memcpy(iv_copy, iv, sizeof(iv)); /* Encrypt */ AES_KEY key; AES_set_encrypt_key(dh.secret, dh.key_size * 8, &key); AES_cbc_encrypt(plaintext_userpass, encrypted_userpass, userpass_length, &key, iv_copy, AES_ENCRYPT); free(plaintext_userpass); /* Build our response */ length = 2 + dh.key_size + sizeof(iv) + userpass_length; char *response = (char *)malloc(length); char *out_ptr = response; /* Size of the key + key */ uint16_t size16 = htons((uint16_t)dh.key_size); memcpy(out_ptr, &size16, sizeof(size16)); out_ptr += 2; BN_bn2bin(dh.dh->pub_key, (unsigned char *)out_ptr); out_ptr += dh.key_size; /* Add the IV */ memcpy(out_ptr, iv, sizeof(iv)); out_ptr += sizeof(iv); /* Add encrypted userpass to the response */ memcpy(out_ptr, encrypted_userpass, userpass_length); free(encrypted_userpass); PutIRC("AUTHENTICATE " + CString((const char *)response, length).Base64Encode_n()); DEBUG(CString((const char *)response, length).Base64Encode_n()); free(response); return true; } bool AuthenticateBlowfish(const CString& sLine) { /* Encrypt our sasl password with blowfish * * Our response should look something like: * * base64( * our public key length (2 bytes) * our public key * sasl username + \0 * blowfish( * sasl password * ) * ) */ CString::size_type length; /* Our DH params */ DHCommon dh; if (!dh.ParseDH(sLine)) return false; // TODO for passwords with length 8, 16, 24, 32, etc. this will have 8 additional zero bytes at the end... // But it works when treated as null-terminated string anyway, and if it works I don't want to touch it right now. CString::size_type password_length = GetNV("password").size() + (8 - (GetNV("password").size() % 8)); unsigned char *encrypted_password = (unsigned char *)malloc(password_length); char *plaintext_password = (char *)malloc(password_length); memset(encrypted_password, 0, password_length); memset(plaintext_password, 0, password_length); memcpy(plaintext_password, GetNV("password").c_str(), GetNV("password").size()); BF_KEY key; BF_set_key(&key, dh.key_size, dh.secret); char *out_ptr = (char *)encrypted_password; char *in_ptr = (char *)plaintext_password; for (length = password_length; length; length -= 8, in_ptr += 8, out_ptr += 8) { BF_ecb_encrypt((unsigned char *)in_ptr, (unsigned char *)out_ptr, &key, BF_ENCRYPT); } free(plaintext_password); /* Build our response */ length = 2 + BN_num_bytes(dh.dh->pub_key) + password_length + GetNV("username").size() + 1; char *response = (char *)malloc(length); out_ptr = response; /* Add our key to the response */ uint16_t size16 = htons((uint16_t)BN_num_bytes(dh.dh->pub_key)); memcpy(out_ptr, &size16, sizeof(size16)); out_ptr += 2; BN_bn2bin(dh.dh->pub_key, (unsigned char *)out_ptr); out_ptr += BN_num_bytes(dh.dh->pub_key); /* Add sasl username to response */ memcpy(out_ptr, GetNV("username").c_str(), GetNV("username").length() + 1); // +1 for zero byte in the end out_ptr += GetNV("username").length() + 1; /* Finally add the encrypted password to the response */ memcpy(out_ptr, encrypted_password, password_length); free(encrypted_password); /* Base 64 encode and send! */ PutIRC("AUTHENTICATE " + CString((const char *)response, length).Base64Encode_n()); free(response); return true; } #endif 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); #ifdef HAVE_SASL_MECHANISM } else if (m_Mechanisms.GetCurrent().Equals("DH-BLOWFISH")) { AuthenticateBlowfish(sLine); } else if (m_Mechanisms.GetCurrent().Equals("DH-AES")) { AuthenticateAES(sLine); #endif } else { /* Send blank authenticate for other mechanisms (like EXTERNAL). */ PutIRC("AUTHENTICATE +"); } } virtual bool OnServerCapAvailable(const CString& sCap) { return sCap.Equals("sasl"); } virtual void OnServerCapResult(const CString& sCap, const bool bSuccess) { if (sCap.Equals("sasl")) { if (bSuccess) { GetMechanismsString().Split(" ", m_Mechanisms); if (m_Mechanisms.empty()) { CheckRequireAuth(); return; } m_pNetwork->GetIRCSock()->PauseCap(); m_Mechanisms.SetIndex(0); PutIRC("AUTHENTICATE " + m_Mechanisms.GetCurrent()); } else { CheckRequireAuth(); } } } virtual EModRet OnRaw(CString &sLine) { if (sLine.Token(0).Equals("AUTHENTICATE")) { Authenticate(sLine.Token(1, true)); } else if (sLine.Token(1).Equals("903")) { /* SASL success! */ m_pNetwork->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."); PutModule(m_Mechanisms.GetCurrent() + " mechanism failed."); if (m_Mechanisms.HasNext()) { m_Mechanisms.IncrementIndex(); PutIRC("AUTHENTICATE " + m_Mechanisms.GetCurrent()); } else { CheckRequireAuth(); m_pNetwork->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; m_pNetwork->GetIRCSock()->ResumeCap(); DEBUG("sasl: Received 907 -- We are already registered"); } else { return CONTINUE; } return HALT; } virtual void OnIRCConnected() { /* Just incase something slipped through, perhaps the server doesn't * respond to our CAP negotiation. */ CheckRequireAuth(); } virtual void OnIRCDisconnected() { m_bAuthenticated = false; } private: Mechanisms m_Mechanisms; bool m_bAuthenticated; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("sasl"); } NETWORKMODULEDEFS(CSASLMod, "Adds support for sasl authentication capability to authenticate to an IRC server") znc-1.2/modules/raw.cpp0000644000175000017500000000230212235710266015340 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 class CRawMod : public CModule { public: MODCONSTRUCTOR(CRawMod) {} virtual ~CRawMod() {} virtual EModRet OnRaw(CString& sLine) { PutModule("IRC -> [" + sLine + "]"); return CONTINUE; } virtual void OnModCommand(const CString& sCommand) { PutIRC(sCommand); } virtual EModRet OnUserRaw(CString& sLine) { 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.2/modules/clientnotify.cpp0000644000175000017500000000673312235710266017272 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 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") { m_pUser->PutStatus(sMessage, NULL, m_pClient); } else if(m_sMethod == "notice") { m_pUser->PutStatusNotice(sMessage, NULL, m_pClient); } } public: MODCONSTRUCTOR(CClientNotifyMod) { } bool OnLoad(const CString& sArgs, CString& sMessage) { 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() { if(!m_bNewOnly || m_sClientsSeen.find(m_pClient->GetRemoteIP()) == m_sClientsSeen.end()) { SendNotification("Another client authenticated as your user. " "Use the 'ListClients' command to see all " + CString(m_pUser->GetAllClients().size()) + " clients."); // the set<> will automatically disregard duplicates: m_sClientsSeen.insert(m_pClient->GetRemoteIP()); } } void OnClientDisconnect() { if(m_bOnDisconnect) { SendNotification("A client disconnected from your user. " "Use the 'ListClients' command to see the " + CString(m_pUser->GetAllClients().size()) + " remaining client(s)."); } } void OnModCommand(const CString& sCommand) { const CString& sCmd = sCommand.Token(0).AsLower(); const CString& sArg = sCommand.Token(1, true).AsLower(); if (sCmd.Equals("method") && !sArg.empty()) { if(sArg != "notice" && sArg != "message" && sArg != "off") { PutModule("Unknown method. Use one of: message / notice / off"); } else { m_sMethod = sArg; SaveSettings(); PutModule("Saved."); } } else if (sCmd.Equals("newonly") && !sArg.empty()) { m_bNewOnly = (sArg == "on" || sArg == "true"); SaveSettings(); PutModule("Saved."); } else if (sCmd.Equals("ondisconnect") && !sArg.empty()) { m_bOnDisconnect = (sArg == "on" || sArg == "true"); SaveSettings(); PutModule("Saved."); } else { PutModule("Current settings: Method: " + m_sMethod + ", for unseen IP addresses only: " + CString(m_bNewOnly) + ", notify on disconnecting clients: " + CString(m_bOnDisconnect)); PutModule("Commands: show, method , newonly , ondisconnect "); } } }; 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.2/modules/Makefile.in0000644000175000017500000000617312235710266016122 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 ifeq "@HAVE_ICONV@" "" FILES := $(shell echo $(FILES) | sed -e "s:charset::") endif charsetLDFLAGS := @LIBICONV@ 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.2/modules/autovoice.cpp0000644000175000017500000001733412235710266016560 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 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) {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) { // 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) { // 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; } } } } virtual void OnModCommand(const CString& sLine) { CString sCommand = sLine.Token(0).AsUpper(); if (sCommand.Equals("HELP")) { PutModule("Commands are: ListUsers, AddChans, DelChans, AddUser, DelUser"); } else if (sCommand.Equals("ADDUSER") || sCommand.Equals("DELUSER")) { CString sUser = sLine.Token(1); CString sHost = sLine.Token(2); if (sCommand.Equals("ADDUSER")) { if (sHost.empty()) { PutModule("Usage: " + sCommand + " [channels]"); } else { CAutoVoiceUser* pUser = AddUser(sUser, sHost, sLine.Token(3, true)); if (pUser) { SetNV(sUser, pUser->ToString()); } } } else { DelUser(sUser); DelNV(sUser); } } else if (sCommand.Equals("LISTUSERS")) { 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); } else if (sCommand.Equals("ADDCHANS") || sCommand.Equals("DELCHANS")) { CString sUser = sLine.Token(1); CString sChans = sLine.Token(2, true); if (sChans.empty()) { PutModule("Usage: " + sCommand + " [channel] ..."); return; } CAutoVoiceUser* pUser = FindUser(sUser); if (!pUser) { PutModule("No such user"); return; } if (sCommand.Equals("ADDCHANS")) { pUser->AddChans(sChans); PutModule("Channel(s) added to user [" + pUser->GetUsername() + "]"); } else { pUser->DelChans(sChans); PutModule("Channel(s) Removed from user [" + pUser->GetUsername() + "]"); } SetNV(pUser->GetUsername(), pUser->ToString()); } else { PutModule("Unknown command, try HELP"); } } 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 guys") znc-1.2/modules/buffextras.cpp0000644000175000017500000000542312235710266016727 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 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() && m_pNetwork->IsUserOnline()) return; Channel.AddBuffer(":" + GetModNick() + "!" + GetModName() + "@znc.in PRIVMSG " + _NAMEDFMT(Channel.GetName()) + " :{text}", sMessage); } virtual void OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs) { AddBuffer(Channel, OpNick.GetNickMask() + " set mode: " + sModes + " " + sArgs); } virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) { AddBuffer(Channel, OpNick.GetNickMask() + " kicked " + sKickedNick + " Reason: [" + sMessage + "]"); } virtual void OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) { 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) { AddBuffer(Channel, Nick.GetNickMask() + " joined"); } virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) { AddBuffer(Channel, Nick.GetNickMask() + " parted with message: [" + sMessage + "]"); } virtual void OnNick(const CNick& OldNick, const CString& sNewNick, const vector& vChans) { 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) { AddBuffer(Channel, Nick.GetNickMask() + " changed the topic to: " + sTopic); return CONTINUE; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("buffextras"); } USERMODULEDEFS(CBuffExtras, "Add joins, parts etc. to the playback buffer") znc-1.2/modules/autoop.cpp0000644000175000017500000003206212235710266016064 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 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(); CAutoOpMod* m_pParent; }; class CAutoOpUser { public: CAutoOpUser() {} CAutoOpUser(const CString& sLine) { FromString(sLine); } CAutoOpUser(const CString& sUsername, const CString& sUserKey, const CString& sHostmask, const CString& sChannels) : m_sUsername(sUsername), m_sUserKey(sUserKey), m_sHostmask(sHostmask) { AddChans(sChannels); } virtual ~CAutoOpUser() {} const CString& GetUsername() const { return m_sUsername; } const CString& GetUserKey() const { return m_sUserKey; } 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" + m_sUserKey + "\t" + sChans; } bool FromString(const CString& sLine) { m_sUsername = sLine.Token(0, false, "\t"); m_sHostmask = sLine.Token(1, false, "\t"); 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; CString m_sHostmask; set m_ssChans; }; class CAutoOpMod : public CModule { public: MODCONSTRUCTOR(CAutoOpMod) {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) { 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) { // 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) { 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) { // 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) { 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 OnOp(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { if (Nick.GetNick() == m_pNetwork->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); } } } } virtual void OnModCommand(const CString& sLine) { CString sCommand = sLine.Token(0).AsUpper(); if (sCommand.Equals("HELP")) { PutModule("Commands are: ListUsers, AddChans, DelChans, AddUser, DelUser"); } else if (sCommand.Equals("TIMERS")) { ListTimers(); } else if (sCommand.Equals("ADDUSER") || sCommand.Equals("DELUSER")) { CString sUser = sLine.Token(1); CString sHost = sLine.Token(2); CString sKey = sLine.Token(3); if (sCommand.Equals("ADDUSER")) { if (sHost.empty()) { PutModule("Usage: " + sCommand + " [channels]"); } else { CAutoOpUser* pUser = AddUser(sUser, sKey, sHost, sLine.Token(4, true)); if (pUser) { SetNV(sUser, pUser->ToString()); } } } else { DelUser(sUser); DelNV(sUser); } } else if (sCommand.Equals("LISTUSERS")) { if (m_msUsers.empty()) { PutModule("There are no users defined"); return; } CTable Table; Table.AddColumn("User"); Table.AddColumn("Hostmask"); Table.AddColumn("Key"); 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("Key", it->second->GetUserKey()); Table.SetCell("Channels", it->second->GetChannels()); } PutModule(Table); } else if (sCommand.Equals("ADDCHANS") || sCommand.Equals("DELCHANS")) { CString sUser = sLine.Token(1); CString sChans = sLine.Token(2, true); if (sChans.empty()) { PutModule("Usage: " + sCommand + " [channel] ..."); return; } CAutoOpUser* pUser = FindUser(sUser); if (!pUser) { PutModule("No such user"); return; } if (sCommand.Equals("ADDCHANS")) { pUser->AddChans(sChans); PutModule("Channel(s) added to user [" + pUser->GetUsername() + "]"); } else { pUser->DelChans(sChans); PutModule("Channel(s) Removed from user [" + pUser->GetUsername() + "]"); } SetNV(pUser->GetUsername(), pUser->ToString()); } else { PutModule("Unknown command, try HELP"); } } 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) { 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 pUser; } 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& sHost, const CString& sChans) { if (m_msUsers.find(sUser) != m_msUsers.end()) { PutModule("That user already exists"); return NULL; } CAutoOpUser* pUser = new CAutoOpUser(sUser, sKey, sHost, sChans); m_msUsers[sUser.AsLower()] = pUser; PutModule("User [" + sUser + "] added with hostmask [" + sHost + "]"); 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 guy who challenged us matches a user's host if (pUser->HostMatches(Nick.GetHostMask())) { const vector& Chans = m_pNetwork->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 = m_pNetwork->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 guys") znc-1.2/modules/modperl.cpp0000644000175000017500000002070512235710266016220 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 #include #include "modperl/module.h" #include "modperl/swigperlrun.h" #include #include #include #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) { 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; PERL_SYS_INIT3(&argc, &argv, &environ); m_pPerl = perl_alloc(); perl_construct(m_pPerl); if (perl_parse(m_pPerl, xs_init, argc, argv, environ)) { 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) { 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) { 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) { 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) { 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.2/modules/modperl/0000755000175000017500000000000012235710277015512 5ustar somebodysomebodyznc-1.2/modules/modperl/Makefile.inc0000644000175000017500000000456112235710266017726 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 # This is for SWIG PERL_CXX += -DSWIG_TYPE_TABLE=znc modperlCXXFLAGS := $(PERL_CXX) -Wno-unused-function modperlLDFLAGS := $(PERL_LD) # Find additional headers for out-of-tree build modperlCXXFLAGS += -I. ifeq "$(ISCYGWIN)" "1" PERLCEXT_EXT := dll PERLDEPONMOD := modperl.so else PERLCEXT_EXT := so 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.2/modules/modperl/functions.cpp0000644000175000017500000004647612235710277020247 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. */ /*************************************************************************** * 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::OnChanPermission(const CNick& OpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) { PSTART_IDF(OnChanPermission); mXPUSHi(0); // Default value PUSH_PTR( CNick*, &OpNick); PUSH_PTR( CNick*, &Nick); PUSH_PTR(CChan*, &Channel); mXPUSHu(uMode); mXPUSHi(bAdded); mXPUSHi(bNoChange); PCALLMOD(, ); } void CPerlModule::OnOp(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PSTART_IDF(OnOp); mXPUSHi(0); // Default value PUSH_PTR( CNick*, &OpNick); PUSH_PTR( CNick*, &Nick); PUSH_PTR(CChan*, &Channel); mXPUSHi(bNoChange); PCALLMOD(, ); } void CPerlModule::OnDeop(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PSTART_IDF(OnDeop); mXPUSHi(0); // Default value PUSH_PTR( CNick*, &OpNick); PUSH_PTR( CNick*, &Nick); PUSH_PTR(CChan*, &Channel); mXPUSHi(bNoChange); PCALLMOD(, ); } void CPerlModule::OnVoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PSTART_IDF(OnVoice); mXPUSHi(0); // Default value PUSH_PTR( CNick*, &OpNick); PUSH_PTR( CNick*, &Nick); PUSH_PTR(CChan*, &Channel); mXPUSHi(bNoChange); PCALLMOD(, ); } void CPerlModule::OnDevoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PSTART_IDF(OnDevoice); mXPUSHi(0); // Default value PUSH_PTR( CNick*, &OpNick); PUSH_PTR( CNick*, &Nick); PUSH_PTR(CChan*, &Channel); mXPUSHi(bNoChange); PCALLMOD(, ); } void CPerlModule::OnMode(const CNick& OpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) { PSTART_IDF(OnMode); mXPUSHi(0); // Default value PUSH_PTR( CNick*, &OpNick); PUSH_PTR(CChan*, &Channel); mXPUSHi(uMode); PUSH_STR(sArg); mXPUSHi(bAdded); mXPUSHi(bNoChange); PCALLMOD(, ); } void CPerlModule::OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs) { PSTART_IDF(OnRawMode); mXPUSHi(0); // Default value PUSH_PTR( CNick*, &OpNick); 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(, ); } 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; } znc-1.2/modules/modperl/functions.in0000644000175000017500000000672312235710266020060 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 OnChanPermission(const CNick& OpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) void OnOp(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnDeop(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnVoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnDevoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnMode(const CNick& OpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) void OnRawMode(const CNick& OpNick, 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) 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 znc-1.2/modules/modperl/CString.i0000644000175000017500000002506412235710266017242 0ustar somebodysomebody/* SWIG-generated sources are used here. */ %{ #include %} %feature("naturalvar") CString; class CString { public: typedef size_t size_type; }; /*@SWIG:/usr/share/swig1.3/typemaps/std_strings.swg,74,%typemaps_std_string@*/ /*@SWIG:/usr/share/swig1.3/typemaps/std_strings.swg,4,%std_string_asptr@*/ %fragment("SWIG_" "AsPtr" "_" {CString},"header",fragment="SWIG_AsCharPtrAndSize") { SWIGINTERN int SWIG_AsPtr_std_string SWIG_PERL_DECL_ARGS_2(SV * obj, CString **val) { char* buf = 0 ; size_t size = 0; int found = 0; if (SvMAGICAL(obj)) { SV *tmp = sv_newmortal(); SvSetSV(tmp, obj); obj = tmp; } 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)) { if (val) *val = vptr; return res; } } 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) { buf = vptr; size = vptr ? (strlen(vptr) + 1) : 0; found = 1; } } if (!found) { STRLEN len = 0; buf = SvPV(obj, len); size = len + 1; found = 1; } if (found) { if (buf) { if (val) *val = new CString(buf, size - 1); return SWIG_NEWOBJ; } else { if (val) *val = 0; return SWIG_OLDOBJ; } } return SWIG_ERROR; } } /*@SWIG@*/ /*@SWIG:/usr/share/swig1.3/typemaps/std_strings.swg,52,%std_string_asval@*/ %fragment("SWIG_" "AsVal" "_" {CString},"header", fragment="SWIG_" "AsPtr" "_" {CString}) { SWIGINTERN int SWIG_AsVal_std_string SWIG_PERL_DECL_ARGS_2(SV * obj, CString *val) { CString* v = (CString *) 0; int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(obj, &v); if (!SWIG_IsOK(res)) return res; if (v) { if (val) *val = *v; if (SWIG_IsNewObj(res)) { free((char*)v); res = SWIG_DelNewMask(res); } return res; } return SWIG_ERROR; } } /*@SWIG@*/ /*@SWIG:/usr/share/swig1.3/typemaps/std_strings.swg,38,%std_string_from@*/ %fragment("SWIG_" "From" "_" {CString},"header",fragment="SWIG_FromCharPtrAndSize") { SWIGINTERNINLINE SV * SWIG_From_std_string SWIG_PERL_DECL_ARGS_1(const CString& s) { if (s.size()) { return SWIG_FromCharPtrAndSize(s.data(), s.size()); } else { return SWIG_FromCharPtrAndSize(s.c_str(), 0); } } } /*@SWIG@*/ /*@SWIG:/usr/share/swig1.3/typemaps/ptrtypes.swg,201,%typemaps_asptrfromn@*/ /*@SWIG:/usr/share/swig1.3/typemaps/ptrtypes.swg,190,%typemaps_asptrfrom@*/ /*@SWIG:/usr/share/swig1.3/typemaps/ptrtypes.swg,160,%typemaps_asptr@*/ %fragment("SWIG_" "AsVal" "_" {CString},"header",fragment="SWIG_" "AsPtr" "_" {CString}) { SWIGINTERNINLINE int SWIG_AsVal_std_string SWIG_PERL_CALL_ARGS_2(SV * obj, CString *val) { CString *v = (CString *)0; int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(obj, &v); if (!SWIG_IsOK(res)) return res; if (v) { if (val) *val = *v; if (SWIG_IsNewObj(res)) { free((char*)v); res = SWIG_DelNewMask(res); } return res; } return SWIG_ERROR; } } /*@SWIG:/usr/share/swig1.3/typemaps/ptrtypes.swg,28,%ptr_in_typemap@*/ %typemap(in,fragment="SWIG_" "AsPtr" "_" {CString}) CString { CString *ptr = (CString *)0; int res = SWIG_AsPtr_std_string 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)) free((char*)ptr); } %typemap(freearg) CString ""; %typemap(in,fragment="SWIG_" "AsPtr" "_" {CString}) const CString & (int res = SWIG_OLDOBJ) { CString *ptr = (CString *)0; res = SWIG_AsPtr_std_string 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)) free((char*)$1); } /*@SWIG@*/; /*@SWIG:/usr/share/swig1.3/typemaps/ptrtypes.swg,53,%ptr_varin_typemap@*/ %typemap(varin,fragment="SWIG_" "AsPtr" "_" {CString}) CString { CString *ptr = (CString *)0; int res = SWIG_AsPtr_std_string 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)) free((char*)ptr); } /*@SWIG@*/; ; /*@SWIG:/usr/share/swig1.3/typemaps/ptrtypes.swg,143,%ptr_typecheck_typemap@*/ %typemap(typecheck,noblock=1,precedence=135,fragment="SWIG_" "AsPtr" "_" {CString}) CString * { int res = SWIG_AsPtr_std_string 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_std_string SWIG_PERL_CALL_ARGS_2($input, (CString**)(0)); $1 = SWIG_CheckState(res); } /*@SWIG@*/; /*@SWIG:/usr/share/swig1.3/typemaps/inoutlist.swg,254,%ptr_input_typemap@*/ /*@SWIG:/usr/share/swig1.3/typemaps/inoutlist.swg,117,%_ptr_input_typemap@*/ %typemap(in,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString}) CString *INPUT(int res = 0) { res = SWIG_AsPtr_std_string 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_std_string 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)) free((char*)$1); } %typemap(typecheck,noblock=1,precedence=135,fragment="SWIG_" "AsPtr" "_" {CString}) CString *INPUT, CString &INPUT { int res = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2($input, (CString**)0); $1 = SWIG_CheckState(res); } /*@SWIG@*/ /*@SWIG@*/; /*@SWIG@*/ /*@SWIG:/usr/share/swig1.3/typemaps/valtypes.swg,184,%typemaps_from@*/ /*@SWIG:/usr/share/swig1.3/typemaps/valtypes.swg,55,%value_out_typemap@*/ %typemap(out,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString, const CString { $result = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1((CString)($1)); argvi++ ; } %typemap(out,noblock=1,fragment="SWIG_" "From" "_" {CString}) const CString& { $result = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1((CString)(*$1)); argvi++ ; } /*@SWIG@*/; /*@SWIG:/usr/share/swig1.3/typemaps/valtypes.swg,79,%value_varout_typemap@*/ %typemap(varout,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString, const CString& { sv_setsv($result,SWIG_From_std_string SWIG_PERL_CALL_ARGS_1((CString)($1))) ; } /*@SWIG@*/; /*@SWIG:/usr/share/swig1.3/typemaps/valtypes.swg,87,%value_constcode_typemap@*/ %typemap(constcode,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString { /*@SWIG:/usr/share/swig1.3/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "$symname", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_std_string SWIG_PERL_CALL_ARGS_1((CString)($value))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; } /*@SWIG@*/; ; /*@SWIG:/usr/share/swig1.3/typemaps/valtypes.swg,154,%value_throws_typemap@*/ %typemap(throws,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString { sv_setsv(GvSV(PL_errgv), SWIG_From_std_string SWIG_PERL_CALL_ARGS_1((CString)($1))); SWIG_fail ; } /*@SWIG@*/; /*@SWIG:/usr/share/swig1.3/typemaps/inoutlist.swg,258,%value_output_typemap@*/ /*@SWIG:/usr/share/swig1.3/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_std_string 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:/usr/share/swig1.3/typemaps/inoutlist.swg,258,%value_output_typemap@*/ /*@SWIG:/usr/share/swig1.3/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_std_string 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:/usr/share/swig1.3/typemaps/inoutlist.swg,240,%_ptr_inout_typemap@*/ /*@SWIG:/usr/share/swig1.3/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.2/modules/modperl/module.h0000644000175000017500000001615212235710266017153 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. */ #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(); virtual bool WebRequiresLogin(); virtual bool WebRequiresAdmin(); virtual CString GetWebMenuTitle(); virtual bool OnWebPreRequest(CWebSock& WebSock, const CString& sPageName); virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl); virtual VWebSubPages& GetSubPages(); virtual void OnPreRehash(); virtual void OnPostRehash(); virtual void OnIRCDisconnected(); virtual void OnIRCConnected(); virtual EModRet OnIRCConnecting(CIRCSock *pIRCSock); virtual void OnIRCConnectionError(CIRCSock *pIRCSock); virtual EModRet OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName); virtual EModRet OnBroadcast(CString& sMessage); virtual void OnChanPermission(const CNick& OpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange); virtual void OnOp(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange); virtual void OnDeop(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange); virtual void OnVoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange); virtual void OnDevoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange); virtual void OnMode(const CNick& OpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange); virtual void OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs); virtual EModRet OnRaw(CString& sLine); virtual EModRet OnStatusCommand(CString& sCommand); virtual void OnModCommand(const CString& sCommand); virtual void OnModNotice(const CString& sMessage); virtual void OnModCTCP(const CString& sMessage); virtual void OnQuit(const CNick& Nick, const CString& sMessage, const std::vector& vChans); virtual void OnNick(const CNick& Nick, const CString& sNewNick, const std::vector& vChans); virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage); virtual void OnJoin(const CNick& Nick, CChan& Channel); virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage); virtual EModRet OnChanBufferStarting(CChan& Chan, CClient& Client); virtual EModRet OnChanBufferEnding(CChan& Chan, CClient& Client); virtual EModRet OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine); virtual EModRet OnPrivBufferPlayLine(CClient& Client, CString& sLine); virtual void OnClientLogin(); virtual void OnClientDisconnect(); virtual EModRet OnUserRaw(CString& sLine); virtual EModRet OnUserCTCPReply(CString& sTarget, CString& sMessage); virtual EModRet OnUserCTCP(CString& sTarget, CString& sMessage); virtual EModRet OnUserAction(CString& sTarget, CString& sMessage); virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage); virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage); virtual EModRet OnUserJoin(CString& sChannel, CString& sKey); virtual EModRet OnUserPart(CString& sChannel, CString& sMessage); virtual EModRet OnUserTopic(CString& sChannel, CString& sTopic); virtual EModRet OnUserTopicRequest(CString& sChannel); virtual EModRet OnCTCPReply(CNick& Nick, CString& sMessage); virtual EModRet OnPrivCTCP(CNick& Nick, CString& sMessage); virtual EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage); virtual EModRet OnPrivAction(CNick& Nick, CString& sMessage); virtual EModRet OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage); virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage); virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage); virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage); virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage); virtual EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic); virtual bool OnServerCapAvailable(const CString& sCap); virtual void OnServerCapResult(const CString& sCap, bool bSuccess); virtual EModRet OnTimerAutoJoin(CChan& Channel); bool OnEmbeddedWebRequest(CWebSock&, const CString&, CTemplate&); }; 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(); 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(); virtual void Disconnected(); virtual void Timeout(); virtual void ConnectionRefused(); virtual void ReadData(const char *data, size_t len); virtual void ReadLine(const CString& sLine); virtual Csock* GetSockObj(const CString& sHost, unsigned short uPort); }; 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 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.2/modules/modperl/pstring.h0000644000175000017500000000412412235710266017350 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. */ #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.2/modules/modperl/startup.pl0000644000175000017500000003014612235710266017553 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. # 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 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 {} # 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.2/modules/modperl/ZNC.pm0000644000175000017500000034650112235710277016513 0ustar somebodysomebody# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.9 # # 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; *GetCsockClassIdx = *ZNCc::GetCsockClassIdx; *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; *_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::CString ############## package ZNC::CString; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CString(@_); 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_CString($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::_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; *GetTimezones = *ZNCc::CUtils_GetTimezones; 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; *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; *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; *GetWriteBuffer = *ZNCc::Csock_GetWriteBuffer; *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; 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::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; *OnChanPermission = *ZNCc::CModule_OnChanPermission; *OnOp = *ZNCc::CModule_OnOp; *OnDeop = *ZNCc::CModule_OnDeop; *OnVoice = *ZNCc::CModule_OnVoice; *OnDevoice = *ZNCc::CModule_OnDevoice; *OnMode = *ZNCc::CModule_OnMode; *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; *OnJoin = *ZNCc::CModule_OnJoin; *OnPart = *ZNCc::CModule_OnPart; *OnInvite = *ZNCc::CModule_OnInvite; *OnChanBufferStarting = *ZNCc::CModule_OnChanBufferStarting; *OnChanBufferEnding = *ZNCc::CModule_OnChanBufferEnding; *OnChanBufferPlayLine = *ZNCc::CModule_OnChanBufferPlayLine; *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; *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; *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; *OnChanPermission = *ZNCc::CModules_OnChanPermission; *OnOp = *ZNCc::CModules_OnOp; *OnDeop = *ZNCc::CModules_OnDeop; *OnVoice = *ZNCc::CModules_OnVoice; *OnDevoice = *ZNCc::CModules_OnDevoice; *OnRawMode = *ZNCc::CModules_OnRawMode; *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; *OnJoin = *ZNCc::CModules_OnJoin; *OnPart = *ZNCc::CModules_OnPart; *OnInvite = *ZNCc::CModules_OnInvite; *OnChanBufferStarting = *ZNCc::CModules_OnChanBufferStarting; *OnChanBufferEnding = *ZNCc::CModules_OnChanBufferEnding; *OnChanBufferPlayLine = *ZNCc::CModules_OnChanBufferPlayLine; *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; *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; *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; *DetachUser = *ZNCc::CChan_DetachUser; *AttachUser = *ZNCc::CChan_AttachUser; *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; *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; *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; *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; *SetQuitMsg = *ZNCc::CUser_SetQuitMsg; *AddCTCPReply = *ZNCc::CUser_AddCTCPReply; *DelCTCPReply = *ZNCc::CUser_DelCTCPReply; *SetBufferCount = *ZNCc::CUser_SetBufferCount; *SetAutoClearChanBuffer = *ZNCc::CUser_SetAutoClearChanBuffer; *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; *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; *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; *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; *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}; } } *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; *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; *AddChan = *ZNCc::CIRCNetwork_AddChan; *DelChan = *ZNCc::CIRCNetwork_DelChan; *JoinChans = *ZNCc::CIRCNetwork_JoinChans; *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; *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; *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; *AddQueryBuffer = *ZNCc::CIRCNetwork_AddQueryBuffer; *UpdateQueryBuffer = *ZNCc::CIRCNetwork_UpdateQueryBuffer; *ClearQueryBuffer = *ZNCc::CIRCNetwork_ClearQueryBuffer; *GetNick = *ZNCc::CIRCNetwork_GetNick; *GetAltNick = *ZNCc::CIRCNetwork_GetAltNick; *GetIdent = *ZNCc::CIRCNetwork_GetIdent; *GetRealName = *ZNCc::CIRCNetwork_GetRealName; *GetBindHost = *ZNCc::CIRCNetwork_GetBindHost; *SetNick = *ZNCc::CIRCNetwork_SetNick; *SetAltNick = *ZNCc::CIRCNetwork_SetAltNick; *SetIdent = *ZNCc::CIRCNetwork_SetIdent; *SetRealName = *ZNCc::CIRCNetwork_SetRealName; *SetBindHost = *ZNCc::CIRCNetwork_SetBindHost; *GetFloodRate = *ZNCc::CIRCNetwork_GetFloodRate; *GetFloodBurst = *ZNCc::CIRCNetwork_GetFloodBurst; *SetFloodRate = *ZNCc::CIRCNetwork_SetFloodRate; *SetFloodBurst = *ZNCc::CIRCNetwork_SetFloodBurst; *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::CZNCSock 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; *HasNamesx = *ZNCc::CClient_HasNamesx; *HasUHNames = *ZNCc::CClient_HasUHNames; *IsAway = *ZNCc::CClient_IsAway; *HasServerTime = *ZNCc::CClient_HasServerTime; *UserCommand = *ZNCc::CClient_UserCommand; *UserPortCommand = *ZNCc::CClient_UserPortCommand; *StatusCTCP = *ZNCc::CClient_StatusCTCP; *BouncedOff = *ZNCc::CClient_BouncedOff; *IsAttached = *ZNCc::CClient_IsAttached; *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::CZNCSock 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; *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; *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; *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; *IsLoggedIn = *ZNCc::CWebSession_IsLoggedIn; *IsAdmin = *ZNCc::CWebSession_IsAdmin; *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; *GetModule = *ZNCc::CWebSock_GetModule; *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; *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; *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; *SetConnectDelay = *ZNCc::CZNC_SetConnectDelay; *GetConfigState = *ZNCc::CZNC_GetConfigState; *GetManager = *ZNCc::CZNC_GetManager; *GetModules = *ZNCc::CZNC_GetModules; *FilterUncommonModules = *ZNCc::CZNC_FilterUncommonModules; *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; *GetListeners = *ZNCc::CZNC_GetListeners; *TimeStarted = *ZNCc::CZNC_TimeStarted; *GetMaxBufferSize = *ZNCc::CZNC_GetMaxBufferSize; *GetAnonIPLimit = *ZNCc::CZNC_GetAnonIPLimit; *GetConnectDelay = *ZNCc::CZNC_GetConnectDelay; *GetProtectWebSessions = *ZNCc::CZNC_GetProtectWebSessions; *Get = *ZNCc::CZNC_Get; *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; *OnChanPermission = *ZNCc::CPerlModule_OnChanPermission; *OnOp = *ZNCc::CPerlModule_OnOp; *OnDeop = *ZNCc::CPerlModule_OnDeop; *OnVoice = *ZNCc::CPerlModule_OnVoice; *OnDevoice = *ZNCc::CPerlModule_OnDevoice; *OnMode = *ZNCc::CPerlModule_OnMode; *OnRawMode = *ZNCc::CPerlModule_OnRawMode; *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; *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; 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::CString 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.2/modules/modperl/codegen.pl0000755000175000017500000001230012235710266017450 0ustar somebodysomebody#!/usr/bin/env perl # # 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. # 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-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. */ /*************************************************************************** * 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.2/modules/modperl/swigperlrun.h0000644000175000017500000011726012235710277020253 0ustar somebodysomebody/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.9 * * 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 # 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 not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCompare(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* 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) { register size_t l = 0; register size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ register size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { register 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 { register 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"; register const unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register 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) { register unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register char d = *(c++); register 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) /* 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); if (!tc) { 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.2/modules/modperl/Makefile.gen0000644000175000017500000000134012235710266017716 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.2/modules/modperl/modperl.i0000644000175000017500000001652612235710266017336 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. */ %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/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 }; %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/ZNCString.h" %include "../include/znc/defines.h" %include "../include/znc/Utils.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 new CWebSubPage(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.2/modules/modperl/ZNC.cpp0000644000175000017500001446563712235710277016702 0ustar somebodysomebody/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.9 * * 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 # 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 not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCompare(const char *nb, const char *tb) { int equiv = 0; const char* te = tb + strlen(tb); const char* ne = nb; while (!equiv && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; if (*ne) ++ne; } return equiv; } /* 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) { register size_t l = 0; register size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ register size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { register 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 { register 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"; register const unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register 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) { register unsigned char *u = (unsigned char *) ptr; register const unsigned char *eu = u + sz; for (; u != eu; ++u) { register char d = *(c++); register 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) /* 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); if (!tc) { 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_CConfig__EntryMap__const_iterator swig_types[9] #define SWIGTYPE_p_CConfig__SubConfigMap__const_iterator swig_types[10] #define SWIGTYPE_p_CConnectQueueTimer swig_types[11] #define SWIGTYPE_p_CCron swig_types[12] #define SWIGTYPE_p_CDebug swig_types[13] #define SWIGTYPE_p_CDebugStream swig_types[14] #define SWIGTYPE_p_CDir swig_types[15] #define SWIGTYPE_p_CException swig_types[16] #define SWIGTYPE_p_CExecSock swig_types[17] #define SWIGTYPE_p_CFPTimer swig_types[18] #define SWIGTYPE_p_CFile swig_types[19] #define SWIGTYPE_p_CGetAddrInfo swig_types[20] #define SWIGTYPE_p_CHTTPSock swig_types[21] #define SWIGTYPE_p_CIRCNetwork swig_types[22] #define SWIGTYPE_p_CIRCSock swig_types[23] #define SWIGTYPE_p_CIncomingConnection swig_types[24] #define SWIGTYPE_p_CListener swig_types[25] #define SWIGTYPE_p_CModCommand swig_types[26] #define SWIGTYPE_p_CModInfo swig_types[27] #define SWIGTYPE_p_CModule swig_types[28] #define SWIGTYPE_p_CModules swig_types[29] #define SWIGTYPE_p_CNick swig_types[30] #define SWIGTYPE_p_CPerlModule swig_types[31] #define SWIGTYPE_p_CPerlSocket swig_types[32] #define SWIGTYPE_p_CPerlTimer 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_CSmartPtrT_CAuthBase_t swig_types[42] #define SWIGTYPE_p_CSmartPtrT_CTemplateOptions_t swig_types[43] #define SWIGTYPE_p_CSmartPtrT_CTemplateTagHandler_t swig_types[44] #define SWIGTYPE_p_CSmartPtrT_CWebSession_t swig_types[45] #define SWIGTYPE_p_CSmartPtrT_CWebSubPage_t swig_types[46] #define SWIGTYPE_p_CSockCommon swig_types[47] #define SWIGTYPE_p_CSockManager swig_types[48] #define SWIGTYPE_p_CSocket swig_types[49] #define SWIGTYPE_p_CSocketManager swig_types[50] #define SWIGTYPE_p_CString swig_types[51] #define SWIGTYPE_p_CString__EEscape swig_types[52] #define SWIGTYPE_p_CTable swig_types[53] #define SWIGTYPE_p_CTemplate swig_types[54] #define SWIGTYPE_p_CTemplateLoopContext swig_types[55] #define SWIGTYPE_p_CTemplateOptions swig_types[56] #define SWIGTYPE_p_CTemplateTagHandler swig_types[57] #define SWIGTYPE_p_CTimer swig_types[58] #define SWIGTYPE_p_CUser swig_types[59] #define SWIGTYPE_p_CUtils swig_types[60] #define SWIGTYPE_p_CWebSession swig_types[61] #define SWIGTYPE_p_CWebSessionMap swig_types[62] #define SWIGTYPE_p_CWebSock swig_types[63] #define SWIGTYPE_p_CWebSubPage swig_types[64] #define SWIGTYPE_p_CZNC swig_types[65] #define SWIGTYPE_p_CZNCSock swig_types[66] #define SWIGTYPE_p_CZNCTagHandler 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__iterator swig_types[80] #define SWIGTYPE_p_ModCmdFunc swig_types[81] #define SWIGTYPE_p_ModDirList swig_types[82] #define SWIGTYPE_p_SCString swig_types[83] #define SWIGTYPE_p_String swig_types[84] #define SWIGTYPE_p_SubConfig swig_types[85] #define SWIGTYPE_p_SubConfigMap swig_types[86] #define SWIGTYPE_p_SubConfigMapIterator swig_types[87] #define SWIGTYPE_p_TSocketManagerT_CZNCSock_t swig_types[88] #define SWIGTYPE_p_TrafficStatsMap swig_types[89] #define SWIGTYPE_p_TrafficStatsPair swig_types[90] #define SWIGTYPE_p_bool swig_types[91] #define SWIGTYPE_p_char swig_types[92] #define SWIGTYPE_p_difference_type swig_types[93] #define SWIGTYPE_p_double swig_types[94] #define SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule swig_types[95] #define SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPerlModule swig_types[96] #define SWIGTYPE_p_f_p_CModule_p_CFPTimer__void swig_types[97] #define SWIGTYPE_p_f_r_std__ostream__r_std__ostream swig_types[98] #define SWIGTYPE_p_fd_set swig_types[99] #define SWIGTYPE_p_gid_t swig_types[100] #define SWIGTYPE_p_in_addr swig_types[101] #define SWIGTYPE_p_int swig_types[102] #define SWIGTYPE_p_int32_t swig_types[103] #define SWIGTYPE_p_int64_t swig_types[104] #define SWIGTYPE_p_key_type swig_types[105] #define SWIGTYPE_p_long swig_types[106] #define SWIGTYPE_p_mapped_type swig_types[107] #define SWIGTYPE_p_mode_t swig_types[108] #define SWIGTYPE_p_size_type swig_types[109] #define SWIGTYPE_p_sockaddr_in swig_types[110] #define SWIGTYPE_p_sockaddr_storage swig_types[111] #define SWIGTYPE_p_socklen_t swig_types[112] #define SWIGTYPE_p_ssize_t swig_types[113] #define SWIGTYPE_p_stat swig_types[114] #define SWIGTYPE_p_std__dequeT_CBufLine_t swig_types[115] #define SWIGTYPE_p_std__listT_CIRCNetwork_p_t swig_types[116] #define SWIGTYPE_p_std__listT_CString_t swig_types[117] #define SWIGTYPE_p_std__mapT_CString_CConfigEntry_t swig_types[118] #define SWIGTYPE_p_std__mapT_CString_CNick_t swig_types[119] #define SWIGTYPE_p_std__mapT_CString_CString_t swig_types[120] #define SWIGTYPE_p_std__mapT_CString_CUser_p_t swig_types[121] #define SWIGTYPE_p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_t swig_types[122] #define SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_t_t 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__vectorT_CChan_p_t swig_types[138] #define SWIGTYPE_p_std__vectorT_CClient_p_t swig_types[139] #define SWIGTYPE_p_std__vectorT_CCron_p_t swig_types[140] #define SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t swig_types[141] #define SWIGTYPE_p_std__vectorT_CListener_p_t swig_types[142] #define SWIGTYPE_p_std__vectorT_CServer_p_t swig_types[143] #define SWIGTYPE_p_std__vectorT_CSmartPtrT_CTemplateTagHandler_t_t swig_types[144] #define SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_t swig_types[145] #define SWIGTYPE_p_std__vectorT_CString_t swig_types[146] #define SWIGTYPE_p_std__vectorT_CTemplate_p_t swig_types[147] #define SWIGTYPE_p_std__vectorT_Csock_p_t swig_types[148] #define SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t swig_types[149] #define SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t swig_types[150] #define SWIGTYPE_p_time_t swig_types[151] #define SWIGTYPE_p_timeval swig_types[152] #define SWIGTYPE_p_uid_t swig_types[153] #define SWIGTYPE_p_uint16_t swig_types[154] #define SWIGTYPE_p_uint32_t swig_types[155] #define SWIGTYPE_p_uint64_t swig_types[156] #define SWIGTYPE_p_unsigned_int swig_types[157] #define SWIGTYPE_p_unsigned_short swig_types[158] #define SWIGTYPE_p_value_type swig_types[159] #define SWIGTYPE_p_void swig_types[160] static swig_type_info *swig_types[162]; static swig_module_info swig_module = {swig_types, 161, 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 0x020009 #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/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 #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; } 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; } } { /* not char*, try to cast the scalar to string */ STRLEN len = 0; char *cstr = SvPV(obj, len); if (!cstr) { return SWIG_TypeError; } size_t size = len + 1; if (cptr && 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; } } SWIGINTERN int SWIG_AsPtr_std_string SWIG_PERL_DECL_ARGS_2(SV * obj, CString **val) { char* buf = 0 ; size_t size = 0; int found = 0; if (SvMAGICAL(obj)) { SV *tmp = sv_newmortal(); SvSetSV(tmp, obj); obj = tmp; } 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)) { if (val) *val = vptr; return res; } } 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) { buf = vptr; size = vptr ? (strlen(vptr) + 1) : 0; found = 1; } } if (!found) { STRLEN len = 0; buf = SvPV(obj, len); size = len + 1; found = 1; } if (found) { if (buf) { if (val) *val = new CString(buf, size - 1); return SWIG_NEWOBJ; } else { if (val) *val = 0; return SWIG_OLDOBJ; } } 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_std_string SWIG_PERL_DECL_ARGS_1(const CString& s) { if (s.size()) { return SWIG_FromCharPtrAndSize(s.data(), s.size()); } else { return SWIG_FromCharPtrAndSize(s.c_str(), 0); } } 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 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)); } 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; } 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; } 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 ((v < -FLT_MAX || v > FLT_MAX)) { 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)) { if ((csize == size + 1) && cptr && !(cptr[csize-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"); CSmartPtr< CWebSubPage > x = self->back(); self->pop_back(); return x; } SWIGINTERN CSmartPtr< 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,CSmartPtr< 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 new CWebSubPage(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_setiv(SvRV(sv), PTR2IV(&CS_BLOCKSIZE)); return 1; } #ifdef PERL_OBJECT }; #endif #ifdef __cplusplus } #endif #ifdef __cplusplus extern "C" { #endif XS(_wrap_new_CString) { { int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CString();"); } result = (CString *)new CString(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CString, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CString) { { CString *arg1 = (CString *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CString(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CString, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CString" "', argument " "1"" of type '" "CString *""'"); } arg1 = reinterpret_cast< CString * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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 | SWIG_SHADOW); 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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(*result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res1)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); 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_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) { { 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_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) { { 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); SWIG_croak_null(); } } 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); 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; CConfig::EntryMapIterator 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_CConfig__EntryMap__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; CConfig::EntryMapIterator 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_CConfig__EntryMap__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; CConfig::SubConfigMapIterator 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_CConfig__SubConfigMap__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; CConfig::SubConfigMapIterator 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_CConfig__SubConfigMap__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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSSockAddr_SinPort" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSSockAddr_SinPort" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(argp2)); } } (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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); SWIG_croak_null(); } } XS(_wrap_GetCsockClassIdx) { { int argvi = 0; int result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: GetCsockClassIdx();"); } result = (int)GetCsockClassIdx(); 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 ; void *argp3 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: __Perror(s,pszFile,iLineNo);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_std_string 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); { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "__Perror" "', argument " "3"" of type '" "uint32_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__Perror" "', argument " "3"" of type '" "uint32_t""'"); } else { arg3 = *(reinterpret_cast< uint32_t * >(argp3)); } } __Perror((CString const &)*arg1,(char const *)arg2,arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res1)) free((char*)arg1); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0); 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 ; void *argp3 ; int res3 = 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); { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CCron_StartMaxCycles" "', argument " "3"" of type '" "uint32_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CCron_StartMaxCycles" "', argument " "3"" of type '" "uint32_t""'"); } else { arg3 = *(reinterpret_cast< uint32_t * >(argp3)); } } (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 ; void *argp3 ; int res3 = 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); { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CCron_StartMaxCycles" "', argument " "3"" of type '" "uint32_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CCron_StartMaxCycles" "', argument " "3"" of type '" "uint32_t""'"); } else { arg3 = *(reinterpret_cast< uint32_t * >(argp3)); } } (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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_uint32_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_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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_uint32_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_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_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_NewPointerObj((new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0); 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_NewPointerObj((new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0); 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 *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = (bool)(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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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< int,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< int,short > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_GatherFDsForSelect" "', argument " "2"" of type '" "std::map< int,short > &""'"); } arg2 = reinterpret_cast< std::map< int,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< int,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< int,short > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_FDsThatTriggered" "', argument " "2"" of type '" "std::map< int,short > const &""'"); } arg2 = reinterpret_cast< std::map< int,short > * >(argp2); result = (bool)(arg1)->FDsThatTriggered((std::map< int,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< int,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< int,short > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_CheckFDs" "', argument " "2"" of type '" "std::map< int,short > const &""'"); } arg2 = reinterpret_cast< std::map< int,short > * >(argp2); result = (bool)(arg1)->CheckFDs((std::map< int,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 ; int 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 '" "int""'"); } arg2 = static_cast< int >(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 ; 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: 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 '" "int""'"); } arg2 = static_cast< int >(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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); SWIG_croak_null(); } } XS(_wrap_CSockCommon_DelCron__SWIG_3) { { CSockCommon *arg1 = (CSockCommon *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *(reinterpret_cast< uint32_t * >(argp2)); } } (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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_uint32_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_CSockCommon, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_std_string 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_std_string 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_std_string 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< int,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< int,short > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_CheckFDs" "', argument " "2"" of type '" "std::map< int,short > const &""'"); } arg2 = reinterpret_cast< std::map< int,short > * >(argp2); (arg1)->CheckFDs((std::map< int,short > const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSockCommon_AssignFDs) { { CSockCommon *arg1 = (CSockCommon *) 0 ; std::map< int,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< int,short > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_AssignFDs" "', argument " "2"" of type '" "std::map< int,short > &""'"); } arg2 = reinterpret_cast< std::map< int,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 ; void *argp2 ; int res2 = 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_std_string 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; } { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Csock" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Csock" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(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 '" "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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); SWIG_croak_null(); } } XS(_wrap_new_Csock__SWIG_3) { { CString *arg1 = 0 ; uint16_t arg2 ; int res1 = SWIG_OLDOBJ ; void *argp2 ; int res2 = 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_std_string 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; } { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Csock" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Csock" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(argp2)); } } 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_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: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_std_string 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_uint16_t, 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(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 ; void *argp3 ; int res3 = 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_std_string 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; } { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } else { arg3 = *(reinterpret_cast< uint16_t * >(argp3)); } } 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; 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_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock___lshift__" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *(reinterpret_cast< uint32_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_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 ; 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_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock___lshift__" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *(reinterpret_cast< uint64_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_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_uint32_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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_int64_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 == 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_uint64_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: 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_std_string 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_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock___lshift____SWIG_4); 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 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; void *argp5 ; int res5 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(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 '" "Csock_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_std_string 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; } { res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Csock_Listen" "', argument " "5"" of type '" "uint32_t""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "5"" of type '" "uint32_t""'"); } else { arg5 = *(reinterpret_cast< uint32_t * >(argp5)); } } 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)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)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 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; void *argp5 ; int res5 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(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 '" "Csock_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_std_string 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; } { res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Csock_Listen" "', argument " "5"" of type '" "uint32_t""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "5"" of type '" "uint32_t""'"); } else { arg5 = *(reinterpret_cast< uint32_t * >(argp5)); } } 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)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(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 '" "Csock_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_std_string 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)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(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 '" "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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(argp2)); } } 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_uint16_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_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_uint16_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(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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_uint16_t, 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; { int res = SWIG_AsPtr_std_string 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_uint16_t, 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(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_std_string 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(4), &vptr, SWIGTYPE_p_uint32_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 == 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_uint16_t, 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; { int res = SWIG_AsPtr_std_string 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_uint32_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(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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetLocalIP(); ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1((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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetRemoteIP(); ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1((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) { { 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_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) { { 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_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) { { 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_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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(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 ; void *argp3 ; int res3 = 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); { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_SetTimeout" "', argument " "3"" of type '" "uint32_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetTimeout" "', argument " "3"" of type '" "uint32_t""'"); } else { arg3 = *(reinterpret_cast< uint32_t * >(argp3)); } } (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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_uint32_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_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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetTimeoutType" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetTimeoutType" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *(reinterpret_cast< uint32_t * >(argp2)); } } (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_NewPointerObj((new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0); 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 | SWIG_SHADOW); 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 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetMaxBufferThreshold) { { Csock *arg1 = (Csock *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetMaxBufferThreshold" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetMaxBufferThreshold" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *(reinterpret_cast< uint32_t * >(argp2)); } } (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_NewPointerObj((new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0); 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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0); 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_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0); 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_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0); 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 ; void *argp2 ; int res2 = 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 *""'"); } 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_GetAvgRead" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetAvgRead" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *(reinterpret_cast< uint64_t * >(argp2)); } } result = (double)(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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (double)(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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_uint64_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_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 ; void *argp2 ; int res2 = 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 *""'"); } 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_GetAvgWrite" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetAvgWrite" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *(reinterpret_cast< uint64_t * >(argp2)); } } result = (double)(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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (double)(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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_uint64_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_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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetRemotePort(); ST(argvi) = SWIG_NewPointerObj((new uint16_t(static_cast< const uint16_t& >(result))), SWIGTYPE_p_uint16_t, SWIG_POINTER_OWN | 0); 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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetLocalPort(); ST(argvi) = SWIG_NewPointerObj((new uint16_t(static_cast< const uint16_t& >(result))), SWIGTYPE_p_uint16_t, SWIG_POINTER_OWN | 0); 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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetPort(); ST(argvi) = SWIG_NewPointerObj((new uint16_t(static_cast< const uint16_t& >(result))), SWIGTYPE_p_uint16_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetPort) { { Csock *arg1 = (Csock *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(argp2)); } } (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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (Csock::ECloseType)(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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(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_GetWriteBuffer) { { 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_GetWriteBuffer(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_GetWriteBuffer" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &(arg1)->GetWriteBuffer(); ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1((CString)(*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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &(arg1)->GetParentSockName(); ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1((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 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetRate" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetRate" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *(reinterpret_cast< uint32_t * >(argp2)); } } { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_SetRate" "', argument " "3"" of type '" "uint64_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetRate" "', argument " "3"" of type '" "uint64_t""'"); } else { arg3 = *(reinterpret_cast< uint64_t * >(argp3)); } } (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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetRateBytes(); ST(argvi) = SWIG_NewPointerObj((new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0); 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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (arg1)->GetRateTime(); ST(argvi) = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0); 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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 ; void *argp3 ; int res3 = 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_std_string 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; } { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_ConnectionFrom" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConnectionFrom" "', argument " "3"" of type '" "uint16_t""'"); } else { arg3 = *(reinterpret_cast< uint16_t * >(argp3)); } } 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; void *argp3 ; int res3 = 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_std_string 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; } { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_Listening" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listening" "', argument " "3"" of type '" "uint16_t""'"); } else { arg3 = *(reinterpret_cast< uint16_t * >(argp3)); } } (arg1)->Listening((CString const &)*arg2,arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } 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 = (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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (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 *""'"); } 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 = (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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (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 *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (int)(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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } 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)(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 ; void *argp2 ; int res2 = 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_std_string 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; } { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSConnection" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSConnection" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(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 '" "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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); SWIG_croak_null(); } } XS(_wrap_new_CSConnection__SWIG_1) { { CString *arg1 = 0 ; uint16_t arg2 ; int res1 = SWIG_OLDOBJ ; void *argp2 ; int res2 = 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_std_string 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; } { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSConnection" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSConnection" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(argp2)); } } 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_uint16_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; { int res = SWIG_AsPtr_std_string 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_uint16_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(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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_NewPointerObj((new uint16_t(static_cast< const uint16_t& >(result))), SWIGTYPE_p_uint16_t, SWIG_POINTER_OWN | 0); 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); SWIG_croak_null(); } } XS(_wrap_CSConnection_SetPort) { { CSConnection *arg1 = (CSConnection *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSConnection_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSConnection_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(argp2)); } } (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 ; void *argp2 ; int res2 = 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_std_string 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; } { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSSSLConnection" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSSSLConnection" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(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 '" "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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); SWIG_croak_null(); } } XS(_wrap_new_CSSSLConnection__SWIG_1) { { CString *arg1 = 0 ; uint16_t arg2 ; int res1 = SWIG_OLDOBJ ; void *argp2 ; int res2 = 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_std_string 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; } { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSSSLConnection" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSSSLConnection" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(argp2)); } } 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_uint16_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; { int res = SWIG_AsPtr_std_string 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_uint16_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(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 ; void *argp1 ; int res1 = 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);"); } { res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } else { arg1 = *(reinterpret_cast< uint16_t * >(argp1)); } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); SWIG_croak_null(); } } XS(_wrap_new_CSListener__SWIG_1) { { uint16_t arg1 ; CString *arg2 = 0 ; void *argp1 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CSListener *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_CSListener(iPort,sBindHost);"); } { res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } else { arg1 = *(reinterpret_cast< uint16_t * >(argp1)); } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); SWIG_croak_null(); } } XS(_wrap_new_CSListener__SWIG_2) { { uint16_t arg1 ; void *argp1 ; int res1 = 0 ; int argvi = 0; CSListener *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CSListener(iPort);"); } { res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } else { arg1 = *(reinterpret_cast< uint16_t * >(argp1)); } } 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_uint16_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_uint16_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_std_string 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_uint16_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_std_string 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_NewPointerObj((new uint16_t(static_cast< const uint16_t& >(result))), SWIGTYPE_p_uint16_t, SWIG_POINTER_OWN | 0); 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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_NewPointerObj((new uint32_t(static_cast< const uint32_t& >(result))), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0); 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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSListener_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSListener_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(argp2)); } } (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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSListener_SetTimeout" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSListener_SetTimeout" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *(reinterpret_cast< uint32_t * >(argp2)); } } (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 ; void *argp3 ; int res3 = 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_std_string 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; } { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } else { arg3 = *(reinterpret_cast< uint16_t * >(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_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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; void *argp3 ; int res3 = 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_std_string 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; } { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } else { arg3 = *(reinterpret_cast< uint16_t * >(argp3)); } } 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_uint16_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_CSocketManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_std_string 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_uint16_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(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 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *(reinterpret_cast< uint64_t * >(argp2)); } } { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "3"" of type '" "uint64_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "3"" of type '" "uint64_t""'"); } else { arg3 = *(reinterpret_cast< uint64_t * >(argp3)); } } { 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 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *(reinterpret_cast< uint64_t * >(argp2)); } } { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "3"" of type '" "uint64_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "3"" of type '" "uint64_t""'"); } else { arg3 = *(reinterpret_cast< uint64_t * >(argp3)); } } (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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_uint64_t, 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_uint64_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_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_uint64_t, 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_uint64_t, 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_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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); SWIG_croak_null(); } } XS(_wrap_CSocketManager_FindSockByRemotePort) { { CSocketManager *arg1 = (CSocketManager *) 0 ; uint16_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: 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_FindSockByRemotePort" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FindSockByRemotePort" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(argp2)); } } 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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_FindSockByLocalPort" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FindSockByLocalPort" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(argp2)); } } 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = (int)(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 *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = (arg1)->GetSelectTimeout(); ST(argvi) = SWIG_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_SetSelectTimeout) { { CSocketManager *arg1 = (CSocketManager *) 0 ; uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_SetSelectTimeout" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_SetSelectTimeout" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *(reinterpret_cast< uint64_t * >(argp2)); } } (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_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0); 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_NewPointerObj((new uint64_t(static_cast< const uint64_t& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_FDSetCheck) { { CSocketManager *arg1 = (CSocketManager *) 0 ; int arg2 ; std::map< int,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 '" "int""'"); } arg2 = static_cast< int >(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< int,short > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FDSetCheck" "', argument " "3"" of type '" "std::map< int,short > &""'"); } arg3 = reinterpret_cast< std::map< int,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 ; int arg2 ; std::map< int,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 '" "int""'"); } arg2 = static_cast< int >(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< int,short > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FDHasCheck" "', argument " "3"" of type '" "std::map< int,short > &""'"); } arg3 = reinterpret_cast< std::map< int,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 ; void *argp3 ; int res3 = 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_std_string 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; } { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZNCSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } else { arg3 = *(reinterpret_cast< uint16_t * >(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 '" "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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; void *argp3 ; int res3 = 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_std_string 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; } { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZNCSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } else { arg3 = *(reinterpret_cast< uint16_t * >(argp3)); } } 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_uint16_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_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_std_string 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_uint16_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(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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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 *""'"); } 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)(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_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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res7)) free((char*)arg7); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res7)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res7)) free((char*)arg7); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res7)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; void *argp5 ; int res5 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(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 '" "CSocket_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_std_string 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; } { res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CSocket_Listen" "', argument " "5"" of type '" "uint32_t""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "5"" of type '" "uint32_t""'"); } else { arg5 = *(reinterpret_cast< uint32_t * >(argp5)); } } 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)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)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 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; void *argp5 ; int res5 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(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 '" "CSocket_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_std_string 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; } { res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CSocket_Listen" "', argument " "5"" of type '" "uint32_t""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "5"" of type '" "uint32_t""'"); } else { arg5 = *(reinterpret_cast< uint32_t * >(argp5)); } } 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)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(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 '" "CSocket_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_std_string 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)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(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 '" "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 ; void *argp2 ; int res2 = 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); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } else { arg2 = *(reinterpret_cast< uint16_t * >(argp2)); } } 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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_uint16_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_CSocket, 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_uint16_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(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_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_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_CSocket, 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_uint16_t, 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(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_std_string 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; 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_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_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_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: 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_uint16_t, 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; { int res = SWIG_AsPtr_std_string 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(4), &vptr, SWIGTYPE_p_uint32_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: 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_uint16_t, 0); _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_std_string 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(4), &vptr, SWIGTYPE_p_uint32_t, 0); _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_0_3); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Listen__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Listen__SWIG_0_2); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Listen__SWIG_1); 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_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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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_std_string 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 *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); result = (CFile::EFileAttr)(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 *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); result = (bool)(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_std_string 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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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_std_string 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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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_std_string 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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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 *""'"); } 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)(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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; CModCommand::ModCmdFunc arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; int res1 = SWIG_OLDOBJ ; 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_std_string 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; } { int res = SWIG_ConvertMember(ST(1), SWIG_as_voidptr(&arg2), 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 " "2"" of type '" "CModCommand::ModCmdFunc""'"); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); SWIG_croak_null(); } } XS(_wrap_new_CModCommand__SWIG_2) { { 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_std_string 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_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_std_string 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_std_string 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_new_CModCommand__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CModCommand__SWIG_2); return; case 3: 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_std_string SWIG_PERL_CALL_ARGS_1((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; CModCommand::ModCmdFunc 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::ModCmdFunc)((CModCommand const *)arg1)->GetFunction(); ST(argvi) = SWIG_NewMemberObj(SWIG_as_voidptr(&result), sizeof(CModCommand::ModCmdFunc), SWIGTYPE_m_CModule__f_r_q_const__CString__void); 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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((CString)(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModCommand_Call) { { CModCommand *arg1 = (CModCommand *) 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; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModCommand_Call(self,pMod,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); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModCommand_Call" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModCommand_Call" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModCommand_Call" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ((CModCommand const *)arg1)->Call(arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); 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_std_string 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_std_string 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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); SWIG_croak_null(); } } XS(_wrap_CModule_AddSubPage) { { CModule *arg1 = (CModule *) 0 ; SwigValueWrapper< CSmartPtr< 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_CSmartPtrT_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_CSmartPtrT_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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_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_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_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_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_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_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_std_string 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)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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_std_string 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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); 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_std_string 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)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_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_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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res6)) free((char*)arg6); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res6)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_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; } } 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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 *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CUser *)(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 *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CIRCNetwork *)(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 *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CClient *)(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 *""'"); } arg1 = reinterpret_cast< CModule * >(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_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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); SWIG_croak_null(); } } XS(_wrap_CModule_OnLoginAttempt) { { CModule *arg1 = (CModule *) 0 ; SwigValueWrapper< CSmartPtr< 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_CSmartPtrT_CAuthBase_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnLoginAttempt" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnLoginAttempt" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } else { arg2 = *(reinterpret_cast< CSmartPtr< 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (CUser *)(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 *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (CIRCNetwork *)(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 *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (CClient *)(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_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_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_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_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_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_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_std_string 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_std_string 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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); 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_std_string 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)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_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_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_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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); SWIG_croak_null(); } } XS(_wrap_CModules_OnLoginAttempt) { { CModules *arg1 = (CModules *) 0 ; SwigValueWrapper< CSmartPtr< 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_CSmartPtrT_CAuthBase_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnLoginAttempt" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnLoginAttempt" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } else { arg2 = *(reinterpret_cast< CSmartPtr< 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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 *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (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 ; bool arg2 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CChan_JoinUser(self,bForce,sKey,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_JoinUser" "', 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_JoinUser" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_JoinUser" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_JoinUser" "', 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 '" "CChan_JoinUser" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); (arg1)->JoinUser(arg2,(CString const &)*arg3,arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); SWIG_croak_null(); } } XS(_wrap_CChan_JoinUser__SWIG_1) { { CChan *arg1 = (CChan *) 0 ; bool arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CChan_JoinUser(self,bForce,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); 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_JoinUser" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_JoinUser" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_JoinUser" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->JoinUser(arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); SWIG_croak_null(); } } XS(_wrap_CChan_JoinUser__SWIG_2) { { 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_JoinUser(self,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_JoinUser" "', 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_JoinUser" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->JoinUser(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_JoinUser__SWIG_3) { { 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_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_CChan, 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_std_string 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 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; { int res = SWIG_AsPtr_std_string 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &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_CChan_JoinUser__SWIG_3); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_JoinUser__SWIG_2); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_JoinUser__SWIG_1); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_JoinUser__SWIG_0); return; } } croak("No matching function for overloaded 'CChan_JoinUser'"); 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_AttachUser) { { 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_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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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) { { 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_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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res1)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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 *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (arg1)->GetLocalDCCIP(); ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_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 *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (std::vector< CClient * > *) &(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 *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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 *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (arg1)->GetNetworkPath(); ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1((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 *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (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 *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CUser *)(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_std_string SWIG_PERL_CALL_ARGS_1((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 *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (std::vector< CClient * > *) &(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_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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)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_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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_AddQueryBuffer__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_AddQueryBuffer(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_AddQueryBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_AddQueryBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddQueryBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddQueryBuffer((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddQueryBuffer__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_AddQueryBuffer(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_AddQueryBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AddQueryBuffer((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddQueryBuffer) { 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_std_string 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_std_string 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_std_string 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_AddQueryBuffer__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_AddQueryBuffer__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_AddQueryBuffer'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_UpdateQueryBuffer__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_UpdateQueryBuffer(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_UpdateQueryBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->UpdateQueryBuffer((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_UpdateQueryBuffer__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_UpdateQueryBuffer(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_UpdateQueryBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateQueryBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->UpdateQueryBuffer((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_UpdateQueryBuffer) { 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_UpdateQueryBuffer__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_UpdateQueryBuffer__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_UpdateQueryBuffer'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_ClearQueryBuffer) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_ClearQueryBuffer(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_ClearQueryBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->ClearQueryBuffer(); 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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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 ; Csock *arg4 = (Csock *) 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_std_string 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_std_string 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_Csock, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CAuthBase_SetLoginInfo" "', argument " "4"" of type '" "Csock *""'"); } arg4 = reinterpret_cast< Csock * >(argp4); (arg1)->SetLoginInfo((CString const &)*arg2,(CString const &)*arg3,arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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 *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_std_string 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)(arg1)->IsCapEnabled((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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) { { 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_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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (std::vector< CClient * > *) &(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 *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (arg1)->GetFullName(); ST(argvi) = SWIG_From_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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 ; bool arg3 ; EAddrType arg4 ; CListener::EAcceptType arg5 ; unsigned short val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int argvi = 0; CListener *result = 0 ; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: new_CListener(uPort,sBindHost,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_std_string 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; } 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_CListener" "', 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 '" "new_CListener" "', argument " "4"" of type '" "EAddrType""'"); } arg4 = static_cast< EAddrType >(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 '" "CListener::EAcceptType""'"); } arg5 = static_cast< CListener::EAcceptType >(val5); result = (CListener *)new CListener(arg1,(CString const &)*arg2,arg3,arg4,arg5); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CListener, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); 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_std_string SWIG_PERL_CALL_ARGS_1((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_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 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CRealListener *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CRealListener(pParent);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); SWIG_croak_null(); } } XS(_wrap_new_CIncomingConnection) { { CString *arg1 = 0 ; unsigned short arg2 ; CListener::EAcceptType arg3 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int argvi = 0; CIncomingConnection *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CIncomingConnection(sHostname,uPort,eAcceptType);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_std_string 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); result = (CIncomingConnection *)new CIncomingConnection((CString const &)*arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIncomingConnection, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; 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_OnLogin(self,sUser,sPass);"); } 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_std_string 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_std_string 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; } result = (bool)(arg1)->OnLogin((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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); SWIG_croak_null(); } } XS(_wrap_new_CTemplate__SWIG_2) { { CSmartPtr< 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_CSmartPtrT_CTemplateOptions_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CTemplate" "', argument " "1"" of type '" "CSmartPtr< CTemplateOptions > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTemplate" "', argument " "1"" of type '" "CSmartPtr< CTemplateOptions > const &""'"); } arg1 = reinterpret_cast< CSmartPtr< 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((CSmartPtr< 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) { { CSmartPtr< 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_CSmartPtrT_CTemplateOptions_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CTemplate" "', argument " "1"" of type '" "CSmartPtr< CTemplateOptions > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTemplate" "', argument " "1"" of type '" "CSmartPtr< CTemplateOptions > const &""'"); } arg1 = reinterpret_cast< CSmartPtr< CTemplateOptions > * >(argp1); result = (CTemplate *)new CTemplate((CSmartPtr< 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_CSmartPtrT_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_std_string 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_CSmartPtrT_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< CSmartPtr< 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_CSmartPtrT_CTemplateTagHandler_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_AddTagHandler" "', argument " "2"" of type '" "CSmartPtr< CTemplateTagHandler >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_AddTagHandler" "', argument " "2"" of type '" "CSmartPtr< CTemplateTagHandler >""'"); } else { arg2 = *(reinterpret_cast< CSmartPtr< 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< CSmartPtr< 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< CSmartPtr< CTemplateTagHandler > > *) &(arg1)->GetTagHandlers(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CSmartPtrT_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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_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_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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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) { { int argvi = 0; CWebSock *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CWebSock();"); } result = (CWebSock *)new CWebSock(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSock, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: 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 ; 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_OnLogin(self,sUser,sPass);"); } 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_std_string 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_std_string 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; } result = (bool)(arg1)->OnLogin((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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); SWIG_croak_null(); } } XS(_wrap_CWebSock_GetSession) { { CWebSock *arg1 = (CWebSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< CSmartPtr< 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 CSmartPtr< CWebSession >(static_cast< const CSmartPtr< CWebSession >& >(result))), SWIGTYPE_p_CSmartPtrT_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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res1)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); SWIG_croak_null(); } } XS(_wrap_CWebSock_GetModule) { { CWebSock *arg1 = (CWebSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CModule *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSock_GetModule(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_GetModule" "', argument " "1"" of type '" "CWebSock const *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); result = (CModule *)((CWebSock 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_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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((CString)(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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 ; 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_ParseConfig(self,sConfig);"); } 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_std_string 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; } result = (bool)(arg1)->ParseConfig((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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< CSmartPtr< 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_CSmartPtrT_CAuthBase_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AuthUser" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AuthUser" "', argument " "2"" of type '" "CSmartPtr< CAuthBase >""'"); } else { arg2 = *(reinterpret_cast< CSmartPtr< 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_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_FilterUncommonModules) { { CZNC *arg1 = (CZNC *) 0 ; std::set< CModInfo > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; size_t result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_FilterUncommonModules(self,ssModules);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_FilterUncommonModules" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(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 '" "CZNC_FilterUncommonModules" "', argument " "2"" of type '" "std::set< CModInfo > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_FilterUncommonModules" "', argument " "2"" of type '" "std::set< CModInfo > &""'"); } arg2 = reinterpret_cast< std::set< CModInfo > * >(argp2); result = (arg1)->FilterUncommonModules(*arg2); 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_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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_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_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_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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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 ; bool arg4 ; EAddrType arg5 ; CListener::EAcceptType arg6 ; CString *arg7 = 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 ; 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: CZNC_AddListener(self,uPort,sBindHost,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_std_string 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; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CZNC_AddListener" "', 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 '" "CZNC_AddListener" "', 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 '" "CZNC_AddListener" "', argument " "6"" of type '" "CListener::EAcceptType""'"); } arg6 = static_cast< CListener::EAcceptType >(val6); res7 = SWIG_ConvertPtr(ST(6), &argp7, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CZNC_AddListener" "', argument " "7"" of type '" "CString &""'"); } if (!argp7) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AddListener" "', argument " "7"" of type '" "CString &""'"); } arg7 = reinterpret_cast< CString * >(argp7); result = (bool)(arg1)->AddListener(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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); 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 == 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_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_std_string 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; { { 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; { { 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; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(6), &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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)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_std_string 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)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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_std_string 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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res4)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_CSmartPtrT_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_OnChanPermission) { { CPerlModule *arg1 = (CPerlModule *) 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: CPerlModule_OnChanPermission(self,OpNick,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_OnChanPermission" "', 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_OnChanPermission" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_OnChanPermission" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_OnChanPermission" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_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 '" "CPerlModule_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 '" "CPerlModule_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_CPerlModule_OnOp) { { CPerlModule *arg1 = (CPerlModule *) 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: CPerlModule_OnOp(self,OpNick,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_OnOp" "', 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_OnOp" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_OnOp" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_OnOp" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_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_CPerlModule_OnDeop) { { CPerlModule *arg1 = (CPerlModule *) 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: CPerlModule_OnDeop(self,OpNick,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_OnDeop" "', 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_OnDeop" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_OnDeop" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_OnDeop" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_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_CPerlModule_OnVoice) { { CPerlModule *arg1 = (CPerlModule *) 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: CPerlModule_OnVoice(self,OpNick,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_OnVoice" "', 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_OnVoice" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_OnVoice" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_OnVoice" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_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_CPerlModule_OnDevoice) { { CPerlModule *arg1 = (CPerlModule *) 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: CPerlModule_OnDevoice(self,OpNick,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_OnDevoice" "', 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_OnDevoice" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_OnDevoice" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_OnDevoice" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_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_CPerlModule_OnMode) { { CPerlModule *arg1 = (CPerlModule *) 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: CPerlModule_OnMode(self,OpNick,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_OnMode" "', 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_OnMode" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_OnMode" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_OnMode" "', argument " "4"" of type '" "char""'"); } arg4 = static_cast< char >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CPerlModule_OnMode" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_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 '" "CPerlModule_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)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res5)) free((char*)arg5); SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnRawMode) { { CPerlModule *arg1 = (CPerlModule *) 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: CPerlModule_OnRawMode(self,OpNick,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_OnRawMode" "', 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_OnRawMode" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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 '" "CPerlModule_OnRawMode" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnRawMode" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnRawMode" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnRawMode" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_std_string SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CPerlModule_OnRawMode" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)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_std_string 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_std_string 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)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); if (SWIG_IsNewObj(res5)) free((char*)arg5); 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_std_string 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)) free((char*)arg4); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) free((char*)arg3); 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_std_string 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_std_string 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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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_std_string 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)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)arg5); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) free((char*)arg4); if (SWIG_IsNewObj(res5)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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__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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_std_string 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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)ptr); } { CString *ptr = (CString *)0; int res = SWIG_AsPtr_std_string 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)) free((char*)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_std_string 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_std_string 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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_std_string 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)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)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_std_string SWIG_PERL_CALL_ARGS_1((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_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VWebSubPages__SWIG_2) { { unsigned int arg1 ; CSmartPtr< 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_CSmartPtrT_CWebSubPage_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VWebSubPages" "', argument " "2"" of type '" "CSmartPtr< CWebSubPage > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VWebSubPages" "', argument " "2"" of type '" "CSmartPtr< CWebSubPage > const &""'"); } arg2 = reinterpret_cast< CSmartPtr< CWebSubPage > * >(argp2); result = (std::vector< TWebSubPage > *)new std::vector< TWebSubPage >(arg1,(CSmartPtr< CWebSubPage > const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CSmartPtrT_CWebSubPage_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VWebSubPages__SWIG_3) { { std::vector< CSmartPtr< CWebSubPage > > *arg1 = 0 ; std::vector< CSmartPtr< CWebSubPage > > temp1 ; std::vector< CSmartPtr< CWebSubPage > > *v1 ; int argvi = 0; std::vector< TWebSubPage > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VWebSubPages(std::vector< CSmartPtr< CWebSubPage > > const &);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_CSmartPtrT_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 " "CSmartPtr< CWebSubPage >"); SV **tv; I32 len = av_len(av) + 1; CSmartPtr< CWebSubPage >* obj; for (int i=0; i"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of new_VWebSubPages. " "Expected an array of " "CSmartPtr< CWebSubPage >"); } } result = (std::vector< TWebSubPage > *)new std::vector< TWebSubPage >((std::vector< CSmartPtr< CWebSubPage > > const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CSmartPtrT_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_CSmartPtrT_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 */ CSmartPtr< CWebSubPage >* obj; SV **tv = av_fetch(av, 0, 0); if (SWIG_ConvertPtr(*tv, (void **)&obj, SWIGTYPE_p_CSmartPtrT_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_CSmartPtrT_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< CSmartPtr< CWebSubPage > > temp1 ; std::vector< CSmartPtr< 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_CSmartPtrT_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 " "CSmartPtr< CWebSubPage >"); SV **tv; I32 len = av_len(av) + 1; CSmartPtr< CWebSubPage >* obj; for (int i=0; i"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VWebSubPages_size. " "Expected an array of " "CSmartPtr< 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< CSmartPtr< CWebSubPage > > temp1 ; std::vector< CSmartPtr< 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_CSmartPtrT_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 " "CSmartPtr< CWebSubPage >"); SV **tv; I32 len = av_len(av) + 1; CSmartPtr< CWebSubPage >* obj; for (int i=0; i"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VWebSubPages_empty. " "Expected an array of " "CSmartPtr< 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_CSmartPtrT_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 ; CSmartPtr< 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_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VWebSubPages_push" "', argument " "2"" of type '" "CSmartPtr< CWebSubPage > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_push" "', argument " "2"" of type '" "CSmartPtr< CWebSubPage > const &""'"); } arg2 = reinterpret_cast< CSmartPtr< CWebSubPage > * >(argp2); (arg1)->push_back((CSmartPtr< 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< CSmartPtr< CWebSubPage > > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VWebSubPages_pop(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CSmartPtrT_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 CSmartPtr< CWebSubPage >(static_cast< const CSmartPtr< CWebSubPage >& >(result))), SWIGTYPE_p_CSmartPtrT_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; CSmartPtr< 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_CSmartPtrT_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 = (CSmartPtr< 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_CSmartPtrT_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 ; CSmartPtr< 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_CSmartPtrT_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_CSmartPtrT_CWebSubPage_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VWebSubPages_set" "', argument " "3"" of type '" "CSmartPtr< CWebSubPage > const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_set" "', argument " "3"" of type '" "CSmartPtr< CWebSubPage > const &""'"); } arg3 = reinterpret_cast< CSmartPtr< CWebSubPage > * >(argp3); try { std_vector_Sl_TWebSubPage_Sg__set(arg1,arg2,(CSmartPtr< 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_CSmartPtrT_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_std_string 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_std_string 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)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)arg3); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) free((char*)arg2); if (SWIG_IsNewObj(res3)) free((char*)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< CSmartPtr< CWebSubPage > > result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: _CreateWebSubPage(sName,sTitle,vParams,uFlags);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_std_string 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_std_string 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_CSmartPtrT_CWebSubPage_t, SWIG_POINTER_OWN | 0); argvi++ ; if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)arg2); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)arg1); if (SWIG_IsNewObj(res2)) free((char*)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_std_string 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)) free((char*)arg1); XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) free((char*)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_CClientTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((CClient *) x)); } static void *_p_CIRCSockTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((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_CClientTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((CClient *) x)); } static void *_p_CIRCSockTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((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_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 *) ((CClient *) 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_CPerlSocketTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *)(CSocket *) ((CPerlSocket *) 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 *) ((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_CConfig__EntryMap__const_iterator = {"_p_CConfig__EntryMap__const_iterator", "CConfig::EntryMap::const_iterator *|CConfig::EntryMapIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CConfig__SubConfigMap__const_iterator = {"_p_CConfig__SubConfigMap__const_iterator", "CConfig::SubConfigMap::const_iterator *|CConfig::SubConfigMapIterator *", 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*)"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_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_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_CSmartPtrT_CAuthBase_t = {"_p_CSmartPtrT_CAuthBase_t", "CSmartPtr< CAuthBase > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSmartPtrT_CTemplateOptions_t = {"_p_CSmartPtrT_CTemplateOptions_t", "CSmartPtr< CTemplateOptions > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSmartPtrT_CTemplateTagHandler_t = {"_p_CSmartPtrT_CTemplateTagHandler_t", "CSmartPtr< CTemplateTagHandler > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSmartPtrT_CWebSession_t = {"_p_CSmartPtrT_CWebSession_t", "CSmartPtr< CWebSession > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSmartPtrT_CWebSubPage_t = {"_p_CSmartPtrT_CWebSubPage_t", "CSmartPtr< CWebSubPage > *|TWebSubPage *", 0, 0, (void*)0, 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*)"ZNC::CString", 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_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_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__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__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_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 > *", 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__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_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_CSmartPtrT_CTemplateTagHandler_t_t = {"_p_std__vectorT_CSmartPtrT_CTemplateTagHandler_t_t", "std::vector< CSmartPtr< CTemplateTagHandler > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CSmartPtrT_CWebSubPage_t_t = {"_p_std__vectorT_CSmartPtrT_CWebSubPage_t_t", "std::vector< CSmartPtr< CWebSubPage > > *|std::vector< TWebSubPage > *|VWebSubPages *", 0, 0, (void*)"ZNC::VWebSubPages", 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__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_uint32_t = {"_p_uint32_t", "uint32_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_CConfig__EntryMap__const_iterator, &_swigt__p_CConfig__SubConfigMap__const_iterator, &_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_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_CRealListener, &_swigt__p_CSCharBuffer, &_swigt__p_CSConnection, &_swigt__p_CSListener, &_swigt__p_CSMonitorFD, &_swigt__p_CSSSLConnection, &_swigt__p_CSSockAddr, &_swigt__p_CServer, &_swigt__p_CSmartPtrT_CAuthBase_t, &_swigt__p_CSmartPtrT_CTemplateOptions_t, &_swigt__p_CSmartPtrT_CTemplateTagHandler_t, &_swigt__p_CSmartPtrT_CWebSession_t, &_swigt__p_CSmartPtrT_CWebSubPage_t, &_swigt__p_CSockCommon, &_swigt__p_CSockManager, &_swigt__p_CSocket, &_swigt__p_CSocketManager, &_swigt__p_CString, &_swigt__p_CString__EEscape, &_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_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__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__pairT_unsigned_long_long_unsigned_long_long_t_t, &_swigt__p_std__mapT_CString_std__vectorT_CString_t_t, &_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__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_CServer_p_t, &_swigt__p_std__vectorT_CSmartPtrT_CTemplateTagHandler_t_t, &_swigt__p_std__vectorT_CSmartPtrT_CWebSubPage_t_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__vectorT_CString_t_t, &_swigt__p_time_t, &_swigt__p_timeval, &_swigt__p_uid_t, &_swigt__p_uint16_t, &_swigt__p_uint32_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_CConfig__EntryMap__const_iterator[] = { {&_swigt__p_CConfig__EntryMap__const_iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CConfig__SubConfigMap__const_iterator[] = { {&_swigt__p_CConfig__SubConfigMap__const_iterator, 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_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_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_CSmartPtrT_CAuthBase_t[] = { {&_swigt__p_CSmartPtrT_CAuthBase_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSmartPtrT_CTemplateOptions_t[] = { {&_swigt__p_CSmartPtrT_CTemplateOptions_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSmartPtrT_CTemplateTagHandler_t[] = { {&_swigt__p_CSmartPtrT_CTemplateTagHandler_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSmartPtrT_CWebSession_t[] = { {&_swigt__p_CSmartPtrT_CWebSession_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSmartPtrT_CWebSubPage_t[] = { {&_swigt__p_CSmartPtrT_CWebSubPage_t, 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_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_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_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_Csock[] = { {&_swigt__p_CSocket, _p_CSocketTo_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__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__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_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__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_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_CSmartPtrT_CTemplateTagHandler_t_t[] = { {&_swigt__p_std__vectorT_CSmartPtrT_CTemplateTagHandler_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CSmartPtrT_CWebSubPage_t_t[] = { {&_swigt__p_std__vectorT_CSmartPtrT_CWebSubPage_t_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__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_uint32_t[] = { {&_swigt__p_uint32_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_CConfig__EntryMap__const_iterator, _swigc__p_CConfig__SubConfigMap__const_iterator, _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_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_CRealListener, _swigc__p_CSCharBuffer, _swigc__p_CSConnection, _swigc__p_CSListener, _swigc__p_CSMonitorFD, _swigc__p_CSSSLConnection, _swigc__p_CSSockAddr, _swigc__p_CServer, _swigc__p_CSmartPtrT_CAuthBase_t, _swigc__p_CSmartPtrT_CTemplateOptions_t, _swigc__p_CSmartPtrT_CTemplateTagHandler_t, _swigc__p_CSmartPtrT_CWebSession_t, _swigc__p_CSmartPtrT_CWebSubPage_t, _swigc__p_CSockCommon, _swigc__p_CSockManager, _swigc__p_CSocket, _swigc__p_CSocketManager, _swigc__p_CString, _swigc__p_CString__EEscape, _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_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__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__pairT_unsigned_long_long_unsigned_long_long_t_t, _swigc__p_std__mapT_CString_std__vectorT_CString_t_t, _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__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_CServer_p_t, _swigc__p_std__vectorT_CSmartPtrT_CTemplateTagHandler_t_t, _swigc__p_std__vectorT_CSmartPtrT_CWebSubPage_t_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__vectorT_CString_t_t, _swigc__p_time_t, _swigc__p_timeval, _swigc__p_uid_t, _swigc__p_uint16_t, _swigc__p_uint32_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,&SWIGTYPE_p_uint32_t }, {0,0,0,0} }; static swig_command_info swig_commands[] = { {"ZNCc::new_CString", _wrap_new_CString}, {"ZNCc::delete_CString", _wrap_delete_CString}, {"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_GetTimezones", _wrap_CUtils_GetTimezones}, {"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::GetCsockClassIdx", _wrap_GetCsockClassIdx}, {"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_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_GetWriteBuffer", _wrap_Csock_GetWriteBuffer}, {"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::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_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_OnChanPermission", _wrap_CModule_OnChanPermission}, {"ZNCc::CModule_OnOp", _wrap_CModule_OnOp}, {"ZNCc::CModule_OnDeop", _wrap_CModule_OnDeop}, {"ZNCc::CModule_OnVoice", _wrap_CModule_OnVoice}, {"ZNCc::CModule_OnDevoice", _wrap_CModule_OnDevoice}, {"ZNCc::CModule_OnMode", _wrap_CModule_OnMode}, {"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_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_OnChanBufferPlayLine", _wrap_CModule_OnChanBufferPlayLine}, {"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_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_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_OnChanPermission", _wrap_CModules_OnChanPermission}, {"ZNCc::CModules_OnOp", _wrap_CModules_OnOp}, {"ZNCc::CModules_OnDeop", _wrap_CModules_OnDeop}, {"ZNCc::CModules_OnVoice", _wrap_CModules_OnVoice}, {"ZNCc::CModules_OnDevoice", _wrap_CModules_OnDevoice}, {"ZNCc::CModules_OnRawMode", _wrap_CModules_OnRawMode}, {"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_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_OnChanBufferPlayLine", _wrap_CModules_OnChanBufferPlayLine}, {"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_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_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_DetachUser", _wrap_CChan_DetachUser}, {"ZNCc::CChan_AttachUser", _wrap_CChan_AttachUser}, {"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_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_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_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_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_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_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_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_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_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_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_AddChan", _wrap_CIRCNetwork_AddChan}, {"ZNCc::CIRCNetwork_DelChan", _wrap_CIRCNetwork_DelChan}, {"ZNCc::CIRCNetwork_JoinChans", _wrap_CIRCNetwork_JoinChans}, {"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_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_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_AddQueryBuffer", _wrap_CIRCNetwork_AddQueryBuffer}, {"ZNCc::CIRCNetwork_UpdateQueryBuffer", _wrap_CIRCNetwork_UpdateQueryBuffer}, {"ZNCc::CIRCNetwork_ClearQueryBuffer", _wrap_CIRCNetwork_ClearQueryBuffer}, {"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_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_GetFloodRate", _wrap_CIRCNetwork_GetFloodRate}, {"ZNCc::CIRCNetwork_GetFloodBurst", _wrap_CIRCNetwork_GetFloodBurst}, {"ZNCc::CIRCNetwork_SetFloodRate", _wrap_CIRCNetwork_SetFloodRate}, {"ZNCc::CIRCNetwork_SetFloodBurst", _wrap_CIRCNetwork_SetFloodBurst}, {"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_HasNamesx", _wrap_CClient_HasNamesx}, {"ZNCc::CClient_HasUHNames", _wrap_CClient_HasUHNames}, {"ZNCc::CClient_IsAway", _wrap_CClient_IsAway}, {"ZNCc::CClient_HasServerTime", _wrap_CClient_HasServerTime}, {"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_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_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_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_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_IsLoggedIn", _wrap_CWebSession_IsLoggedIn}, {"ZNCc::CWebSession_IsAdmin", _wrap_CWebSession_IsAdmin}, {"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_GetModule", _wrap_CWebSock_GetModule}, {"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_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_SetConnectDelay", _wrap_CZNC_SetConnectDelay}, {"ZNCc::CZNC_GetConfigState", _wrap_CZNC_GetConfigState}, {"ZNCc::CZNC_GetManager", _wrap_CZNC_GetManager}, {"ZNCc::CZNC_GetModules", _wrap_CZNC_GetModules}, {"ZNCc::CZNC_FilterUncommonModules", _wrap_CZNC_FilterUncommonModules}, {"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_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_Get", _wrap_CZNC_Get}, {"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_OnChanPermission", _wrap_CPerlModule_OnChanPermission}, {"ZNCc::CPerlModule_OnOp", _wrap_CPerlModule_OnOp}, {"ZNCc::CPerlModule_OnDeop", _wrap_CPerlModule_OnDeop}, {"ZNCc::CPerlModule_OnVoice", _wrap_CPerlModule_OnVoice}, {"ZNCc::CPerlModule_OnDevoice", _wrap_CPerlModule_OnDevoice}, {"ZNCc::CPerlModule_OnMode", _wrap_CPerlModule_OnMode}, {"ZNCc::CPerlModule_OnRawMode", _wrap_CPerlModule_OnRawMode}, {"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_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::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::_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 staticly 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 found, 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); module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ found=0; iter=module_head; do { if (iter==&swig_module) { found=1; break; } iter=iter->next; } while (iter!= module_head); /* if the is found in the list, then all is done and we may leave */ if (found) return; /* otherwise we must add out module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpeters 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 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_CString, (void*) "ZNC::CString"); 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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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:/usr/share/swig/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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_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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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/2.0.9/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_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/2.0.9/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/2.0.9/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/2.0.9/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_CSmartPtrT_CWebSubPage_t_t, (void*) "ZNC::VWebSubPages"); ST(0) = &PL_sv_yes; XSRETURN(1); } znc-1.2/modules/charset.cpp0000644000175000017500000001515312235710266016210 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 #ifndef ICONV_CONST /* configure is supposed to define this, depending on whether the second argument to iconv is const char** or just char**, but if it isn't defined, we default to GNU/Linux which is non-const. */ #define ICONV_CONST #endif class CCharsetMod : public CModule { private: VCString m_vsClientCharsets; VCString m_vsServerCharsets; bool m_bForce; // don't check whether the input string is already a // valid string in the target charset. Instead, always apply conversion. size_t GetConversionLength(iconv_t& ic, const CString& sData) { if(sData.empty()) return 0; size_t uLength = 0; char tmpbuf[1024]; const char *pIn = sData.c_str(); size_t uInLen = sData.size(); bool bBreak; do { char *pOut = tmpbuf; size_t uBufSize = sizeof(tmpbuf); bBreak = (uInLen < 1); if(iconv(ic, // this is ugly, but keeps the code short: (uInLen < 1 ? NULL : (ICONV_CONST char**)&pIn), (uInLen < 1 ? NULL : &uInLen), &pOut, &uBufSize) == (size_t)-1) // explanation: iconv needs a last call with input = NULL to // copy/convert possibly left data chunks into the output buffer. { if(errno == EINVAL) { // charset is not what we think it is. return (size_t)-1; } else if(errno != E2BIG) { // something bad happened, internal error. return (size_t)-2; } } uLength += sizeof(tmpbuf) - uBufSize; } while(!bBreak); return uLength; } bool ConvertCharset(const CString& sFrom, const CString& sTo, CString& sData) { if(sData.empty()) return true; DEBUG("charset: Trying to convert [" + sData.Escape_n(CString::EURL) + "] from [" + sFrom + "] to [" + sTo + "]..."); iconv_t ic = iconv_open(sTo.c_str(), sFrom.c_str()); if(ic == (iconv_t)-1) return false; size_t uLength = GetConversionLength(ic, sData); if(uLength == (size_t)-1) { // incompatible input encoding. iconv_close(ic); return false; } else if(uLength == (size_t)-2) { // internal error, preserve errno from GetConversionLength: int tmp_errno = errno; iconv_close(ic); errno = tmp_errno; return false; } else { // no error, so let's do the actual conversion. iconv(ic, NULL, NULL, NULL, NULL); // reset // state vars for iconv: size_t uResultBufSize = uLength + 1; char *pResult = new char[uResultBufSize]; memset(pResult, 0, uResultBufSize); char *pResultWalker = pResult; const char* pIn = sData.c_str(); size_t uInLen = sData.size(); // let's fcking do it! size_t uResult = iconv(ic, (ICONV_CONST char**)&pIn, &uInLen, &pResultWalker, &uResultBufSize); bool bResult = (uResult != (size_t)-1); iconv_close(ic); if(bResult) { sData.assign(pResult, (uLength + 1) - uResultBufSize); DEBUG("charset: Converted: [" + sData.Escape_n(CString::EURL) + "] from [" + sFrom + "] to [" + sTo + "]!"); } else { DEBUG("Conversion failed: [" << uResult << "]"); } delete[] pResult; return bResult; } } bool ConvertCharset(const VCString& vsFrom, const CString& sTo, CString& sData) { CString sDataCopy(sData); if(!m_bForce) { // check whether sData already is encoded with the right charset: iconv_t icTest = iconv_open(sTo.c_str(), sTo.c_str()); if(icTest != (iconv_t)-1) { size_t uTest = GetConversionLength(icTest, sData); iconv_close(icTest); if(uTest != (size_t)-1 && uTest != (size_t)-2) { DEBUG("charset: [" + sData.Escape_n(CString::EURL) + "] is valid [" + sTo + "] already."); return true; } } } bool bConverted = false; // try all possible source charsets: for(VCString::const_iterator itf = vsFrom.begin(); itf != vsFrom.end(); ++itf) { if(ConvertCharset(*itf, sTo, sDataCopy)) { // conversion successful! sData = sDataCopy; bConverted = true; break; } else { // reset string and try the next charset: sDataCopy = sData; } } return bConverted; } public: MODCONSTRUCTOR(CCharsetMod) { m_bForce = false; } bool OnLoad(const CString& sArgs, CString& sMessage) { size_t uIndex = 0; if(sArgs.Token(0).Equals("-force")) { m_bForce = true; ++uIndex; } if(sArgs.Token(uIndex + 1).empty() || !sArgs.Token(uIndex + 2).empty()) { sMessage = "This module needs two charset lists as arguments: [-force] " " " ""; return false; // the first charset in each list is the preferred one for // messages to the client / to the server. } VCString vsFrom, vsTo; sArgs.Token(uIndex).Split(",", vsFrom); sArgs.Token(uIndex + 1).Split(",", vsTo); // probe conversions: for(VCString::const_iterator itf = vsFrom.begin(); itf != vsFrom.end(); ++itf) { for(VCString::const_iterator itt = vsTo.begin(); itt != vsTo.end(); ++itt) { iconv_t icTest = iconv_open(itt->c_str(), itf->c_str()); if(icTest == (iconv_t)-1) { sMessage = "Conversion from '" + *itf + "' to '" + *itt + "' is not possible."; return false; } iconv_close(icTest); icTest = iconv_open(itf->c_str(), itt->c_str()); if(icTest == (iconv_t)-1) { sMessage = "Conversion from '" + *itt + "' to '" + *itf + "' is not possible."; return false; } iconv_close(icTest); } } m_vsClientCharsets = vsFrom; m_vsServerCharsets = vsTo; return true; } EModRet OnRaw(CString& sLine) { // convert IRC server -> client ConvertCharset(m_vsServerCharsets, m_vsClientCharsets[0], sLine); return CONTINUE; } EModRet OnUserRaw(CString& sLine) { // convert client -> IRC server ConvertCharset(m_vsClientCharsets, m_vsServerCharsets[0], sLine); return CONTINUE; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("charset"); Info.SetHasArgs(true); Info.SetArgsHelpText("Two charset lists: [-force] " " " ""); } USERMODULEDEFS(CCharsetMod, "Normalizes character encodings.") znc-1.2/modules/autocycle.cpp0000644000175000017500000001356312235710266016552 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 using std::vector; class CAutoCycleMod : public CModule { public: MODCONSTRUCTOR(CAutoCycleMod) { m_recentlyCycled.SetTTL(15 * 1000); } virtual ~CAutoCycleMod() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) { 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; } virtual void OnModCommand(const CString& sLine) { CString sCommand = sLine.Token(0); if (sCommand.Equals("ADD")) { 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>"); } } else if (sCommand.Equals("DEL")) { CString sChan = sLine.Token(1); if (Del(sChan)) PutModule("Removed " + sChan + " from list"); else PutModule("Usage: Del [!]<#chan>"); } else if (sCommand.Equals("LIST")) { 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."); } } else { CTable Table; Table.AddColumn("Command"); Table.AddColumn("Description"); Table.AddRow(); Table.SetCell("Command", "Add"); Table.SetCell("Description", "Add an entry, use !#chan to negate and * for wildcards"); Table.AddRow(); Table.SetCell("Command", "Del"); Table.SetCell("Description", "Remove an entry, needs to be an exact match"); Table.AddRow(); Table.SetCell("Command", "List"); Table.SetCell("Description", "List all entries"); if (Table.size()) { PutModule(Table); } else { PutModule("You have no entries."); } } } virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) { AutoCycle(Channel); } virtual void OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) { 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) { 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(m_pNetwork->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.2/modules/awaynick.cpp0000644000175000017500000001144012235710266016360 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. */ // @todo handle raw 433 (nick in use) #include #include class CAwayNickMod; class CAwayNickTimer : public CTimer { public: CAwayNickTimer(CAwayNickMod& Module); private: virtual void RunJob(); private: CAwayNickMod& m_Module; }; class CBackNickTimer : public CTimer { public: CBackNickTimer(CModule& Module) : CTimer(&Module, 3, 1, "BackNickTimer", "Set your nick back when you reattach"), m_Module(Module) {} private: virtual void RunJob() { CIRCNetwork* pNetwork = m_Module.GetNetwork(); if (pNetwork->IsUserAttached() && pNetwork->IsIRCConnected()) { CString sConfNick = pNetwork->GetNick(); m_Module.PutIRC("NICK " + sConfNick); } } private: CModule& m_Module; }; class CAwayNickMod : public CModule { public: MODCONSTRUCTOR(CAwayNickMod) {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) { if (!sArgs.empty()) m_sFormat = sArgs; else m_sFormat = GetNV("nick"); if (m_sFormat.empty()) { m_sFormat = "zz_%nick%"; } SetNV("nick", m_sFormat); return true; } virtual ~CAwayNickMod() { } void StartAwayNickTimer() { RemTimer("AwayNickTimer"); if (FindTimer("BackNickTimer")) { // Client disconnected before we got set back, so do nothing. RemTimer("BackNickTimer"); return; } AddTimer(new CAwayNickTimer(*this)); } void StartBackNickTimer() { CIRCSock* pIRCSock = m_pNetwork->GetIRCSock(); if (pIRCSock) { CString sConfNick = m_pNetwork->GetNick(); if (pIRCSock->GetNick().Equals(m_sAwayNick.Left(pIRCSock->GetNick().length()))) { RemTimer("BackNickTimer"); AddTimer(new CBackNickTimer(*this)); } } } virtual EModRet OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName) { if (m_pNetwork && !m_pNetwork->IsUserAttached()) { m_sAwayNick = m_sFormat; // ExpandString doesn't know our nick yet, so do it by hand. m_sAwayNick.Replace("%nick%", sNick); // We don't limit this to NICKLEN, because we dont know // NICKLEN yet. sNick = m_sAwayNick = m_pNetwork->ExpandString(m_sAwayNick); } return CONTINUE; } virtual void OnIRCDisconnected() { RemTimer("AwayNickTimer"); RemTimer("BackNickTimer"); } virtual void OnClientLogin() { StartBackNickTimer(); } virtual void OnClientDisconnect() { if (!m_pNetwork->IsUserAttached()) { StartAwayNickTimer(); } } virtual void OnModCommand(const CString& sLine) { CString sCommand = sLine.Token(0); if (sCommand.Equals("TIMERS")) { ListTimers(); } else if (sCommand.Equals("SET")) { CString sFormat = sLine.Token(1); if (!sFormat.empty()) { m_sFormat = sFormat; SetNV("nick", m_sFormat); } if (m_pNetwork) { CString sExpanded = GetAwayNick(); CString sMsg = "AwayNick is set to [" + m_sFormat + "]"; if (m_sFormat != sExpanded) { sMsg += " (" + sExpanded + ")"; } PutModule(sMsg); } } else if (sCommand.Equals("SHOW")) { if (m_pNetwork) { CString sExpanded = GetAwayNick(); CString sMsg = "AwayNick is set to [" + m_sFormat + "]"; if (m_sFormat != sExpanded) { sMsg += " (" + sExpanded + ")"; } PutModule(sMsg); } } else if (sCommand.Equals("HELP")) { PutModule("Commands are: show, timers, set [awaynick]"); } } CString GetAwayNick() { unsigned int uLen = 9; CIRCSock* pIRCSock = m_pNetwork->GetIRCSock(); if (pIRCSock) { uLen = pIRCSock->GetMaxNickLen(); } m_sAwayNick = m_pNetwork->ExpandString(m_sFormat).Left(uLen); return m_sAwayNick; } private: CString m_sFormat; CString m_sAwayNick; }; CAwayNickTimer::CAwayNickTimer(CAwayNickMod& Module) : CTimer(&Module, 30, 1, "AwayNickTimer", "Set your nick while you're detached"), m_Module(Module) {} void CAwayNickTimer::RunJob() { CIRCNetwork* pNetwork = m_Module.GetNetwork(); if (!pNetwork->IsUserAttached() && pNetwork->IsIRCConnected()) { m_Module.PutIRC("NICK " + m_Module.GetAwayNick()); } } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("awaynick"); Info.SetHasArgs(true); Info.SetArgsHelpText("This will be your nickname while you are away. Examples: nick_off or zzz_nick."); } NETWORKMODULEDEFS(CAwayNickMod, "Change your nick while you are away") znc-1.2/modules/cert.cpp0000644000175000017500000000526312235710266015515 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. */ #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 (m_pUser->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)); } virtual ~CCertMod() {} CString PemFile() const { return GetSavePath() + "/user.pem"; } bool HasPemFile() const { return (CFile::Exists(PemFile())); } virtual EModRet OnIRCConnecting(CIRCSock *pIRCSock) { if (HasPemFile()) { pIRCSock->SetPemLocation(PemFile()); } return CONTINUE; } virtual CString GetWebMenuTitle() { return "Certificate"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { 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.2/modules/lastseen.cpp0000644000175000017500000000721412235710266016374 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 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)); } virtual ~CLastSeenMod() {} // Event stuff: virtual void OnClientLogin() { SetTime(GetUser()); } virtual void OnClientDisconnect() { SetTime(GetUser()); } virtual EModRet OnDeleteUser(CUser& User) { DelNV(User.GetUserName()); return CONTINUE; } // Web stuff: virtual bool WebRequiresAdmin() { return true; } virtual CString GetWebMenuTitle() { return "Last Seen"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { 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) { 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.2/modules/flooddetach.cpp0000644000175000017500000001277012235710266017035 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 using std::map; class CFloodDetachMod : public CModule { public: MODCONSTRUCTOR(CFloodDetachMod) { m_iThresholdSecs = 0; m_iThresholdMsgs = 0; } ~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) { 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() { 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 = m_pNetwork->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. PutModule("Flood in [" + pChan->GetName() + "] is over, " "re-attaching..."); // No buffer playback, makes sense, doesn't it? pChan->ClearBuffer(); pChan->JoinUser(); } 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(); PutModule("Channel [" + Channel.GetName() + "] was " "flooded, you've been detached"); } EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) { Message(Channel); return CONTINUE; } // This also catches OnChanAction() EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) { Message(Channel); return CONTINUE; } EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) { Message(Channel); return CONTINUE; } EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) { Message(Channel); return CONTINUE; } void OnModCommand(const CString& sCommand) { const CString& sCmd = sCommand.Token(0); const CString& sArg = sCommand.Token(1, true); if (sCmd.Equals("secs") && !sArg.empty()) { m_iThresholdSecs = sArg.ToUInt(); if (m_iThresholdSecs == 0) m_iThresholdSecs = 1; PutModule("Set seconds limit to [" + CString(m_iThresholdSecs) + "]"); Save(); } else if (sCmd.Equals("lines") && !sArg.empty()) { m_iThresholdMsgs = sArg.ToUInt(); if (m_iThresholdMsgs == 0) m_iThresholdMsgs = 2; PutModule("Set lines limit to [" + CString(m_iThresholdMsgs) + "]"); Save(); } else if (sCmd.Equals("show")) { PutModule("Current limit is " + CString(m_iThresholdMsgs) + " lines " "in " + CString(m_iThresholdSecs) + " secs."); } else { PutModule("Commands: show, secs , lines "); } } 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.2/modules/shell.cpp0000644000175000017500000000746112235710266015671 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 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); virtual void Disconnected(); CShellMod* m_pParent; private: CClient* m_pClient; }; class CShellMod : public CModule { public: MODCONSTRUCTOR(CShellMod) { m_sPath = CZNC::Get().GetHomePath(); } virtual ~CShellMod() { vector vSocks = m_pManager->FindSocksByName("SHELL"); for (unsigned int a = 0; a < vSocks.size(); a++) { m_pManager->DelSockByAddr(vSocks[a]); } } virtual bool OnLoad(const CString& sArgs, CString& sMessage) { #ifndef MOD_SHELL_ALLOW_EVERYONE if (!m_pUser->IsAdmin()) { sMessage = "You must be admin to use the shell module"; return false; } #endif return true; } virtual void OnModCommand(const CString& sLine) { 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 " + m_pClient->GetNick() + " :" + sMsg; m_pClient->PutClient(sLine); } void RunCommand(const CString& sCommand) { m_pManager->AddSock(new CShellSock(this, m_pClient, "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.2/modules/autoreply.cpp0000644000175000017500000000514712235710266016605 0ustar somebodysomebody/* * Copyright (C) 2004-2013 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) { m_Messaged.SetTTL(1000 * 120); } virtual ~CAutoReplyMod() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) { 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 = m_pNetwork->GetIRCSock(); if (!pIRCSock) // WTF? return; if (sNick == pIRCSock->GetNick()) return; if (m_Messaged.HasItem(sNick)) return; if (m_pNetwork->IsUserAttached()) return; m_Messaged.AddItem(sNick); PutIRC("PRIVMSG " + sNick + " :" + GetReply()); } virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) { Handle(Nick.GetNick()); return CONTINUE; } virtual void OnModCommand(const CString& sCommand) { const CString& sCmd = sCommand.Token(0); if (sCmd.Equals("SHOW")) { PutModule("Current reply is: " + GetNV("Reply") + " (" + GetReply() + ")"); } else if (sCmd.Equals("SET")) { SetReply(sCommand.Token(1, true)); PutModule("New reply set"); } else { PutModule("Available commands are:"); PutModule("Show - Displays the current query reply"); PutModule("Set - Sets a new reply"); } } 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.2/modules/sample.cpp0000644000175000017500000002061012235710266016032 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 using std::vector; 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() { m_pModule->PutModule("TEST!!!!"); } }; class CSampleMod : public CModule { public: MODCONSTRUCTOR(CSampleMod) {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) { 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.")); return true; } virtual ~CSampleMod() { PutModule("I'm being unloaded!"); } virtual bool OnBoot() { // 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() { PutModule("You got connected BoyOh."); } virtual void OnIRCDisconnected() { PutModule("You got disconnected BoyOh."); } virtual EModRet OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName) { sRealName += " - ZNC"; return CONTINUE; } virtual EModRet OnBroadcast(CString& sMessage) { PutModule("------ [" + sMessage + "]"); sMessage = "======== [" + sMessage + "] ========"; return CONTINUE; } virtual void OnChanPermission(const CNick& OpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) { 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) { 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) { 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) { 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) { 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) { PutModule("* " + OpNick.GetNick() + " sets mode: " + sModes + " " + sArgs + " (" + Channel.GetName() + ")"); } virtual EModRet OnRaw(CString& sLine) { // PutModule("OnRaw() [" + sLine + "]"); return CONTINUE; } virtual EModRet OnUserRaw(CString& sLine) { // PutModule("UserRaw() [" + sLine + "]"); return CONTINUE; } virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) { PutModule("[" + OpNick.GetNick() + "] kicked [" + sKickedNick + "] from [" + Channel.GetName() + "] with the msg [" + sMessage + "]"); } virtual void OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) { PutModule("* Quits: " + Nick.GetNick() + " (" + Nick.GetIdent() + "!" + Nick.GetHost() + ") (" + sMessage + ")"); } virtual EModRet OnTimerAutoJoin(CChan& Channel) { PutModule("Attempting to join " + Channel.GetName()); return CONTINUE; } virtual void OnJoin(const CNick& Nick, CChan& Channel) { PutModule("* Joins: " + Nick.GetNick() + " (" + Nick.GetIdent() + "!" + Nick.GetHost() + ")"); } virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) { PutModule("* Parts: " + Nick.GetNick() + " (" + Nick.GetIdent() + "!" + Nick.GetHost() + ")"); } virtual EModRet OnInvite(const CNick& Nick, const CString& sChan) { 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) { PutModule("* " + OldNick.GetNick() + " is now known as " + sNewNick); } virtual EModRet OnUserCTCPReply(CString& sTarget, CString& sMessage) { PutModule("[" + sTarget + "] userctcpreply [" + sMessage + "]"); sMessage = "\037" + sMessage + "\037"; return CONTINUE; } virtual EModRet OnCTCPReply(CNick& Nick, CString& sMessage) { PutModule("[" + Nick.GetNick() + "] ctcpreply [" + sMessage + "]"); return CONTINUE; } virtual EModRet OnUserCTCP(CString& sTarget, CString& sMessage) { PutModule("[" + sTarget + "] userctcp [" + sMessage + "]"); return CONTINUE; } virtual EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) { PutModule("[" + Nick.GetNick() + "] privctcp [" + sMessage + "]"); sMessage = "\002" + sMessage + "\002"; return CONTINUE; } virtual EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) { PutModule("[" + Nick.GetNick() + "] chanctcp [" + sMessage + "] to [" + Channel.GetName() + "]"); sMessage = "\00311,5 " + sMessage + " \003"; return CONTINUE; } virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage) { PutModule("[" + sTarget + "] usernotice [" + sMessage + "]"); sMessage = "\037" + sMessage + "\037"; return CONTINUE; } virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) { PutModule("[" + Nick.GetNick() + "] privnotice [" + sMessage + "]"); sMessage = "\002" + sMessage + "\002"; return CONTINUE; } virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) { PutModule("[" + Nick.GetNick() + "] channotice [" + sMessage + "] to [" + Channel.GetName() + "]"); sMessage = "\00311,5 " + sMessage + " \003"; return CONTINUE; } virtual EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) { PutModule("* " + Nick.GetNick() + " changes topic on " + Channel.GetName() + " to '" + sTopic + "'"); return CONTINUE; } virtual EModRet OnUserTopic(CString& sTarget, CString& sTopic) { PutModule("* " + m_pClient->GetNick() + " changed topic on " + sTarget + " to '" + sTopic + "'"); return CONTINUE; } virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) { PutModule("[" + sTarget + "] usermsg [" + sMessage + "]"); sMessage = "Sample: \0034" + sMessage + "\003"; return CONTINUE; } virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) { PutModule("[" + Nick.GetNick() + "] privmsg [" + sMessage + "]"); sMessage = "\002" + sMessage + "\002"; return CONTINUE; } virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) { if (sMessage == "!ping") { PutIRC("PRIVMSG " + Channel.GetName() + " :PONG?"); } sMessage = "x " + sMessage + " x"; PutModule(sMessage); return CONTINUE; } virtual void OnModCommand(const CString& sCommand) { if (sCommand.Equals("TIMERS")) { ListTimers(); } } virtual EModRet OnStatusCommand(CString& sCommand) { 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."); } USERMODULEDEFS(CSampleMod, "To be used as a sample for writing modules") znc-1.2/modules/modtcl/0000755000175000017500000000000012235710266015330 5ustar somebodysomebodyznc-1.2/modules/modtcl/Makefile.inc0000644000175000017500000000060312235710266017537 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.2/modules/modtcl/modtcl.tcl0000644000175000017500000001121012235710266017311 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. # # 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.2/modules/modtcl/binds.tcl0000644000175000017500000001164412235710266017141 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. # # 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.2/modules/listsockets.cpp0000644000175000017500000001441712235710266017130 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 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) {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) { #ifndef MOD_LISTSOCKETS_ALLOW_EVERYONE if (!m_pUser->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() { return true; } virtual CString GetWebMenuTitle() { return "List sockets"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { 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); } return true; } return false; } virtual void OnModCommand(const CString& sLine) { CString sCommand = sLine.Token(0); CString sArg = sLine.Token(1, true); if (sCommand.Equals("LIST")) { bool bShowHosts = true; if (sArg.Equals("-n")) { bShowHosts = false; } ShowSocks(bShowHosts); } else { PutModule("Use 'list' to view a list of active sockets"); PutModule("Use 'list -n' if you want IP addresses to be displayed"); } } 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", m_pUser->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"); 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)); } PutModule(Table); return; } virtual ~CListSockets() { } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("listsockets"); } USERMODULEDEFS(CListSockets, "List active sockets") znc-1.2/modules/webadmin.cpp0000644000175000017500000015054712235710266016354 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 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(new CWebSubPage("settings", "Global Settings", CWebSubPage::F_ADMIN)); AddSubPage(new CWebSubPage("edituser", "Your Settings", vParams)); AddSubPage(new CWebSubPage("traffic", "Traffic Info", CWebSubPage::F_ADMIN)); AddSubPage(new CWebSubPage("listusers", "List Users", CWebSubPage::F_ADMIN)); AddSubPage(new CWebSubPage("adduser", "Add User", CWebSubPage::F_ADMIN)); } virtual ~CWebAdminMod() { } virtual bool OnLoad(const CString& sArgStr, CString& sMessage) { 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; 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, 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) { CSmartPtr 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()); 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() { return "webadmin"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { CSmartPtr 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("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) { CSmartPtr 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(); 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(); 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"; } // 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; } if (pNetwork->FindChan(sChanName.Token(0))) { WebSock.PrintErrorPage("Channel [" + sChanName.Token(0) + "] already exists"); return true; } pChan = new CChan(sChanName, pNetwork, true); pNetwork->AddChan(pChan); } pChan->SetBufferCount(WebSock.GetParam("buffercount").ToUInt(), spSession->IsAdmin()); pChan->SetDefaultModes(WebSock.GetParam("defmodes")); pChan->SetInConfig(WebSock.GetParam("save").ToBool()); 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"] = sChanName; 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; } WebSock.Redirect("editnetwork?user=" + pUser->GetUserName().Escape_n(CString::EURL) + "&network=" + pNetwork->GetName().Escape_n(CString::EURL)); return true; } bool NetworkPage(CWebSock& WebSock, CTemplate& Tmpl, CUser* pUser, CIRCNetwork* pNetwork = NULL) { CSmartPtr 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(); } } 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"; } } } 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["FloodProtection"] = CString(CIRCSock::IsFloodProtected(pNetwork->GetFloodRate())); Tmpl["FloodRate"] = CString(pNetwork->GetFloodRate()); Tmpl["FloodBurst"] = CString(pNetwork->GetFloodBurst()); Tmpl["IRCConnectEnabled"] = CString(pNetwork->GetIRCConnectEnabled()); 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(); l["BufferCount"] = CString(pChan->GetBufferCount()); l["Options"] = pChan->GetOptions(); if (pChan->InConfig()) { l["InConfig"] = "true"; } } } else { if (!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; } Tmpl["Action"] = "addnetwork"; Tmpl["Title"] = "Add Network for User [" + pUser->GetUserName() + "]"; Tmpl["IRCConnectEnabled"] = "true"; Tmpl["FloodProtection"] = "true"; Tmpl["FloodRate"] = "1.0"; Tmpl["FloodBurst"] = "4"; } 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(); } } return true; } CString sName = WebSock.GetParam("network").Trim_n(); if (sName.empty()) { WebSock.PrintErrorPage("Network name is a required argument"); return true; } if (!pNetwork) { if (!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 (!CIRCNetwork::IsValidNetwork(sName)) { WebSock.PrintErrorPage("Network name should be alphanumeric"); return true; } CString sNetworkAddError; pNetwork = pUser->AddNetwork(sName, sNetworkAddError); if (!pNetwork) { WebSock.PrintErrorPage(sNetworkAddError); return true; } } CString sArg; pNetwork->SetNick(WebSock.GetParam("nick")); pNetwork->SetAltNick(WebSock.GetParam("altnick")); pNetwork->SetIdent(WebSock.GetParam("ident")); pNetwork->SetRealName(WebSock.GetParam("realname")); 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); } 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.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; } WebSock.Redirect("edituser?user=" + pUser->GetUserName().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("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("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) { CSmartPtr spSession = WebSock.GetSession(); Tmpl.SetFile("add_edit_user.tmpl"); if (!WebSock.GetParam("submitted").ToUInt()) { CString sAllowedHosts, sServers, sChans, sCTCPReplies; 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()); 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(); } } 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; } // 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()); if (pModule) { l["Checked"] = "true"; l["Args"] = pModule->GetArgs(); if (CModInfo::UserModule == GetType() && Info.GetName() == GetModName()) { l["Disabled"] = "true"; } } 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"; } } 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) { WebSock.PrintErrorPage("Invalid user settings"); 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.Redirect("edituser"); } else { WebSock.Redirect("listusers"); } /* we don't want the template to be printed while we redirect */ return false; } bool ListUsersPage(CWebSock& WebSock, CTemplate& Tmpl) { CSmartPtr spSession = WebSock.GetSession(); const map& msUsers = CZNC::Get().GetUserMap(); Tmpl["Title"] = "List 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) { CSmartPtr spSession = WebSock.GetSession(); 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"); 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, 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()) { CString sBindHosts, sMotd; 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()); 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); // 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(); } 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()); 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("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.2/modules/modtcl.cpp0000644000175000017500000003515712235710266016047 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::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(); 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(); 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) { #ifndef MOD_MODTCL_ALLOW_EVERYONE if (!m_pUser->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) { 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()); } } virtual 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() { if (interp) Tcl_Eval(interp,"Binds::ProcessEvnt prerehash"); } virtual void OnPostRehash() { if (interp) { Tcl_Eval(interp,"rehash"); Tcl_Eval(interp,"Binds::ProcessEvnt rehash"); } } virtual void OnIRCConnected() { if (interp) Tcl_Eval(interp, "Binds::ProcessEvnt init-server"); } virtual void OnIRCDisconnected() { if (interp) Tcl_Eval(interp, "Binds::ProcessEvnt disconnect-server"); } virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) { 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) { 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) { 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) { 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->m_pNetwork->GetCurNick().c_str(), TCL_VOLATILE); return TCL_OK; } static int tcl_GetUsername STDVAR { CModTcl *mod = static_cast(cd); Tcl_SetResult(irp, (char *)mod->m_pUser->GetUserName().c_str(), TCL_VOLATILE); return TCL_OK; } static int tcl_GetRealName STDVAR { CModTcl *mod = static_cast(cd); Tcl_SetResult(irp, (char *)mod->m_pUser->GetRealName().c_str(), TCL_VOLATILE); return TCL_OK; } static int tcl_GetBindHost STDVAR { CModTcl *mod = static_cast(cd); Tcl_SetResult(irp, (char *)mod->m_pUser->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->m_pNetwork->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->m_pNetwork->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->m_pNetwork->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->m_pNetwork->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->m_pNetwork->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->m_pUser->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->m_pNetwork->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->m_pNetwork->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->m_pUser->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->m_pUser->PutUser(sMsg); return TCL_OK; } static int tcl_exit STDVAR { CString sMsg; CModTcl *mod = static_cast(cd); BADARGS(1, 2, " ?reason?"); if (! mod->m_pUser->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 *)m_pModule; if (p) p->TclUpdate(); } void CModTclStartTimer::RunJob() { CModTcl *p = (CModTcl *)m_pModule; 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.2/modules/missingmotd.cpp0000644000175000017500000000177712235710266017123 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 class CMissingMotd : public CModule { public: MODCONSTRUCTOR(CMissingMotd) {} virtual void OnClientLogin() { 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.2/modules/stickychan.cpp0000644000175000017500000001265212235710266016720 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 using std::vector; class CStickyChan : public CModule { public: MODCONSTRUCTOR(CStickyChan) {} virtual ~CStickyChan() { } virtual bool OnLoad(const CString& sArgs, CString& sMessage); virtual EModRet OnUserPart(CString& sChannel, CString& sMessage) { for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) { if (sChannel.Equals(it->first)) { CChan* pChan = m_pNetwork->FindChan(sChannel); if (pChan) { pChan->JoinUser(true, "", m_pClient); return HALT; } } } return CONTINUE; } virtual void OnModCommand(const CString& sCommand) { CString sCmdName = sCommand.Token(0); CString sChannel = sCommand.Token(1); sChannel.MakeLower(); if ((sCmdName == "stick") && (!sChannel.empty())) { SetNV(sChannel, sCommand.Token(2)); PutModule("Stuck " + sChannel); } else if ((sCmdName == "unstick") && (!sChannel.empty())) { MCString::iterator it = FindNV(sChannel); if (it != EndNV()) DelNV(it); PutModule("UnStuck " + sChannel); } else if ((sCmdName == "list") && (sChannel.empty())) { 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"); } else { PutModule("USAGE: [un]stick #channel [key], list"); } } virtual void RunJob() { if (!m_pNetwork->GetIRCSock()) return; for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) { CChan *pChan = m_pNetwork->FindChan(it->first); if (!pChan) { pChan = new CChan(it->first, m_pNetwork, true); if (!it->second.empty()) pChan->SetKey(it->second); if (!m_pNetwork->AddChan(pChan)) { /* AddChan() deleted that channel */ PutModule("Could not join [" + it->first + "] (# prefix missing?)"); continue; } } if (!pChan->IsOn()) { PutModule("Joining [" + pChan->GetName() + "]"); PutIRC("JOIN " + pChan->GetName() + (pChan->GetKey().empty() ? "" : " " + pChan->GetKey())); } } } virtual CString GetWebMenuTitle() { return "Sticky Chans"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { if (sPageName == "index") { bool bSubmitted = (WebSock.GetParam("submitted").ToInt() != 0); const vector& Channels = m_pNetwork->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) { 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; } }; 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.2/modules/partyline.cpp0000644000175000017500000004736512235710266016600 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 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() { // The config is now read completely, so all Users are set up Load(); return true; } virtual bool OnLoad(const CString& sArgs, CString& sMessage) { 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) { // 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) { 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(m_pNetwork); } } return CONTINUE; } virtual void OnIRCDisconnected() { m_spInjectedPrefixes.erase(m_pNetwork); } virtual void OnClientLogin() { if (m_spInjectedPrefixes.find(m_pNetwork) == m_spInjectedPrefixes.end() && m_pNetwork && !m_pNetwork->GetChanPrefixes().empty()) { m_pClient->PutClient(":" + GetIRCServer(m_pNetwork) + " 005 " + m_pClient->GetNick() + " CHANTYPES=" + m_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 = m_pUser->GetUserName(); if (pChannel->IsInChannel(sNick)) continue; CString sHost = m_pUser->GetBindHost(); const set& ssNicks = pChannel->GetNicks(); if (sHost.empty()) { sHost = "znc.in"; } PutChan(ssNicks, ":" + NICK_PREFIX + sNick + "!" + m_pUser->GetIdent() + "@" + sHost + " JOIN " + *a, false); pChannel->AddNick(sNick); } CString sNickMask = m_pClient->GetNickMask(); for (set::iterator it = m_ssChannels.begin(); it != m_ssChannels.end(); ++it) { const set& ssNicks = (*it)->GetNicks(); if ((*it)->IsInChannel(m_pUser->GetUserName())) { m_pClient->PutClient(":" + sNickMask + " JOIN " + (*it)->GetName()); if (!(*it)->GetTopic().empty()) { m_pClient->PutClient(":" + GetIRCServer(m_pNetwork) + " 332 " + m_pClient->GetNickMask() + " " + (*it)->GetName() + " :" + (*it)->GetTopic()); } SendNickList(m_pUser, m_pNetwork, ssNicks, (*it)->GetName()); PutChan(ssNicks, ":*" + GetModName() + "!znc@znc.in MODE " + (*it)->GetName() + " +" + CString(m_pUser->IsAdmin() ? "o" : "v") + " " + NICK_PREFIX + m_pUser->GetUserName(), false); } } } virtual void OnClientDisconnect() { if (!m_pUser->IsUserAttached() && !m_pUser->IsBeingDeleted()) { for (set::iterator it = m_ssChannels.begin(); it != m_ssChannels.end(); ++it) { const set& ssNicks = (*it)->GetNicks(); if (ssNicks.find(m_pUser->GetUserName()) != ssNicks.end()) { PutChan(ssNicks, ":*" + GetModName() + "!znc@znc.in MODE " + (*it)->GetName() + " -ov " + NICK_PREFIX + m_pUser->GetUserName() + " " + NICK_PREFIX + m_pUser->GetUserName(), false); } } } } virtual EModRet OnUserRaw(CString& sLine) { 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(":"); CPartylineChannel* pChannel = FindChannel(sChannel); if (pChannel && pChannel->IsInChannel(m_pUser->GetUserName())) { const set& ssNicks = pChannel->GetNicks(); if (!sTopic.empty()) { if (m_pUser->IsAdmin()) { PutChan(ssNicks, ":" + m_pClient->GetNickMask() + " TOPIC " + sChannel + " :" + sTopic); pChannel->SetTopic(sTopic); SaveTopic(pChannel); } else { m_pUser->PutUser(":irc.znc.in 482 " + m_pClient->GetNick() + " " + sChannel + " :You're not channel operator"); } } else { sTopic = pChannel->GetTopic(); if (sTopic.empty()) { m_pUser->PutUser(":irc.znc.in 331 " + m_pClient->GetNick() + " " + sChannel + " :No topic is set."); } else { m_pUser->PutUser(":irc.znc.in 332 " + m_pClient->GetNick() + " " + sChannel + " :" + sTopic); } } } else { m_pUser->PutUser(":irc.znc.in 442 " + m_pClient->GetNick() + " " + sChannel + " :You're not on that channel"); } return HALT; } return CONTINUE; } virtual EModRet OnUserPart(CString& sChannel, CString& sMessage) { if (sChannel.Left(1) != CHAN_PREFIX_1) { return CONTINUE; } if (sChannel.Left(2) != CHAN_PREFIX) { m_pClient->PutClient(":" + GetIRCServer(m_pNetwork) + " 401 " + m_pClient->GetNick() + " " + sChannel + " :No such channel"); return HALT; } CPartylineChannel* pChannel = FindChannel(sChannel); PartUser(m_pUser, 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) { if (sChannel.Left(1) != CHAN_PREFIX_1) { return CONTINUE; } if (sChannel.Left(2) != CHAN_PREFIX) { m_pClient->PutClient(":" + GetIRCServer(m_pNetwork) + " 403 " + m_pClient->GetNick() + " " + sChannel + " :Channels look like " CHAN_PREFIX "znc"); return HALT; } sChannel = sChannel.Left(32); CPartylineChannel* pChannel = GetChannel(sChannel); JoinUser(m_pUser, 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); } } virtual 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; } CString sHost = m_pUser->GetBindHost(); if (sHost.empty()) { sHost = "znc.in"; } if (cPrefix == CHAN_PREFIX_1C) { if (FindChannel(sTarget) == NULL) { m_pClient->PutClient(":" + GetIRCServer(m_pNetwork) + " 401 " + m_pClient->GetNick() + " " + sTarget + " :No such channel"); return HALT; } PutChan(sTarget, ":" + NICK_PREFIX + m_pUser->GetUserName() + "!" + m_pUser->GetIdent() + "@" + sHost + " " + sCmd + " " + sTarget + " :" + sMessage, true, false); } else { CString sNick = sTarget.LeftChomp_n(1); CUser* pUser = CZNC::Get().FindUser(sNick); if (pUser) { vector vClients = pUser->GetAllClients(); if (vClients.empty()) { m_pClient->PutClient(":" + GetIRCServer(m_pNetwork) + " 401 " + m_pClient->GetNick() + " " + sTarget + " :User is not attached: " + sNick + ""); return HALT; } for (vector::const_iterator it = vClients.begin(); it != vClients.end(); ++it) { CClient* pClient = *it; pClient->PutClient(":" + NICK_PREFIX + m_pUser->GetUserName() + "!" + m_pUser->GetIdent() + "@" + sHost + " " + sCmd + " " + pClient->GetNick() + " :" + sMessage); } } else { m_pClient->PutClient(":" + GetIRCServer(m_pNetwork) + " 401 " + m_pClient->GetNick() + " " + sTarget + " :No such znc user: " + sNick + ""); } } return HALT; } virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) { return HandleMessage("PRIVMSG", sTarget, sMessage); } virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage) { return HandleMessage("NOTICE", sTarget, sMessage); } virtual EModRet OnUserAction(CString& sTarget, CString& sMessage) { return HandleMessage("PRIVMSG", sTarget, "\001ACTION " + sMessage + "\001"); } virtual EModRet OnUserCTCP(CString& sTarget, CString& sMessage) { return HandleMessage("PRIVMSG", sTarget, "\001" + sMessage + "\001"); } virtual EModRet OnUserCTCPReply(CString& sTarget, CString& sMessage) { 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 = m_pUser; if (!pClient) pClient = m_pClient; 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.2/modules/awaystore.cpp0000644000175000017500000003107212235710266016573 0ustar somebodysomebody/* * Copyright (C) 2004-2013 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(); }; class CAway : public CModule { void AwayCommand(const CString& sCommand) { CString sReason; if (sCommand.Token(1) != "-quiet") { sReason = sCommand.Token(1, true); PutModNotice("You have been marked as away"); } else { sReason = sCommand.Token(2, true); } Away(false, sReason); } void BackCommand(const CString& sCommand) { if ((m_vMessages.empty()) && (sCommand.Token(1) != "-quiet")) PutModNotice("Welcome Back!"); 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) { 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() { 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() { Back(true); } virtual void OnClientDisconnect() { Away(); } CString GetPath() { CString sBuffer = m_pUser->GetUserName(); CString sRet = GetSavePath(); sRet += "/.znc-away-" + CBlowfish::MD5(sBuffer, true); return(sRet); } virtual 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; } } virtual 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) { if (m_bIsAway) AddMessage(time(NULL), Nick, sMessage); return(CONTINUE); } virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage) { Ping(); if (m_bIsAway) Back(); return(CONTINUE); } virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) { 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, CString & sMessage) { if (Nick.GetNick() == m_pNetwork->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 *)m_pModule; 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.2/modules/simple_away.cpp0000644000175000017500000001365312235710266017074 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 #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(); }; 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; } virtual ~CSimpleAway() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) { 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); } return true; } virtual void OnIRCConnected() { if (m_pNetwork->IsUserAttached()) SetBack(); else SetAway(false); } virtual void OnClientLogin() { SetBack(); } virtual void OnClientDisconnect() { /* There might still be other clients */ if (!m_pNetwork->IsUserAttached()) SetAway(); } virtual void OnModCommand(const CString& sLine) { CString sCommand = sLine.Token(0); if (sCommand.Equals("help")) { CTable Table; Table.AddColumn("Command"); Table.AddColumn("Description"); Table.AddRow(); Table.SetCell("Command", "Reason []"); Table.SetCell("Description", "Prints and optionally sets the away reason."); Table.AddRow(); Table.SetCell("Command", "Timer"); Table.SetCell("Description", "Prints the current time to wait before setting you away."); Table.AddRow(); Table.SetCell("Command", "SetTimer