void ds_seat_set_selection(struct ds_seat *seat, struct ds_data_source *source,
uint32_t serial);
+struct ds_seat_client *ds_seat_client_from_resource(
+ struct wl_resource *resource);
+
+struct ds_seat *ds_seat_client_get_seat(struct ds_seat_client *seat_client);
+
#ifdef __cplusplus
}
#endif
void ds_seat_start_drag(struct ds_seat *seat,
struct ds_data_source *drag_source, uint32_t serial);
-struct ds_seat_client *ds_seat_client_from_resource(
- struct wl_resource *resource);
-
-struct ds_seat *ds_seat_client_get_seat(struct ds_seat_client *seat_client);
-
struct wl_client *ds_seat_client_get_wl_client(
struct ds_seat_client *seat_client);
return wl_resource_get_user_data(resource);
}
+WL_EXPORT struct ds_seat *
+ds_seat_client_get_seat(struct ds_seat_client *seat_client)
+{
+ return seat_client->seat;
+}
+
WL_EXPORT void
ds_seat_client_add_destroy_listener(struct ds_seat_client *seat_client,
struct wl_listener *listener)
wl_signal_emit(&seat->events.start_drag, seat);
}
-struct ds_seat *
-ds_seat_client_get_seat(struct ds_seat_client *seat_client)
-{
- return seat_client->seat;
-}
-
void
ds_seat_add_set_selection_listener(struct ds_seat *seat,
struct wl_listener *listener)