Martin Gräßlin
5e3bb70612
Fix doxygen generation
...
Doxygen doesn't like our callback listener at all. We need to hide
it from doxygen, otherwise docu doesn't get generated.
2015-09-09 16:39:50 +02:00
Martin Gräßlin
260c33e75d
[server] Call wl_resourc_destroy from destroyCallbacks
...
That's what weston does.
2015-04-20 13:56:41 +02:00
Martin Gräßlin
1bc105e2e6
Close fd DataSourceInterface::requestData
...
Weston does it as well and otherwise the client blocks.
2014-11-27 11:23:37 +01:00
Martin Gräßlin
68ce470231
Add a parentResource to Resource
2014-11-20 16:40:14 +01:00
Martin Gräßlin
8685a0e972
Create wl_resource in Resource::Private instead of subclasses
...
Required information is passed through the ctor of Private.
::create is still virtual as ShellSurfaceInterface is retrieving
client information. This can be fixed once we have a better wl_client
encapsulation class.
2014-11-14 15:33:21 +01:00
Martin Gräßlin
57de2df55e
Track all created Resources in Resource::Private
...
Also provide static method to map a wl_resource to the Resource
sub class.
2014-11-14 15:13:06 +01:00
Martin Gräßlin
cee32f902a
Move static unbind method from derived classes to Resource::Private
...
All classes had exactly the same implementation, so it's a good idea
to share the implementation.
2014-11-14 11:01:54 +01:00
Martin Gräßlin
0fb42d102e
Move q-ptr to Resource::Private
...
In the derived classes a q_func() is added which casts the q-ptr
back to the Resource derived class.
2014-11-14 10:55:06 +01:00
Martin Gräßlin
de62216357
Add cast from wl_resource to Private to Resource::Private
...
Replaces the custom implementation in each of the derived classes.
2014-11-14 10:20:43 +01:00
Martin Gräßlin
53a4455c47
[server] Introduce a base class Resource
...
The Resource base class is supposed to be used by all interface
classes which get created for a wl_resource.
Most interface classes are adjusted, but there are some exceptions:
* BufferInterface: is different as the wl_resource is already created
* PointerInterface and KeyboardInterface: those two need changes, the
implementation differs from all other interface implementations.
2014-11-14 09:45:02 +01:00
Martin Gräßlin
a160876d05
Add static DatatSourceInterface *DataSourceInterface::get(wl_resource*)
2014-11-05 15:22:15 +01:00
Martin Gräßlin
92c46fdcd3
Add DataDeviceManager and DataSource in client and server
...
Basic implementation of the DataDeviceManager and the DataSource it
creates.
Still needs support for DataDevice and DataOffer to complement the
API.
2014-11-04 15:10:22 +01:00