diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-07 16:41:45 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-07 16:41:45 -0400 |
commit | 9721dc80e162b23c35736043223643452a1634bb (patch) | |
tree | 463171d91164a88beac2ee0f975cf4e4b4dfcb01 | |
parent | 1fd81ebf2d91e6851a1d3d744822ba6fd5cef0eb (diff) |
wlr-data-source: cleanup
-rw-r--r-- | types/wlr_data_source.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/types/wlr_data_source.c b/types/wlr_data_source.c index be9547cf..83064fac 100644 --- a/types/wlr_data_source.c +++ b/types/wlr_data_source.c @@ -27,7 +27,8 @@ void wlr_data_source_finish(struct wlr_data_source *source) { } } -void wlr_data_source_send(struct wlr_data_source *src, const char *type, int fd) { +void wlr_data_source_send(struct wlr_data_source *src, const char *type, + int fd) { assert(src && src->impl && src->impl->send); src->impl->send(src, type, fd); } @@ -53,7 +54,8 @@ static void data_source_send(struct wlr_data_source *src, close(fd); } -static void data_source_accepted(struct wlr_data_source *src, const char *type) { +static void data_source_accepted(struct wlr_data_source *src, + const char *type) { struct wlr_wl_data_source *wl_src = (struct wlr_wl_data_source *) src; wl_data_source_send_target(wl_src->resource, type); } @@ -69,7 +71,8 @@ static struct wlr_data_source_impl data_source_wl_impl = { .cancelled = data_source_cancelled, }; -static void data_source_offer(struct wl_client *client, struct wl_resource *resource, +static void data_source_offer(struct wl_client *client, + struct wl_resource *resource, const char *type) { struct wlr_wl_data_source *src = wl_resource_get_user_data(resource); char *dtype = strdup(type); @@ -81,7 +84,8 @@ static void data_source_offer(struct wl_client *client, struct wl_resource *reso list_add(src->base.types, dtype); } -static void data_source_destroy(struct wl_client *client, struct wl_resource *resource) { +static void data_source_destroy(struct wl_client *client, + struct wl_resource *resource) { wl_resource_destroy(resource); } |