diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-09-16 02:27:33 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-09-16 02:27:33 +0200 |
commit | c212a65b65ba0100ceb9c4fa48c1f44dc0c804f5 (patch) | |
tree | e0277c440075c1830b30d7ae98fe0238cdae6a24 /source4/lib/wmi | |
parent | 7e239a15b316deb83cbdcb79e392f6aefe289114 (diff) | |
download | samba-c212a65b65ba0100ceb9c4fa48c1f44dc0c804f5.tar.gz samba-c212a65b65ba0100ceb9c4fa48c1f44dc0c804f5.tar.bz2 samba-c212a65b65ba0100ceb9c4fa48c1f44dc0c804f5.zip |
More changes getting WMI code to compile, import manual marshalling.
Diffstat (limited to 'source4/lib/wmi')
-rw-r--r-- | source4/lib/wmi/tools/wmic.c | 4 | ||||
-rw-r--r-- | source4/lib/wmi/wbemdata.c | 1 | ||||
-rw-r--r-- | source4/lib/wmi/wmicore.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/wmi/tools/wmic.c b/source4/lib/wmi/tools/wmic.c index 4b84c27c8d..bbfe5ed334 100644 --- a/source4/lib/wmi/tools/wmic.c +++ b/source4/lib/wmi/tools/wmic.c @@ -200,12 +200,12 @@ int main(int argc, char **argv) class_name = talloc_strdup(ctx, co[i]->obj_class->__CLASS); printf("CLASS: %s\n", class_name); for (j = 0; j < co[i]->obj_class->__PROPERTY_COUNT; ++j) - printf("%s%s", j?"|":"", co[i]->obj_class->properties[j].name); + printf("%s%s", j?"|":"", co[i]->obj_class->properties[j].property.name); printf("\n"); } for (j = 0; j < co[i]->obj_class->__PROPERTY_COUNT; ++j) { char *s; - s = string_CIMVAR(ctx, &co[i]->instance->data[j], co[i]->obj_class->properties[j].desc->cimtype & CIM_TYPEMASK); + s = string_CIMVAR(ctx, &co[i]->instance->data[j], co[i]->obj_class->properties[j].property.desc->cimtype & CIM_TYPEMASK); printf("%s%s", j?"|":"", s); } printf("\n"); diff --git a/source4/lib/wmi/wbemdata.c b/source4/lib/wmi/wbemdata.c index b24499ab5c..58bf177c0c 100644 --- a/source4/lib/wmi/wbemdata.c +++ b/source4/lib/wmi/wbemdata.c @@ -33,6 +33,7 @@ #include "lib/talloc/talloc.h" #include "libcli/composite/composite.h" #include "lib/wmi/wmi.h" +#include "librpc/ndr/ndr_wmi.h" enum { DATATYPE_CLASSOBJECT = 2, diff --git a/source4/lib/wmi/wmicore.c b/source4/lib/wmi/wmicore.c index fbd6b339bf..49c1e03312 100644 --- a/source4/lib/wmi/wmicore.c +++ b/source4/lib/wmi/wmicore.c @@ -69,7 +69,7 @@ WERROR WBEM_ConnectServer(struct com_context *ctx, const char *server, const uin cc = cli_credentials_init(cred); cli_credentials_set_conf(cc, global_loadparm); cli_credentials_parse_string(cc, cred, CRED_SPECIFIED); - dcom_set_server_credentials(ctx, server, cc); + dcom_add_server_credentials(ctx, server, cc); talloc_free(cred); } |