s3-netapi: add NetShutdownInit and NetShutdownAbort skeletons.
[Samba.git] / source3 / lib / netapi / shutdown.c
blob70c0980a44962ed3412e00a9547d9c8af24878ca
1 /*
2 * Unix SMB/CIFS implementation.
3 * NetApi Shutdown Support
4 * Copyright (C) Guenther Deschner 2009
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #include "includes.h"
22 #include "librpc/gen_ndr/libnetapi.h"
23 #include "lib/netapi/netapi.h"
24 #include "lib/netapi/netapi_private.h"
25 #include "lib/netapi/libnetapi.h"
27 /****************************************************************
28 ****************************************************************/
30 WERROR NetShutdownInit_r(struct libnetapi_ctx *ctx,
31 struct NetShutdownInit *r)
33 return WERR_NOT_SUPPORTED;
36 /****************************************************************
37 ****************************************************************/
39 WERROR NetShutdownInit_l(struct libnetapi_ctx *ctx,
40 struct NetShutdownInit *r)
42 LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetShutdownInit);
45 /****************************************************************
46 ****************************************************************/
48 WERROR NetShutdownAbort_r(struct libnetapi_ctx *ctx,
49 struct NetShutdownAbort *r)
51 return WERR_NOT_SUPPORTED;
54 /****************************************************************
55 ****************************************************************/
57 WERROR NetShutdownAbort_l(struct libnetapi_ctx *ctx,
58 struct NetShutdownAbort *r)
60 LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetShutdownAbort);