netapi32: Remove unused functions.
This commit is contained in:
parent
c0ad988e67
commit
e2eaface45
|
@ -176,31 +176,6 @@ const NBNameCacheEntry *NBNameCacheFindEntry(struct NBNameCache *cache,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL NBNameCacheUpdateNBName(struct NBNameCache *cache,
|
|
||||||
const UCHAR name[NCBNAMSZ], const UCHAR nbname[NCBNAMSZ])
|
|
||||||
{
|
|
||||||
BOOL ret;
|
|
||||||
|
|
||||||
if (cache)
|
|
||||||
{
|
|
||||||
NBNameCacheNode **node;
|
|
||||||
|
|
||||||
EnterCriticalSection(&cache->cs);
|
|
||||||
node = NBNameCacheWalk(cache, (const char *)name);
|
|
||||||
if (node && *node && (*node)->entry)
|
|
||||||
{
|
|
||||||
memcpy((*node)->entry->nbname, nbname, NCBNAMSZ);
|
|
||||||
ret = TRUE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
ret = FALSE;
|
|
||||||
LeaveCriticalSection(&cache->cs);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
ret = FALSE;
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
void NBNameCacheDestroy(struct NBNameCache *cache)
|
void NBNameCacheDestroy(struct NBNameCache *cache)
|
||||||
{
|
{
|
||||||
if (cache)
|
if (cache)
|
||||||
|
|
|
@ -68,15 +68,6 @@ BOOL NBNameCacheAddEntry(struct NBNameCache *cache, NBNameCacheEntry *entry);
|
||||||
const NBNameCacheEntry *NBNameCacheFindEntry(struct NBNameCache *cache,
|
const NBNameCacheEntry *NBNameCacheFindEntry(struct NBNameCache *cache,
|
||||||
const UCHAR name[NCBNAMSZ]);
|
const UCHAR name[NCBNAMSZ]);
|
||||||
|
|
||||||
/* If the entry with name name is in the cache, updates its nbname member to
|
|
||||||
* nbname. The entry's expire time is implicitly updated to entryExpireTimeMS
|
|
||||||
* + the current time in MS, since getting the NetBIOS name meant validating
|
|
||||||
* the name and address anyway.
|
|
||||||
* Returns TRUE on success or FALSE on failure.
|
|
||||||
*/
|
|
||||||
BOOL NBNameCacheUpdateNBName(struct NBNameCache *cache,
|
|
||||||
const UCHAR name[NCBNAMSZ], const UCHAR nbname[NCBNAMSZ]);
|
|
||||||
|
|
||||||
void NBNameCacheDestroy(struct NBNameCache *cache);
|
void NBNameCacheDestroy(struct NBNameCache *cache);
|
||||||
|
|
||||||
#endif /* ndef __WINE_NBNAMECACHE_H */
|
#endif /* ndef __WINE_NBNAMECACHE_H */
|
||||||
|
|
Loading…
Reference in New Issue