s3-netapi: add NetShutdownInit and NetShutdownAbort to public API.
authorGünther Deschner <gd@samba.org>
Wed, 13 May 2009 14:35:45 +0000 (16:35 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 14 May 2009 12:18:26 +0000 (14:18 +0200)
Guenther

source3/lib/netapi/netapi.h

index e8cd71eec6bbcbeed55b2c43f0c4199f49030e28..e3ab03eadcd2b8c522bd8d7420db5dacc3854d40 100644 (file)
@@ -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 */