swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit 5604e437f46af3d1b5d14f48f70d15c1a1df1b24
parent 3f320bccfec24a34045db197be965254b42f7af6
Author: Michael Forney <mforney@mforney.org>
Date:   Sat, 23 Nov 2013 20:39:52 -0800

Make some stuff static

Diffstat:
Mlibswc/compositor.c | 2+-
Mlibswc/data.c | 4++--
Mlibswc/data_device.c | 2+-
Mlibswc/pointer.c | 2+-
Mlibswc/seat.c | 2+-
Mlibswc/surface.c | 2+-
6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/libswc/compositor.c b/libswc/compositor.c @@ -292,7 +292,7 @@ static void create_region(struct wl_client * client, wl_resource_post_no_memory(resource); } -struct wl_compositor_interface compositor_implementation = { +static struct wl_compositor_interface compositor_implementation = { .create_surface = &create_surface, .create_region = &create_region }; diff --git a/libswc/data.c b/libswc/data.c @@ -67,7 +67,7 @@ static void offer_destroy(struct wl_client * client, wl_resource_destroy(offer); } -struct wl_data_offer_interface data_offer_implementation = { +static struct wl_data_offer_interface data_offer_implementation = { .accept = &offer_accept, .receive = &offer_receive, .destroy = &offer_destroy @@ -90,7 +90,7 @@ static void source_destroy(struct wl_client * client, wl_resource_destroy(source); } -struct wl_data_source_interface data_source_implementation = { +static struct wl_data_source_interface data_source_implementation = { .offer = &source_offer, .destroy = &source_destroy }; diff --git a/libswc/data_device.c b/libswc/data_device.c @@ -61,7 +61,7 @@ static void set_selection(struct wl_client * client, SWC_DATA_DEVICE_EVENT_SELECTION_CHANGED, NULL); } -struct wl_data_device_interface data_device_implementation = { +static struct wl_data_device_interface data_device_implementation = { .start_drag = &start_drag, .set_selection = &set_selection }; diff --git a/libswc/pointer.c b/libswc/pointer.c @@ -150,7 +150,7 @@ static void set_cursor(struct wl_client * client, swc_send_event(&pointer->event_signal, SWC_POINTER_CURSOR_CHANGED, &data); } -struct wl_pointer_interface pointer_implementation = { +static struct wl_pointer_interface pointer_implementation = { .set_cursor = &set_cursor }; diff --git a/libswc/seat.c b/libswc/seat.c @@ -113,7 +113,7 @@ static void get_touch(struct wl_client * client, struct wl_resource * resource, /* XXX: Implement */ } -struct wl_seat_interface seat_implementation = { +static struct wl_seat_interface seat_implementation = { .get_pointer = &get_pointer, .get_keyboard = &get_keyboard, .get_touch = &get_touch diff --git a/libswc/surface.c b/libswc/surface.c @@ -304,7 +304,7 @@ void set_buffer_scale(struct wl_client * client, struct wl_resource * surface, /* TODO: Implement */ } -struct wl_surface_interface surface_implementation = { +static struct wl_surface_interface surface_implementation = { .destroy = &destroy, .attach = &attach, .damage = &damage,