• Home
  • Raw
  • Download

Lines Matching refs:inQuerySet

119 		LPWSAQUERYSETW			inQuerySet,
150 DEBUG_LOCAL OSStatus QueryCreate( const WSAQUERYSETW *inQuerySet, DWORD inQuerySetFlags, QueryRef *…
185 const WSAQUERYSETW * inQuerySet,
193 const WSAQUERYSETW * inQuerySet,
197 DEBUG_LOCAL size_t QueryCopyQuerySetSize( QueryRef inRef, const WSAQUERYSETW *inQuerySet, DWORD inQ…
200 void DebugDumpQuerySet( DebugLevel inLevel, const WSAQUERYSETW *inQuerySet );
492 LPWSAQUERYSETW inQuerySet, in NSPLookupServiceBegin() argument
514 require_action( inQuerySet, exit, err = WSAEINVAL ); in NSPLookupServiceBegin()
515 name = inQuerySet->lpszServiceInstanceName; in NSPLookupServiceBegin()
520 dlog_query_set( kDebugLevelVerbose, inQuerySet ); in NSPLookupServiceBegin()
527 type = inQuerySet->dwNameSpace; in NSPLookupServiceBegin()
530 n = inQuerySet->dwNumberOfProtocols; in NSPLookupServiceBegin()
533 require_action( inQuerySet->lpafpProtocols, exit, err = WSAEINVAL ); in NSPLookupServiceBegin()
536 family = inQuerySet->lpafpProtocols[ i ].iAddressFamily; in NSPLookupServiceBegin()
537 protocol = inQuerySet->lpafpProtocols[ i ].iProtocol; in NSPLookupServiceBegin()
618 err = QueryCreate( inQuerySet, inFlags, &obj ); in NSPLookupServiceBegin()
891 DEBUG_LOCAL OSStatus QueryCreate( const WSAQUERYSETW *inQuerySet, DWORD inQuerySetFlags, QueryRef *… in QueryCreate() argument
902 check( inQuerySet ); in QueryCreate()
903 check( inQuerySet->lpszServiceInstanceName ); in QueryCreate()
908 …n = WideCharToMultiByte( CP_UTF8, 0, inQuerySet->lpszServiceInstanceName, -1, name, sizeof( name )… in QueryCreate()
1006 err = QueryCopyQuerySet( obj, inQuerySet, inQuerySetFlags, &obj->querySet, &obj->querySetSize ); in QueryCreate()
1331 const WSAQUERYSETW * inQuerySet, in QueryCopyQuerySet() argument
1340 check( inQuerySet ); in QueryCopyQuerySet()
1343 size = QueryCopyQuerySetSize( inRef, inQuerySet, inQuerySetFlags ); in QueryCopyQuerySet()
1347 QueryCopyQuerySetTo( inRef, inQuerySet, inQuerySetFlags, qs ); in QueryCopyQuerySet()
1376 const WSAQUERYSETW * inQuerySet, in QueryCopyQuerySetTo() argument
1389 debugSize = QueryCopyQuerySetSize( inRef, inQuerySet, inQuerySetFlags ); in QueryCopyQuerySetTo()
1392 check( inQuerySet ); in QueryCopyQuerySetTo()
1399 *outQuerySet = *inQuerySet; in QueryCopyQuerySetTo()
1400 dst += sizeof( *inQuerySet ); in QueryCopyQuerySetTo()
1404 s = inQuerySet->lpszServiceInstanceName; in QueryCopyQuerySetTo()
1418 if( inQuerySet->lpServiceClassId ) in QueryCopyQuerySetTo()
1421 *outQuerySet->lpServiceClassId = *inQuerySet->lpServiceClassId; in QueryCopyQuerySetTo()
1422 dst += sizeof( *inQuerySet->lpServiceClassId ); in QueryCopyQuerySetTo()
1425 if( inQuerySet->lpVersion ) in QueryCopyQuerySetTo()
1428 *outQuerySet->lpVersion = *inQuerySet->lpVersion; in QueryCopyQuerySetTo()
1429 dst += sizeof( *inQuerySet->lpVersion ); in QueryCopyQuerySetTo()
1432 s = inQuerySet->lpszComment; in QueryCopyQuerySetTo()
1441 if( inQuerySet->lpNSProviderId ) in QueryCopyQuerySetTo()
1444 *outQuerySet->lpNSProviderId = *inQuerySet->lpNSProviderId; in QueryCopyQuerySetTo()
1445 dst += sizeof( *inQuerySet->lpNSProviderId ); in QueryCopyQuerySetTo()
1448 s = inQuerySet->lpszContext; in QueryCopyQuerySetTo()
1457 n = inQuerySet->dwNumberOfProtocols; in QueryCopyQuerySetTo()
1461 check( inQuerySet->lpafpProtocols ); in QueryCopyQuerySetTo()
1466 outQuerySet->lpafpProtocols[ i ] = inQuerySet->lpafpProtocols[ i ]; in QueryCopyQuerySetTo()
1467 dst += sizeof( *inQuerySet->lpafpProtocols ); in QueryCopyQuerySetTo()
1471 s = inQuerySet->lpszQueryString; in QueryCopyQuerySetTo()
1588 DEBUG_LOCAL size_t QueryCopyQuerySetSize( QueryRef inRef, const WSAQUERYSETW *inQuerySet, DWORD inQ… in QueryCopyQuerySetSize() argument
1595 check( inQuerySet ); in QueryCopyQuerySetSize()
1599 size = sizeof( *inQuerySet ); in QueryCopyQuerySetSize()
1603 s = inQuerySet->lpszServiceInstanceName; in QueryCopyQuerySetSize()
1611 if( inQuerySet->lpServiceClassId ) in QueryCopyQuerySetSize()
1613 size += sizeof( *inQuerySet->lpServiceClassId ); in QueryCopyQuerySetSize()
1616 if( inQuerySet->lpVersion ) in QueryCopyQuerySetSize()
1618 size += sizeof( *inQuerySet->lpVersion ); in QueryCopyQuerySetSize()
1621 s = inQuerySet->lpszComment; in QueryCopyQuerySetSize()
1628 if( inQuerySet->lpNSProviderId ) in QueryCopyQuerySetSize()
1630 size += sizeof( *inQuerySet->lpNSProviderId ); in QueryCopyQuerySetSize()
1633 s = inQuerySet->lpszContext; in QueryCopyQuerySetSize()
1640 size += ( inQuerySet->dwNumberOfProtocols * sizeof( *inQuerySet->lpafpProtocols ) ); in QueryCopyQuerySetSize()
1642 s = inQuerySet->lpszQueryString; in QueryCopyQuerySetSize()
1653 size += sizeof( *inQuerySet->lpcsaBuffer ); in QueryCopyQuerySetSize()
1659 size += sizeof( *inQuerySet->lpcsaBuffer ); in QueryCopyQuerySetSize()
1667 size += sizeof( *inQuerySet->lpBlob ); // Blob ptr/size structure in QueryCopyQuerySetSize()
1695 void DebugDumpQuerySet( DebugLevel inLevel, const WSAQUERYSETW *inQuerySet ) in DebugDumpQuerySet() argument
1699 check( inQuerySet ); in DebugDumpQuerySet()
1704 …evel, " dwSize: %d (expected %d)\n", inQuerySet->dwSize, sizeof( *inQuerySet )… in DebugDumpQuerySet()
1705 if( inQuerySet->lpszServiceInstanceName ) in DebugDumpQuerySet()
1707 dlog( inLevel, " lpszServiceInstanceName: %S\n", inQuerySet->lpszServiceInstanceName ); in DebugDumpQuerySet()
1713 if( inQuerySet->lpServiceClassId ) in DebugDumpQuerySet()
1715 dlog( inLevel, " lpServiceClassId: %U\n", inQuerySet->lpServiceClassId ); in DebugDumpQuerySet()
1721 if( inQuerySet->lpVersion ) in DebugDumpQuerySet()
1724 dlog( inLevel, " dwVersion: %d\n", inQuerySet->lpVersion->dwVersion ); in DebugDumpQuerySet()
1725 dlog( inLevel, " dwVersion: %d\n", inQuerySet->lpVersion->ecHow ); in DebugDumpQuerySet()
1731 if( inQuerySet->lpszComment ) in DebugDumpQuerySet()
1733 dlog( inLevel, " lpszComment: %S\n", inQuerySet->lpszComment ); in DebugDumpQuerySet()
1739 dlog( inLevel, " dwNameSpace: %d %s\n", inQuerySet->dwNameSpace, in DebugDumpQuerySet()
1740 DebugNameSpaceToString( inQuerySet->dwNameSpace ) ); in DebugDumpQuerySet()
1741 if( inQuerySet->lpNSProviderId ) in DebugDumpQuerySet()
1743 dlog( inLevel, " lpNSProviderId: %U\n", inQuerySet->lpNSProviderId ); in DebugDumpQuerySet()
1749 if( inQuerySet->lpszContext ) in DebugDumpQuerySet()
1751 dlog( inLevel, " lpszContext: %S\n", inQuerySet->lpszContext ); in DebugDumpQuerySet()
1757 dlog( inLevel, " dwNumberOfProtocols: %d\n", inQuerySet->dwNumberOfProtocols ); in DebugDumpQuerySet()
1758 dlog( inLevel, " lpafpProtocols: %s\n", inQuerySet->lpafpProtocols ? "" : "<null>" ); in DebugDumpQuerySet()
1759 for( i = 0; i < inQuerySet->dwNumberOfProtocols; ++i ) in DebugDumpQuerySet()
1765 …dlog( inLevel, " iAddressFamily: %d %s\n", inQuerySet->lpafpProtocols[ i ].iAddres… in DebugDumpQuerySet()
1766 DebugSocketFamilyToString( inQuerySet->lpafpProtocols[ i ].iAddressFamily ) ); in DebugDumpQuerySet()
1767 …dlog( inLevel, " iProtocol: %d %s\n", inQuerySet->lpafpProtocols[ i ].iProtoc… in DebugDumpQuerySet()
1768 DebugSocketProtocolToString( inQuerySet->lpafpProtocols[ i ].iProtocol ) ); in DebugDumpQuerySet()
1770 if( inQuerySet->lpszQueryString ) in DebugDumpQuerySet()
1772 dlog( inLevel, " lpszQueryString: %S\n", inQuerySet->lpszQueryString ); in DebugDumpQuerySet()
1778 dlog( inLevel, " dwNumberOfCsAddrs: %d\n", inQuerySet->dwNumberOfCsAddrs ); in DebugDumpQuerySet()
1779 dlog( inLevel, " lpcsaBuffer: %s\n", inQuerySet->lpcsaBuffer ? "" : "<null>" ); in DebugDumpQuerySet()
1780 for( i = 0; i < inQuerySet->dwNumberOfCsAddrs; ++i ) in DebugDumpQuerySet()
1786 if( inQuerySet->lpcsaBuffer[ i ].LocalAddr.lpSockaddr && in DebugDumpQuerySet()
1787 ( inQuerySet->lpcsaBuffer[ i ].LocalAddr.iSockaddrLength > 0 ) ) in DebugDumpQuerySet()
1790 inQuerySet->lpcsaBuffer[ i ].LocalAddr.lpSockaddr ); in DebugDumpQuerySet()
1796 if( inQuerySet->lpcsaBuffer[ i ].RemoteAddr.lpSockaddr && in DebugDumpQuerySet()
1797 ( inQuerySet->lpcsaBuffer[ i ].RemoteAddr.iSockaddrLength > 0 ) ) in DebugDumpQuerySet()
1800 inQuerySet->lpcsaBuffer[ i ].RemoteAddr.lpSockaddr ); in DebugDumpQuerySet()
1806 …dlog( inLevel, " iSocketType: %d\n", inQuerySet->lpcsaBuffer[ i ].iSocketType ); in DebugDumpQuerySet()
1807 dlog( inLevel, " iProtocol: %d\n", inQuerySet->lpcsaBuffer[ i ].iProtocol ); in DebugDumpQuerySet()
1809 dlog( inLevel, " dwOutputFlags: %d\n", inQuerySet->dwOutputFlags ); in DebugDumpQuerySet()
1813 if( inQuerySet->lpBlob ) in DebugDumpQuerySet()
1816 dlog( inLevel, " cbSize: %ld\n", inQuerySet->lpBlob->cbSize ); in DebugDumpQuerySet()
1817 dlog( inLevel, " pBlobData: %#p\n", inQuerySet->lpBlob->pBlobData ); in DebugDumpQuerySet()
1819 inQuerySet->lpBlob->pBlobData, inQuerySet->lpBlob->pBlobData, inQuerySet->lpBlob->cbSize, in DebugDumpQuerySet()