[yast-commit] r49033 - /branches/tmp/lslezak/workshop/core/libscr/src/SCR.cc
Author: lslezak Date: Mon Jul 14 13:01:40 2008 New Revision: 49033 URL: http://svn.opensuse.org/viewcvs/yast?rev=49033&view=rev Log: - log an error for unimplemented calls Modified: branches/tmp/lslezak/workshop/core/libscr/src/SCR.cc Modified: branches/tmp/lslezak/workshop/core/libscr/src/SCR.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/workshop/core/libscr/src/SCR.cc?rev=49033&r1=49032&r2=49033&view=diff ============================================================================== --- branches/tmp/lslezak/workshop/core/libscr/src/SCR.cc (original) +++ branches/tmp/lslezak/workshop/core/libscr/src/SCR.cc Mon Jul 14 13:01:40 2008 @@ -136,6 +136,11 @@ static YCPValue SCRWrite2 (const YCPPath &path, const YCPValue& value) { + if (connection != NULL) + { + return CallDBus("Write", path, value); + } + if (! SCRAgent::instance()) { ycperror ( "No SCR instance found" ); @@ -195,6 +200,13 @@ static YCPValue SCRError (const YCPPath &path) { + // TODO FIXME + if (connection != NULL) + { + y2error("SCR::Error() call is not implemented yet in DBus layer!"); + return YCPVoid(); + } + if (! SCRAgent::instance()) { ycperror ( "No SCR instance found" ); @@ -246,6 +258,13 @@ static YCPValue SCRRegisterAgentS (const YCPPath &path, const YCPString &arg) { + // TODO FIXME + if (connection != NULL) + { + y2error("SCR::RegisterAgent() call is not implemented yet in DBus layer!"); + return YCPVoid(); + } + if (! SCRAgent::instance()) { ycperror ( "No SCR instance found" ); @@ -259,6 +278,13 @@ static YCPValue SCRRegisterAgentT (const YCPPath &path, const YCPTerm &arg) { + // TODO FIXME + if (connection != NULL) + { + y2error("SCR::RegisterAgent() call is not implemented yet in DBus layer!"); + return YCPVoid(); + } + if (! SCRAgent::instance()) { ycperror ( "No SCR instance found" ); @@ -272,6 +298,13 @@ static YCPValue SCRUnregisterAgent (const YCPPath &path) { + // TODO FIXME + if (connection != NULL) + { + y2error("SCR::UnregisterAgent() call is not implemented yet in DBus layer!"); + return YCPVoid(); + } + if (! SCRAgent::instance()) { ycperror ( "No SCR instance found" ); @@ -284,6 +317,13 @@ static YCPValue SCRUnregisterAllAgents () { + // TODO FIXME + if (connection != NULL) + { + y2error("SCR::UnregisterAllAgents() call is not implemented yet in DBus layer!"); + return YCPVoid(); + } + if (! SCRAgent::instance()) { ycperror ( "No SCR instance found" ); @@ -295,6 +335,13 @@ static YCPValue SCRUnmountAgent (const YCPPath &path) { + // TODO FIXME + if (connection != NULL) + { + y2error("SCR::UnmountAgent() call is not implemented yet in DBus layer!"); + return YCPVoid(); + } + if (! SCRAgent::instance()) { ycperror ( "No SCR instance found" ); @@ -307,6 +354,13 @@ static YCPValue SCRRegisterNewAgents () { + // TODO FIXME + if (connection != NULL) + { + y2error("SCR::RegisterNewAgents() call is not implemented yet in DBus layer!"); + return YCPVoid(); + } + if (! SCRAgent::instance()) { ycperror ( "No SCR instance found" ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn.opensuse.org