summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-11-02 14:15:36 +0000
committerTim Potter <tpot@samba.org>2003-11-02 14:15:36 +0000
commit31e6157dfd2457252029f55616cafb0494aa4da0 (patch)
treee1b73c6a84ce86956cde969806f88d711d89e522
parent0dd2e07ea555366c71507c6252254269ce2a558f (diff)
downloadsamba-31e6157dfd2457252029f55616cafb0494aa4da0.tar.gz
samba-31e6157dfd2457252029f55616cafb0494aa4da0.tar.bz2
samba-31e6157dfd2457252029f55616cafb0494aa4da0.zip
Add prototype for smbc_remove_unused_server() to fix compiler warning.
Bug #706. (This used to be commit eaf69b1ae7883573830244664cb0a81661541d92)
-rw-r--r--source3/include/libsmbclient.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/include/libsmbclient.h b/source3/include/libsmbclient.h
index afcafeed81..68c4a053d1 100644
--- a/source3/include/libsmbclient.h
+++ b/source3/include/libsmbclient.h
@@ -1932,5 +1932,16 @@ int smbc_list_print_jobs(const char *purl, smbc_list_print_job_fn fn);
*/
int smbc_unlink_print_job(const char *purl, int id);
+/**@ingroup callback
+ * Remove a server from the cached server list it's unused.
+ *
+ * @param context pointer to smb context
+ *
+ * @param srv pointer to server to remove
+ *
+ * @return On success, 0 is returned. 1 is returned if the server could not
+ * be removed. Also useable outside libsmbclient.
+ */
+int smbc_remove_unused_server(SMBCCTX * context, SMBCSRV * srv);
#endif /* SMBCLIENT_H_INCLUDED */