wl_resource
Contents
Field Documentation
structwl_client*wl_resource::clientvoid*wl_resource::datastructwl_signalwl_resource::deprecated_destroy_signalwl_resource_destroy_func_twl_resource::destroystructwl_priv_signalwl_resource::destroy_signalstructwl_signalwl_resource::destroy_signalwl_dispatcher_func_twl_resource::dispatcherstructwl_listwl_resource::linkstructwl_objectwl_resource::objectintwl_resource::version
Member Function Documentation
structwl_resource*wl_resource_create(structwl_client*client,conststructwl_interface*interface,intversion,uint32_tid)
Create a new resource object
Parametersclient The client owner of the new resource.
interface The interface of the new resource.
version The version of the new resource.
id The id of the new resource. If 0, an available id will be used.
Listeners added with wl_client_add_resource_created_listener will be notified at the end of this
function.
constchar*wl_resource_get_class(structwl_resource*resource)
Retrieve the interface name (class) of a resource object.
Parametersresource The resource object
Name
wl_resource
Synopsis
#include <wayland-server.h>
PublicMemberFunctions
const char * wl_resource_get_class (struct wl_resource *resource)
struct wl_resource * wl_resource_create (struct wl_client *client, const struct wl_interface *interface,
int version, uint32_t id)
DataFields
struct wl_objectobjectwl_resource_destroy_func_tdestroy
struct wl_listlink
struct wl_signaldeprecated_destroy_signal
struct wl_client * client
void * data
int versionwl_dispatcher_func_tdispatcher
struct wl_priv_signal destroy_signal
struct wl_signaldestroy_signal