summaryrefslogtreecommitdiffstats
path: root/LMI_RealmdService.h
diff options
context:
space:
mode:
Diffstat (limited to 'LMI_RealmdService.h')
-rw-r--r--LMI_RealmdService.h279
1 files changed, 277 insertions, 2 deletions
diff --git a/LMI_RealmdService.h b/LMI_RealmdService.h
index e0b9547..4f74d3b 100644
--- a/LMI_RealmdService.h
+++ b/LMI_RealmdService.h
@@ -322,13 +322,14 @@ typedef struct _LMI_RealmdService
const KString RealmdVersion;
const KString Locale;
const KStringA Realms;
+ const KString Domain;
}
LMI_RealmdService;
static const unsigned char __LMI_RealmdService_sig[] =
{
0x11,0x4c,0x4d,0x49,0x5f,0x52,0x65,0x61,0x6c,0x6d,0x64,0x53,0x65,0x72,0x76,
- 0x69,0x63,0x65,0x00,0x20,0x0c,0x0a,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,
+ 0x69,0x63,0x65,0x00,0x21,0x0c,0x0a,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,
0x49,0x44,0x00,0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,
0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x45,
0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,0x0d,0x0b,0x49,0x6e,
@@ -363,7 +364,7 @@ static const unsigned char __LMI_RealmdService_sig[] =
0x0a,0x52,0x65,0x61,0x6c,0x6d,0x64,0x4e,0x61,0x6d,0x65,0x00,0x0c,0x0d,0x52,
0x65,0x61,0x6c,0x6d,0x64,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e,0x00,0x0c,0x06,
0x4c,0x6f,0x63,0x61,0x6c,0x65,0x00,0x8c,0x06,0x52,0x65,0x61,0x6c,0x6d,0x73,
- 0x00,
+ 0x00,0x0c,0x06,0x44,0x6f,0x6d,0x61,0x69,0x6e,0x00,
};
KINLINE void LMI_RealmdService_Init(
@@ -2492,6 +2493,48 @@ KINLINE void LMI_RealmdService_Clr_Realms(
}
}
+KINLINE void LMI_RealmdService_SetString_Domain(
+ LMI_RealmdService* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Domain;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void LMI_RealmdService_Set_Domain(
+ LMI_RealmdService* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Domain;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void LMI_RealmdService_Null_Domain(
+ LMI_RealmdService* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Domain;
+ KString_Null(field);
+ }
+}
+
+KINLINE void LMI_RealmdService_Clr_Domain(
+ LMI_RealmdService* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Domain;
+ KString_Clr(field);
+ }
+}
+
/* classname=LMI_RealmdService */
typedef struct _LMI_RealmdService_RequestStateChange_Args
{
@@ -2739,6 +2782,146 @@ KINLINE void LMI_RealmdService_Discover_Args_Print(
KBase_Print(os, &self->__base, 'a');
}
+/* classname=LMI_RealmdService */
+typedef struct _LMI_RealmdService_JoinDomain_Args
+{
+ KBase __base;
+ /* IN */
+ KString Domain;
+ /* IN */
+ KString User;
+ /* IN */
+ KString Password;
+ /* IN */
+ KStringA OptionNames;
+ /* IN */
+ KStringA OptionValues;
+}
+LMI_RealmdService_JoinDomain_Args;
+
+static const unsigned char __LMI_RealmdService_JoinDomain_Args_sig[] =
+{
+ 0x0a,0x4a,0x6f,0x69,0x6e,0x44,0x6f,0x6d,0x61,0x69,0x6e,0x00,0x05,0x2c,0x06,
+ 0x44,0x6f,0x6d,0x61,0x69,0x6e,0x00,0x2c,0x04,0x55,0x73,0x65,0x72,0x00,0x2c,
+ 0x08,0x50,0x61,0x73,0x73,0x77,0x6f,0x72,0x64,0x00,0xac,0x0b,0x4f,0x70,0x74,
+ 0x69,0x6f,0x6e,0x4e,0x61,0x6d,0x65,0x73,0x00,0xac,0x0c,0x4f,0x70,0x74,0x69,
+ 0x6f,0x6e,0x56,0x61,0x6c,0x75,0x65,0x73,0x00,
+};
+
+KINLINE void LMI_RealmdService_JoinDomain_Args_Init(
+ LMI_RealmdService_JoinDomain_Args* self,
+ const CMPIBroker* cb)
+{
+ const unsigned char* sig = __LMI_RealmdService_JoinDomain_Args_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, NULL);
+}
+
+KINLINE CMPIStatus LMI_RealmdService_JoinDomain_Args_InitFromArgs(
+ LMI_RealmdService_JoinDomain_Args* self,
+ const CMPIBroker* cb,
+ const CMPIArgs* x,
+ CMPIBoolean in,
+ CMPIBoolean out)
+{
+ LMI_RealmdService_JoinDomain_Args_Init(self, cb);
+ return KBase_FromArgs(&self->__base, x, in, out);
+}
+
+KINLINE CMPIArgs* LMI_RealmdService_JoinDomain_Args_ToArgs(
+ const LMI_RealmdService_JoinDomain_Args* self,
+ CMPIBoolean in,
+ CMPIBoolean out,
+ CMPIStatus* status)
+{
+ return KBase_ToArgs(&self->__base, in, out, status);
+}
+
+KINLINE CMPIStatus LMI_RealmdService_JoinDomain_Args_SetArgs(
+ const LMI_RealmdService_JoinDomain_Args* self,
+ CMPIBoolean in,
+ CMPIBoolean out,
+ CMPIArgs* ca)
+{
+ return KBase_SetToArgs(&self->__base, in, out, ca);
+}
+
+KINLINE void LMI_RealmdService_JoinDomain_Args_Print(
+ const LMI_RealmdService_JoinDomain_Args* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'a');
+}
+
+/* classname=LMI_RealmdService */
+typedef struct _LMI_RealmdService_LeaveDomain_Args
+{
+ KBase __base;
+ /* IN */
+ KString Domain;
+ /* IN */
+ KString User;
+ /* IN */
+ KString Password;
+ /* IN */
+ KStringA OptionNames;
+ /* IN */
+ KStringA OptionValues;
+}
+LMI_RealmdService_LeaveDomain_Args;
+
+static const unsigned char __LMI_RealmdService_LeaveDomain_Args_sig[] =
+{
+ 0x0b,0x4c,0x65,0x61,0x76,0x65,0x44,0x6f,0x6d,0x61,0x69,0x6e,0x00,0x05,0x2c,
+ 0x06,0x44,0x6f,0x6d,0x61,0x69,0x6e,0x00,0x2c,0x04,0x55,0x73,0x65,0x72,0x00,
+ 0x2c,0x08,0x50,0x61,0x73,0x73,0x77,0x6f,0x72,0x64,0x00,0xac,0x0b,0x4f,0x70,
+ 0x74,0x69,0x6f,0x6e,0x4e,0x61,0x6d,0x65,0x73,0x00,0xac,0x0c,0x4f,0x70,0x74,
+ 0x69,0x6f,0x6e,0x56,0x61,0x6c,0x75,0x65,0x73,0x00,
+};
+
+KINLINE void LMI_RealmdService_LeaveDomain_Args_Init(
+ LMI_RealmdService_LeaveDomain_Args* self,
+ const CMPIBroker* cb)
+{
+ const unsigned char* sig = __LMI_RealmdService_LeaveDomain_Args_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, NULL);
+}
+
+KINLINE CMPIStatus LMI_RealmdService_LeaveDomain_Args_InitFromArgs(
+ LMI_RealmdService_LeaveDomain_Args* self,
+ const CMPIBroker* cb,
+ const CMPIArgs* x,
+ CMPIBoolean in,
+ CMPIBoolean out)
+{
+ LMI_RealmdService_LeaveDomain_Args_Init(self, cb);
+ return KBase_FromArgs(&self->__base, x, in, out);
+}
+
+KINLINE CMPIArgs* LMI_RealmdService_LeaveDomain_Args_ToArgs(
+ const LMI_RealmdService_LeaveDomain_Args* self,
+ CMPIBoolean in,
+ CMPIBoolean out,
+ CMPIStatus* status)
+{
+ return KBase_ToArgs(&self->__base, in, out, status);
+}
+
+KINLINE CMPIStatus LMI_RealmdService_LeaveDomain_Args_SetArgs(
+ const LMI_RealmdService_LeaveDomain_Args* self,
+ CMPIBoolean in,
+ CMPIBoolean out,
+ CMPIArgs* ca)
+{
+ return KBase_SetToArgs(&self->__base, in, out, ca);
+}
+
+KINLINE void LMI_RealmdService_LeaveDomain_Args_Print(
+ const LMI_RealmdService_LeaveDomain_Args* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'a');
+}
+
/*
**==============================================================================
**
@@ -2782,6 +2965,30 @@ KEXTERN KUint32 LMI_RealmdService_Discover(
KRefA* DiscoveredRealms,
CMPIStatus* status);
+KEXTERN KUint32 LMI_RealmdService_JoinDomain(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* context,
+ const LMI_RealmdServiceRef* self,
+ const KString* Domain,
+ const KString* User,
+ const KString* Password,
+ const KStringA* OptionNames,
+ const KStringA* OptionValues,
+ CMPIStatus* status);
+
+KEXTERN KUint32 LMI_RealmdService_LeaveDomain(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* context,
+ const LMI_RealmdServiceRef* self,
+ const KString* Domain,
+ const KString* User,
+ const KString* Password,
+ const KStringA* OptionNames,
+ const KStringA* OptionValues,
+ CMPIStatus* status);
+
KINLINE CMPIStatus LMI_RealmdService_DispatchMethod(
const CMPIBroker* cb,
CMPIMethodMI* mi,
@@ -2919,6 +3126,74 @@ KINLINE CMPIStatus LMI_RealmdService_DispatchMethod(
KReturn(OK);
}
+ if (strcasecmp(meth, "JoinDomain") == 0)
+ {
+ CMPIStatus st = KSTATUS_INIT;
+ LMI_RealmdService_JoinDomain_Args args;
+ KUint32 r;
+
+ KReturnIf(LMI_RealmdService_JoinDomain_Args_InitFromArgs(
+ &args, cb, in, 1, 0));
+
+ r = LMI_RealmdService_JoinDomain(
+ cb,
+ mi,
+ cc,
+ &self,
+ &args.Domain,
+ &args.User,
+ &args.Password,
+ &args.OptionNames,
+ &args.OptionValues,
+ &st);
+
+ if (!KOkay(st))
+ return st;
+
+ if (!r.exists)
+ KReturn(ERR_FAILED);
+
+ KReturnIf(LMI_RealmdService_JoinDomain_Args_SetArgs(
+ &args, 0, 1, out));
+ KReturnUint32Data(cr, &r);
+ CMReturnDone(cr);
+
+ KReturn(OK);
+ }
+ if (strcasecmp(meth, "LeaveDomain") == 0)
+ {
+ CMPIStatus st = KSTATUS_INIT;
+ LMI_RealmdService_LeaveDomain_Args args;
+ KUint32 r;
+
+ KReturnIf(LMI_RealmdService_LeaveDomain_Args_InitFromArgs(
+ &args, cb, in, 1, 0));
+
+ r = LMI_RealmdService_LeaveDomain(
+ cb,
+ mi,
+ cc,
+ &self,
+ &args.Domain,
+ &args.User,
+ &args.Password,
+ &args.OptionNames,
+ &args.OptionValues,
+ &st);
+
+ if (!KOkay(st))
+ return st;
+
+ if (!r.exists)
+ KReturn(ERR_FAILED);
+
+ KReturnIf(LMI_RealmdService_LeaveDomain_Args_SetArgs(
+ &args, 0, 1, out));
+ KReturnUint32Data(cr, &r);
+ CMReturnDone(cr);
+
+ KReturn(OK);
+ }
KReturn(ERR_METHOD_NOT_FOUND);
}