summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/shutdown.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-05-13 16:27:58 +0200
committerGünther Deschner <gd@samba.org>2009-05-14 14:18:26 +0200
commit8fd3c8902c5e953a0ddf184b08f9e37f954ee12e (patch)
treef43289ac577b6f62ad81ae1d44c8a6aba7869e94 /source3/lib/netapi/shutdown.c
parent3a2c748cf4626266899103aa719ea6ac2eae3a9f (diff)
downloadsamba-8fd3c8902c5e953a0ddf184b08f9e37f954ee12e.tar.gz
samba-8fd3c8902c5e953a0ddf184b08f9e37f954ee12e.tar.bz2
samba-8fd3c8902c5e953a0ddf184b08f9e37f954ee12e.zip
s3-netapi: add NetShutdownInit and NetShutdownAbort skeletons.
Guenther
Diffstat (limited to 'source3/lib/netapi/shutdown.c')
-rw-r--r--source3/lib/netapi/shutdown.c61
1 files changed, 61 insertions, 0 deletions
diff --git a/source3/lib/netapi/shutdown.c b/source3/lib/netapi/shutdown.c
new file mode 100644
index 0000000000..70c0980a44
--- /dev/null
+++ b/source3/lib/netapi/shutdown.c
@@ -0,0 +1,61 @@
+/*
+ * Unix SMB/CIFS implementation.
+ * NetApi Shutdown Support
+ * Copyright (C) Guenther Deschner 2009
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "includes.h"
+
+#include "librpc/gen_ndr/libnetapi.h"
+#include "lib/netapi/netapi.h"
+#include "lib/netapi/netapi_private.h"
+#include "lib/netapi/libnetapi.h"
+
+/****************************************************************
+****************************************************************/
+
+WERROR NetShutdownInit_r(struct libnetapi_ctx *ctx,
+ struct NetShutdownInit *r)
+{
+ return WERR_NOT_SUPPORTED;
+}
+
+/****************************************************************
+****************************************************************/
+
+WERROR NetShutdownInit_l(struct libnetapi_ctx *ctx,
+ struct NetShutdownInit *r)
+{
+ LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetShutdownInit);
+}
+
+/****************************************************************
+****************************************************************/
+
+WERROR NetShutdownAbort_r(struct libnetapi_ctx *ctx,
+ struct NetShutdownAbort *r)
+{
+ return WERR_NOT_SUPPORTED;
+}
+
+/****************************************************************
+****************************************************************/
+
+WERROR NetShutdownAbort_l(struct libnetapi_ctx *ctx,
+ struct NetShutdownAbort *r)
+{
+ LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetShutdownAbort);
+}