summaryrefslogtreecommitdiff
path: root/source3/rpcclient/rpcclient.h
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-03-18 06:30:30 +0000
committerTim Potter <tpot@samba.org>2003-03-18 06:30:30 +0000
commit417bf608f4253fadf4b227b5f7360f03b0193ff2 (patch)
treecc6261c79833fa7c59701105deefcf3fedd384d0 /source3/rpcclient/rpcclient.h
parente6d438c2db8f9e5e1c2eff12fd278ddf1db353b4 (diff)
downloadsamba-417bf608f4253fadf4b227b5f7360f03b0193ff2.tar.gz
samba-417bf608f4253fadf4b227b5f7360f03b0193ff2.tar.bz2
samba-417bf608f4253fadf4b227b5f7360f03b0193ff2.zip
Merge of waider's rpcclient return type patch.
(This used to be commit fb91bfa7a28f548dcc549f7e09805e4485c83538)
Diffstat (limited to 'source3/rpcclient/rpcclient.h')
-rw-r--r--source3/rpcclient/rpcclient.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/rpcclient/rpcclient.h b/source3/rpcclient/rpcclient.h
index 1bd3c1a641..1db4246d37 100644
--- a/source3/rpcclient/rpcclient.h
+++ b/source3/rpcclient/rpcclient.h
@@ -22,10 +22,18 @@
#ifndef RPCCLIENT_H
#define RPCCLIENT_H
+typedef enum {
+ RPC_RTYPE_NTSTATUS = 0,
+ RPC_RTYPE_WERROR,
+ MAX_RPC_RETURN_TYPE,
+} RPC_RETURN_TYPE;
+
struct cmd_set {
const char *name;
- NTSTATUS (*fn)(struct cli_state *cli, TALLOC_CTX *mem_ctx, int argc,
+ RPC_RETURN_TYPE returntype;
+ NTSTATUS (*ntfn)(struct cli_state *cli, TALLOC_CTX *mem_ctx, int argc,
const char **argv);
+ WERROR (*wfn)(struct cli_state *cli, TALLOC_CTX *mem_ctx, int argc, const char **argv);
int pipe_idx;
const char *description;
const char *usage;