ref: refs/heads/master
commit 7513eb9c3c68f3e084b9ef30fcc3ad1cc8886f04
Author: Michael Calmer
Date: Mon Feb 9 14:46:40 2009 +0100
fix enum calles
---
src/SUSE_Common.cc | 1 -
src/SUSE_ElementCapabilitiesProvider.cc | 8 ++++----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/SUSE_Common.cc b/src/SUSE_Common.cc
index 2ba0fd3..0ea78f5 100644
--- a/src/SUSE_Common.cc
+++ b/src/SUSE_Common.cc
@@ -409,7 +409,6 @@ namespace cmpizypp
return false;
}
- // FIXME: currently not used. Perhaps we can remove it
bool _assoc_create_inst_1toN( CmpiBroker & broker,
const CmpiContext & ctx,
CmpiResult & rslt,
diff --git a/src/SUSE_ElementCapabilitiesProvider.cc b/src/SUSE_ElementCapabilitiesProvider.cc
index e3ab64a..641e254 100644
--- a/src/SUSE_ElementCapabilitiesProvider.cc
+++ b/src/SUSE_ElementCapabilitiesProvider.cc
@@ -41,9 +41,9 @@ namespace cmpizypp
{
_CMPIZYPP_TRACE(1,("--- %s CMPI EnumInstanceNames() called",_ClassName));
- bool ret = assoc_create_refs_1toN( *broker, ctx, rslt, cop,
+ bool ret = assoc_create_inst_1toN( *broker, ctx, rslt, cop,
_ClassName,_RefLeft,_RefRight,
- _RefLeftClass,_RefRightClass,0,0);
+ _RefLeftClass,_RefRightClass,1,0);
if(!ret)
{
CmpiStatus st( CMPI_RC_ERR_FAILED, "EnumInstanceNames failed." );
@@ -59,9 +59,9 @@ namespace cmpizypp
{
_CMPIZYPP_TRACE(1,("--- %s CMPI EnumInstances() called",_ClassName));
- bool ret = assoc_create_refs_1toN( *broker, ctx, rslt, cop,
+ bool ret = assoc_create_inst_1toN( *broker, ctx, rslt, cop,
_ClassName,_RefLeft,_RefRight,
- _RefLeftClass,_RefRightClass,1,0);
+ _RefLeftClass,_RefRightClass,1,1);
if(!ret)
{
CmpiStatus st( CMPI_RC_ERR_FAILED, "EnumInstances failed." );
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org