major D-Bus code update

git-svn-id: http://dev.openwengo.org/svn/openwengo/wengophone-ng/branches/wengophone-dbus-api/libs/dbus@7715 30a43799-04e7-0310-8b2b-ea0d24f86d0e
This commit is contained in:
pdurante 2006-09-23 23:25:34 +00:00
parent acfeb85b87
commit 42ea920aeb
41 changed files with 958 additions and 1506 deletions

View file

@ -31,12 +31,12 @@
using namespace DBus;
PendingCall::Private::Private( DBusPendingCall* pc )
: call(pc), dataslot(-1)
PendingCall::Private::Private( DBusPendingCall* dpc )
: call(dpc), dataslot(-1)
{
if(!dbus_pending_call_allocate_data_slot(&dataslot))
{
throw Error(DBUS_ERROR_NO_MEMORY, "Unable to allocate data slot");
throw ErrorNoMemory("Unable to allocate data slot");
}
}
@ -60,7 +60,7 @@ PendingCall::PendingCall( PendingCall::Private* p )
{
if(!dbus_pending_call_set_notify(_pvt->call, Private::notify_stub, this, NULL))
{
throw Error(DBUS_ERROR_NO_MEMORY, "Unable to initialize pending call");
throw ErrorNoMemory("Unable to initialize pending call");
}
}
@ -94,7 +94,7 @@ void PendingCall::data( void* p )
{
if(!dbus_pending_call_set_data(_pvt->call, _pvt->dataslot, p, NULL))
{
throw Error(DBUS_ERROR_NO_MEMORY, "Unable to initialize data slot");
throw ErrorNoMemory("Unable to initialize data slot");
}
}