summaryrefslogtreecommitdiff
path: root/source4/lib/wmi
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-09 13:44:58 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-15 17:37:19 +0200
commit22cd65b16f8822bdad4e58ea1aa8bb0bbb8d73c8 (patch)
tree0972a07c832466504b7f1f946428b11a73cc2c6d /source4/lib/wmi
parente1deb404eb4fb29f1ca1f3a91b2230173519a797 (diff)
downloadsamba-22cd65b16f8822bdad4e58ea1aa8bb0bbb8d73c8.tar.gz
samba-22cd65b16f8822bdad4e58ea1aa8bb0bbb8d73c8.tar.bz2
samba-22cd65b16f8822bdad4e58ea1aa8bb0bbb8d73c8.zip
Fix compilation issues in the WMI code.
Diffstat (limited to 'source4/lib/wmi')
-rw-r--r--source4/lib/wmi/config.mk9
-rw-r--r--source4/lib/wmi/tools/wmis.c8
-rw-r--r--source4/lib/wmi/wbemdata.c2
3 files changed, 7 insertions, 12 deletions
diff --git a/source4/lib/wmi/config.mk b/source4/lib/wmi/config.mk
index 84beb7161d..086a2cbba9 100644
--- a/source4/lib/wmi/config.mk
+++ b/source4/lib/wmi/config.mk
@@ -1,4 +1,5 @@
[SUBSYSTEM::WMI]
+PRIVATE_PROTO_HEADER = proto.h
PUBLIC_DEPENDENCIES = RPC_NDR_OXIDRESOLVER \
NDR_DCOM \
RPC_NDR_REMACT \
@@ -6,12 +7,11 @@ PUBLIC_DEPENDENCIES = RPC_NDR_OXIDRESOLVER \
DCOM_PROXY_DCOM \
DCOM
-WMI_OBJ_FILES = $(addprefix lib/wmi/, wmicore.o wbemdata.o ../librpc/gen_ndr/dcom_p.o)
+WMI_OBJ_FILES = $(addprefix lib/wmi/, wmicore.o wbemdata.o ../../librpc/gen_ndr/dcom_p.o)
#################################
# Start BINARY wmic
[BINARY::wmic]
-PRIVATE_PROTO_HEADER = proto.h
INSTALLDIR = BINDIR
PRIVATE_DEPENDENCIES = \
POPT_SAMBA \
@@ -34,10 +34,7 @@ PRIVATE_DEPENDENCIES = \
WMI
wmis_OBJ_FILES = \
- wmis.o \
- wmicore.o \
- wbemdata.o \
- ../librpc/gen_ndr/dcom_p.o
+ lib/wmi/tools/wmis.o
# End BINARY wmis
#################################
diff --git a/source4/lib/wmi/tools/wmis.c b/source4/lib/wmi/tools/wmis.c
index 85063ecdb9..cd22b13bf1 100644
--- a/source4/lib/wmi/tools/wmis.c
+++ b/source4/lib/wmi/tools/wmis.c
@@ -29,16 +29,14 @@
#include "librpc/gen_ndr/ndr_remact_c.h"
#include "librpc/gen_ndr/ndr_epmapper_c.h"
#include "librpc/gen_ndr/com_dcom.h"
-#include "librpc/rpc/dcerpc_table.h"
#include "lib/com/dcom/dcom.h"
-#include "lib/com/proto.h"
-#include "lib/com/dcom/proto.h"
+#include "librpc/gen_ndr/com_wmi.h"
+#include "librpc/ndr/ndr_table.h"
struct WBEMCLASS;
struct WBEMOBJECT;
enum CIMTYPE_ENUMERATION;
-NTSTATUS dcom_proxy_IWbemClassObject_init();
#include "wmi/proto.h"
@@ -188,7 +186,7 @@ int main(int argc, char **argv)
parse_args(argc, argv, &args);
dcerpc_init();
- dcerpc_table_init();
+ ndr_table_init();
dcom_proxy_IUnknown_init();
dcom_proxy_IWbemLevel1Login_init();
diff --git a/source4/lib/wmi/wbemdata.c b/source4/lib/wmi/wbemdata.c
index 02eed3dbc5..ffe1bf6648 100644
--- a/source4/lib/wmi/wbemdata.c
+++ b/source4/lib/wmi/wbemdata.c
@@ -673,7 +673,7 @@ struct composite_context *dcom_proxy_IEnumWbemClassObject_Release_send(struct IU
return c;
}
-NTSTATUS dcom_proxy_IWbemClassObject_init()
+NTSTATUS dcom_proxy_IWbemClassObject_init(void)
{
struct GUID clsid;
GUID_from_string("4590f812-1d3a-11d0-891f-00aa004b2e24", &clsid);