diff options
author | Günther Deschner <gd@samba.org> | 2009-05-13 16:35:45 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-05-14 14:18:26 +0200 |
commit | 1ddc4829aec61d952aaf3185cc56d53d4a9b5c3c (patch) | |
tree | 557213fe09a0ebb234bbbe21f43ee918eafc51f6 /source3/lib/netapi | |
parent | 8fd3c8902c5e953a0ddf184b08f9e37f954ee12e (diff) | |
download | samba-1ddc4829aec61d952aaf3185cc56d53d4a9b5c3c.tar.gz samba-1ddc4829aec61d952aaf3185cc56d53d4a9b5c3c.tar.bz2 samba-1ddc4829aec61d952aaf3185cc56d53d4a9b5c3c.zip |
s3-netapi: add NetShutdownInit and NetShutdownAbort to public API.
Guenther
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/netapi.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/source3/lib/netapi/netapi.h b/source3/lib/netapi/netapi.h index e8cd71eec6..e3ab03eadc 100644 --- a/source3/lib/netapi/netapi.h +++ b/source3/lib/netapi/netapi.h @@ -2445,6 +2445,42 @@ NET_API_STATUS NetFileEnum(const char * server_name /* [in] */, uint32_t *total_entries /* [out] [ref] */, uint32_t *resume_handle /* [in,out] [ref] */); +/************************************************************//** + * + * NetShutdownInit + * + * @brief Start a machine shutdown + * + * @param[in] server_name The server name to connect to + * @param[in] message The message that is displayed before the shutdown + * @param[in] timeout The amount of seconds to wait until shutting down + * @param[in] force_apps Whether to close all applications before the shutdown + * @param[in] do_reboot Whether to reboot after the shutdown + * @return NET_API_STATUS + * + * example shutdown/shutdown_init.c + ***************************************************************/ + +NET_API_STATUS NetShutdownInit(const char * server_name /* [in] */, + const char * message /* [in] */, + uint32_t timeout /* [in] */, + uint8_t force_apps /* [in] */, + uint8_t do_reboot /* [in] */); + +/************************************************************//** + * + * NetShutdownAbort + * + * @brief Abort an initiated machine shutdown + * + * @param[in] server_name The server name to connect to + * @return NET_API_STATUS + * + * example shutdown/shutdown_abort.c + ***************************************************************/ + +NET_API_STATUS NetShutdownAbort(const char * server_name /* [in] */); + #ifdef __cplusplus } #endif /* __cplusplus */ |