summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-11-26 18:21:28 +0100
committerGünther Deschner <gd@samba.org>2009-11-26 20:03:17 +0100
commit3d679a3b5fc208d8521217f6a4b4d9037b609b9b (patch)
tree9f6fd075c76225f17e4e18da477cd75720dcc35e /source3/utils
parent86f4536b7a128922b5d5808557e70fa243442361 (diff)
downloadsamba-3d679a3b5fc208d8521217f6a4b4d9037b609b9b.tar.gz
samba-3d679a3b5fc208d8521217f6a4b4d9037b609b9b.tar.bz2
samba-3d679a3b5fc208d8521217f6a4b4d9037b609b9b.zip
s3-rpc: Avoid including every pipe's client and server stubs everywhere in samba.
Guenther
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_ads.c1
-rw-r--r--source3/utils/net_dom.c1
-rw-r--r--source3/utils/net_rpc.c7
-rw-r--r--source3/utils/net_rpc_audit.c1
-rw-r--r--source3/utils/net_rpc_join.c2
-rw-r--r--source3/utils/net_rpc_printer.c1
-rw-r--r--source3/utils/net_rpc_registry.c1
-rw-r--r--source3/utils/net_rpc_rights.c1
-rw-r--r--source3/utils/net_rpc_service.c2
-rw-r--r--source3/utils/net_rpc_sh_acct.c1
-rw-r--r--source3/utils/net_util.c2
-rw-r--r--source3/utils/smbtree.c1
12 files changed, 20 insertions, 1 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 031a338835..f133eec0fc 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -23,6 +23,7 @@
#include "includes.h"
#include "utils/net.h"
#include "librpc/gen_ndr/ndr_krb5pac.h"
+#include "../librpc/gen_ndr/cli_spoolss.h"
#include "nsswitch/libwbclient/wbclient.h"
#ifdef HAVE_ADS
diff --git a/source3/utils/net_dom.c b/source3/utils/net_dom.c
index 433fb6c671..ba3b950e43 100644
--- a/source3/utils/net_dom.c
+++ b/source3/utils/net_dom.c
@@ -19,6 +19,7 @@
#include "includes.h"
#include "utils/net.h"
+#include "../librpc/gen_ndr/cli_initshutdown.h"
int net_dom_usage(struct net_context *c, int argc, const char **argv)
{
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 910d782fba..fdb11f33a0 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -23,6 +23,13 @@
#include "includes.h"
#include "utils/net.h"
#include "../libcli/auth/libcli_auth.h"
+#include "../librpc/gen_ndr/cli_samr.h"
+#include "../librpc/gen_ndr/cli_lsa.h"
+#include "../librpc/gen_ndr/cli_netlogon.h"
+#include "../librpc/gen_ndr/cli_srvsvc.h"
+#include "../librpc/gen_ndr/cli_spoolss.h"
+#include "../librpc/gen_ndr/cli_initshutdown.h"
+#include "../librpc/gen_ndr/cli_winreg.h"
static int net_mode_share;
static bool sync_files(struct copy_clistate *cp_clistate, const char *mask);
diff --git a/source3/utils/net_rpc_audit.c b/source3/utils/net_rpc_audit.c
index bc3ed3dba2..b001c9c623 100644
--- a/source3/utils/net_rpc_audit.c
+++ b/source3/utils/net_rpc_audit.c
@@ -18,6 +18,7 @@
#include "includes.h"
#include "utils/net.h"
+#include "../librpc/gen_ndr/cli_lsa.h"
/********************************************************************
********************************************************************/
diff --git a/source3/utils/net_rpc_join.c b/source3/utils/net_rpc_join.c
index fd81205a95..bb7d74b199 100644
--- a/source3/utils/net_rpc_join.c
+++ b/source3/utils/net_rpc_join.c
@@ -21,6 +21,8 @@
#include "includes.h"
#include "utils/net.h"
#include "../libcli/auth/libcli_auth.h"
+#include "../librpc/gen_ndr/cli_lsa.h"
+#include "../librpc/gen_ndr/cli_samr.h"
/* Macro for checking RPC error codes to make things more readable */
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index 5652caf834..6ad8224c86 100644
--- a/source3/utils/net_rpc_printer.c
+++ b/source3/utils/net_rpc_printer.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
#include "utils/net.h"
+#include "../librpc/gen_ndr/cli_spoolss.h"
/* support itanium as well */
static const struct print_architecture_table_node archi_table[]= {
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index 36e83a75af..aa3a13208c 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -22,6 +22,7 @@
#include "utils/net_registry_util.h"
#include "regfio.h"
#include "reg_objects.h"
+#include "../librpc/gen_ndr/cli_winreg.h"
/*******************************************************************
connect to a registry hive root (open a registry policy)
diff --git a/source3/utils/net_rpc_rights.c b/source3/utils/net_rpc_rights.c
index defed47914..fca73c0200 100644
--- a/source3/utils/net_rpc_rights.c
+++ b/source3/utils/net_rpc_rights.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
#include "utils/net.h"
+#include "../librpc/gen_ndr/cli_lsa.h"
/********************************************************************
********************************************************************/
diff --git a/source3/utils/net_rpc_service.c b/source3/utils/net_rpc_service.c
index 1ef7c3ed09..4edf94e8d9 100644
--- a/source3/utils/net_rpc_service.c
+++ b/source3/utils/net_rpc_service.c
@@ -18,7 +18,7 @@
#include "includes.h"
#include "utils/net.h"
-
+#include "../librpc/gen_ndr/cli_svcctl.h"
struct svc_state_msg {
uint32 flag;
diff --git a/source3/utils/net_rpc_sh_acct.c b/source3/utils/net_rpc_sh_acct.c
index 83ce3551d1..efd90abb30 100644
--- a/source3/utils/net_rpc_sh_acct.c
+++ b/source3/utils/net_rpc_sh_acct.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
#include "utils/net.h"
+#include "../librpc/gen_ndr/cli_samr.h"
/*
* Do something with the account policies. Read them all, run a function on
diff --git a/source3/utils/net_util.c b/source3/utils/net_util.c
index eaa2125e34..6bb5a3836c 100644
--- a/source3/utils/net_util.c
+++ b/source3/utils/net_util.c
@@ -21,6 +21,8 @@
#include "includes.h"
#include "utils/net.h"
+#include "../librpc/gen_ndr/cli_lsa.h"
+#include "../librpc/gen_ndr/cli_dssetup.h"
NTSTATUS net_rpc_lookup_name(struct net_context *c,
TALLOC_CTX *mem_ctx, struct cli_state *cli,
diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c
index 717ce65006..d7ba1234ed 100644
--- a/source3/utils/smbtree.c
+++ b/source3/utils/smbtree.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "../librpc/gen_ndr/cli_srvsvc.h"
static int use_bcast;