On 12/03/2013 04:47 PM, Pavel Březina wrote:
Hi,
I have chosen an OpenLMI topic for my diploma thesis [1]. The goal of
this thesis is to create an OpenLMI provider that would bring remote
control over SSSD [2].
So far I have started by creating a simple provider, that provides one
class called LMI_Test, with string field called Value. I'd like to
provide getter and setter for Value, but I can't find a way how to
change internal state of LMI_Test via a method call. Is it even
possible/recommended? Or are methods supposed to manipulate with the
object just in read-only manner? Can you give me some guidance please?
You can find the provider in my repository (branch wip):
git://fedorapeople.org/home/fedora/pbrezina/public_git/openlmi_test.git
Thank you.
Regards,
Pavel Březina.
[1]
https://thesis-managementsystem.rhcloud.com/topic/show/10/create-openlmi-...
[2]
https://fedorahosted.org/sssd
Hi,
I created a new test provider based on your answers. It reads
/tmp/lmitest file as id:value database. Could you please review it?
I have few follow up questions.
1. Is there a more straightforward way to convert LMI_TestRef to
LMI_Test in konkret than this:
CMPIInstance *ci = NULL;
CMPIObjectPath *cop = NULL;
LMI_Test lmi_test;
cop = LMI_TestRef_ToObjectPath(self, status);
if (!KOkay(*status)) {
return (KString)KSTRING_INIT;
}
ci = CBGetInstance(cb, context, cop, NULL, status);
if (!KOkay(*status)) {
return (KString)KSTRING_INIT;
}
LMI_Test_InitFromInstance(&lmi_test, cb, ci);
2. What are the use cases of LMI_TestExecQuery?
Thanks,
Pavel.