Changeset 988 for vendor/current/source3/libsmb/libsmb_cache.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
-
vendor/current/source3/libsmb/libsmb_cache.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/libsmb/libsmb_cache.c
r740 r988 1 /* 1 /* 2 2 Unix SMB/CIFS implementation. 3 3 SMB client library implementation (server cache) … … 5 5 Copyright (C) Richard Sharpe 2000 6 6 Copyright (C) John Terpstra 2000 7 Copyright (C) Tom Jansen (Ninja ISD) 2002 7 Copyright (C) Tom Jansen (Ninja ISD) 2002 8 8 9 9 This program is free software; you can redistribute it and/or modify … … 27 27 28 28 /* 29 * Structure we use if internal caching mechanism is used 29 * Structure we use if internal caching mechanism is used 30 30 * nothing fancy here. 31 31 */ … … 44 44 /* 45 45 * Add a new connection to the server cache. 46 * This function is only used if the external cache is not enabled 46 * This function is only used if the external cache is not enabled 47 47 */ 48 48 int … … 50 50 SMBCSRV * newsrv, 51 51 const char * server, 52 const char * share, 52 const char * share, 53 53 const char * workgroup, 54 54 const char * username) … … 106 106 107 107 /* 108 * Search the server cache for a server 108 * Search the server cache for a server 109 109 * returns server handle on success, NULL on error (not found) 110 * This function is only used if the external cache is not enabled 110 * This function is only used if the external cache is not enabled 111 111 */ 112 112 SMBCSRV * 113 113 SMBC_get_cached_server(SMBCCTX * context, 114 const char * server, 114 const char * server, 115 115 const char * share, 116 116 const char * workgroup, … … 192 192 193 193 194 /* 194 /* 195 195 * Search the server cache for a server and remove it 196 196 * returns 0 on success 197 * This function is only used if the external cache is not enabled 197 * This function is only used if the external cache is not enabled 198 198 */ 199 199 int … … 204 204 205 205 for (srv = context->internal->server_cache; srv; srv = srv->next) { 206 if (server == srv->server) { 206 if (server == srv->server) { 207 207 208 208 /* remove this sucker */
Note:
See TracChangeset
for help on using the changeset viewer.
