summaryrefslogtreecommitdiffstats
path: root/source/utils/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/utils/net.h')
-rw-r--r--source/utils/net.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/source/utils/net.h b/source/utils/net.h
index 2df13cfb8f1..fc3167012d6 100644
--- a/source/utils/net.h
+++ b/source/utils/net.h
@@ -39,6 +39,29 @@ typedef struct copy_clistate {
uint16 attribute;
}copy_clistate;
+struct rpc_sh_ctx {
+ struct cli_state *cli;
+
+ DOM_SID *domain_sid;
+ char *domain_name;
+
+ const char *whoami;
+ const char *thiscmd;
+ struct rpc_sh_cmd *cmds;
+ struct rpc_sh_ctx *parent;
+};
+
+struct rpc_sh_cmd {
+ const char *name;
+ struct rpc_sh_cmd *(*sub)(TALLOC_CTX *mem_ctx,
+ struct rpc_sh_ctx *ctx);
+ int pipe_idx;
+ NTSTATUS (*fn)(TALLOC_CTX *mem_ctx, struct rpc_sh_ctx *ctx,
+ struct rpc_pipe_client *pipe_hnd,
+ int argc, const char **argv);
+ const char *help;
+};
+
/* INCLUDE FILES */
#include "utils/net_proto.h"