struct wl_display *display;
struct wl_list resource_list;
uint32_t id_count;
+ uint32_t mask;
struct wl_list link;
};
struct wl_client *client = data;
uint32_t emask = 0;
+ client->mask = mask;
if (mask & WL_CONNECTION_READABLE)
emask |= WL_EVENT_READABLE;
if (mask & WL_CONNECTION_WRITABLE)
return wl_event_source_fd_update(client->source, emask);
}
+WL_EXPORT void
+wl_client_flush(struct wl_client *client)
+{
+ if (client->mask & WL_CONNECTION_WRITABLE)
+ wl_connection_data(client->connection, WL_CONNECTION_WRITABLE);
+}
+
WL_EXPORT struct wl_display *
wl_client_get_display(struct wl_client *client)
{
uint32_t code, const char *msg, ...);
void wl_client_post_no_memory(struct wl_client *client);
void wl_client_post_global(struct wl_client *client, struct wl_object *object);
+void wl_client_flush(struct wl_client *client);
struct wl_visual {
struct wl_object object;