diff options
author | Günther Deschner <gd@samba.org> | 2008-08-28 01:06:12 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-08-29 13:58:03 +0200 |
commit | f7b293353a06b1b44e67364ad5de5cc6d4d738dd (patch) | |
tree | b8e2ae611f8a924776ab7b2a9102dd461053ad5d /source3/lib/netapi | |
parent | 0b484e684ab3181eedbb1bdc18dd750c712bb16e (diff) | |
download | samba-f7b293353a06b1b44e67364ad5de5cc6d4d738dd.tar.gz samba-f7b293353a06b1b44e67364ad5de5cc6d4d738dd.tar.bz2 samba-f7b293353a06b1b44e67364ad5de5cc6d4d738dd.zip |
netapi: add NetShareAdd to public header.
Guenther
(This used to be commit 5a036a431f4a8c686ddcd72df476acc6befddba0)
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/netapi.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/source3/lib/netapi/netapi.h b/source3/lib/netapi/netapi.h index 0c7c23b36f..95d2316c9e 100644 --- a/source3/lib/netapi/netapi.h +++ b/source3/lib/netapi/netapi.h @@ -537,6 +537,17 @@ struct TIME_OF_DAY_INFO { uint32_t tod_weekday; }; +struct SHARE_INFO_2 { + const char * shi2_netname; + uint32_t shi2_type; + const char * shi2_remark; + uint32_t shi2_permissions; + uint32_t shi2_max_uses; + uint32_t shi2_current_uses; + const char * shi2_path; + const char * shi2_passwd; +}; + #endif /* _HEADER_libnetapi */ /**************************************************************** @@ -1455,6 +1466,27 @@ NET_API_STATUS NetLocalGroupSetMembers(const char * server_name /* [in] */, NET_API_STATUS NetRemoteTOD(const char * server_name /* [in] */, uint8_t **buf /* [out] [ref] */); + +/************************************************************//** + * + * NetShareAdd + * + * @brief Add Share + * + * @param[in] server_name The server name to connect to + * @param[in] level The level defining the requested SHARE_INFO_X structure + * @param[in] buf The buffer containing a SHARE_INFO_X structure + * @param[out] parm_err The returned parameter error number if any + * @return NET_API_STATUS + * + * example share/share_add.c + ***************************************************************/ + +NET_API_STATUS NetShareAdd(const char * server_name /* [in] */, + uint32_t level /* [in] */, + uint8_t *buffer /* [in] [ref] */, + uint32_t *parm_err /* [out] [ref] */); + #ifdef __cplusplus } #endif /* __cplusplus */ |