imported D-Bus C++ library
git-svn-id: http://dev.openwengo.org/svn/openwengo/wengophone-ng/branches/wengophone-dbus-api/libs/dbus@7382 30a43799-04e7-0310-8b2b-ea0d24f86d0e
This commit is contained in:
commit
acfeb85b87
89 changed files with 92818 additions and 0 deletions
19
examples/server.h
Normal file
19
examples/server.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#ifndef __ECHO_SERVER_H
|
||||
#define __ECHO_SERVER_H
|
||||
|
||||
#include <dbus-c++/dbus-c++.h>
|
||||
|
||||
class EchoInterface :
|
||||
public DBus::InterfaceAdaptor
|
||||
{
|
||||
public:
|
||||
|
||||
EchoInterface() : DBus::InterfaceAdaptor("org.test.cbus.EchoServer")
|
||||
{
|
||||
register_method(EchoInterface, Echo, Echo);
|
||||
}
|
||||
|
||||
virtual DBus::Message Echo( const DBus::CallMessage& ) = 0;
|
||||
};
|
||||
|
||||
#endif//__ECHO_SERVER_H
|
Loading…
Add table
Add a link
Reference in a new issue