interface dbus method call

Thiago Macieira thiago at kde.org
Thu Dec 10 03:34:55 PST 2009


Em Quinta-feira 10 Dezembro 2009, às 09:31:28, jaikumar Ganesh escreveu:
> Hello folks:
>    Is there a way for me to check if someone has registered an
> interface on whom I will be invoking a method call using:
> 
> dbus_message_new_method_call  	(  	const char *   	 destination,
> 		const char *  	path,
> 		const char *  	interface,
> 		const char *  	method
> 
> I basically want to abort if the interface is not registered.

The way to find out is to make the call. If it returns with error, then it 
didn't exist (or the path didn't or the destination didn't).

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20091210/1daa738e/attachment.pgp 


More information about the dbus mailing list