summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-08-29 19:00:38 +0200
committerGünther Deschner <gd@samba.org>2008-09-05 12:54:32 +0200
commita1febe0513ed0228f344f85b2b96ad9efa483b4b (patch)
treeb315f0ad8633c59a49d8da8a84c60696045eb5eb
parent927a9f2cbe96d0044a7d56b6dd73de220dcbb246 (diff)
downloadsamba-a1febe0513ed0228f344f85b2b96ad9efa483b4b.tar.gz
samba-a1febe0513ed0228f344f85b2b96ad9efa483b4b.tar.bz2
samba-a1febe0513ed0228f344f85b2b96ad9efa483b4b.zip
netapi: add NetShareEnum to public headers.
Guenther (This used to be commit c2e936743227f10c2ade61589fe15c1805c79773)
-rw-r--r--source3/lib/netapi/netapi.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/source3/lib/netapi/netapi.h b/source3/lib/netapi/netapi.h
index 856791807a..817d4029ec 100644
--- a/source3/lib/netapi/netapi.h
+++ b/source3/lib/netapi/netapi.h
@@ -1548,6 +1548,33 @@ NET_API_STATUS NetShareDel(const char * server_name /* [in] */,
const char * net_name /* [in] */,
uint32_t reserved /* [in] */);
+/************************************************************//**
+ *
+ * NetShareEnum
+ *
+ * @brief Enumerate Shares
+ *
+ * @param[in] server_name The server name to connect to
+ * @param[in] level The level defining the SHARE_INFO_X structure
+ * @param[out] buffer The buffer containing a SHARE_INFO_X structure
+ * @param[in] prefmaxlen The requested maximal buffer size
+ * @param[out] entries_read The number of SHARE_INFO_X entries in the buffer
+ * @param[out] total_entries The total number of SHARE_INFO_X entries
+ * @param[in,out] resume_handle A handle passed in and returned for resuming
+ * operations
+ * @return NET_API_STATUS
+ *
+ * example share/share_enum.c
+ ***************************************************************/
+
+NET_API_STATUS NetShareEnum(const char * server_name /* [in] */,
+ uint32_t level /* [in] */,
+ uint8_t **buffer /* [out] [ref] */,
+ uint32_t prefmaxlen /* [in] */,
+ uint32_t *entries_read /* [out] [ref] */,
+ uint32_t *total_entries /* [out] [ref] */,
+ uint32_t *resume_handle /* [in,out] [ref] */);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */