commit 4a85e65

Michael Forney  ·  2013-06-21 07:37:52 +0000 UTC
parent d9e6442
region: Drop region_ prefix
1 files changed,  +6, -6
+6, -6
 1@@ -12,13 +12,13 @@ static void destroy_region_resource(struct wl_resource * resource)
 2     free(region);
 3 }
 4 
 5-static void region_destroy(struct wl_client * client,
 6+static void destroy(struct wl_client * client,
 7                            struct wl_resource * resource)
 8 {
 9     wl_resource_destroy(resource);
10 }
11 
12-static void region_add(struct wl_client * client,
13+static void add(struct wl_client * client,
14                        struct wl_resource * resource,
15                        int32_t x, int32_t y, int32_t width, int32_t height)
16 {
17@@ -28,7 +28,7 @@ static void region_add(struct wl_client * client,
18                                x, y, width, height);
19 }
20 
21-static void region_subtract(struct wl_client * client,
22+static void subtract(struct wl_client * client,
23                             struct wl_resource * resource,
24                             int32_t x, int32_t y, int32_t width, int32_t height)
25 {
26@@ -40,9 +40,9 @@ static void region_subtract(struct wl_client * client,
27 }
28 
29 static const struct wl_region_interface region_implementation = {
30-    .destroy = &region_destroy,
31-    .add = &region_add,
32-    .subtract = &region_subtract
33+    .destroy = &destroy,
34+    .add = &add,
35+    .subtract = &subtract
36 };
37 
38 bool swc_region_initialize(struct swc_region * region, struct wl_client * client,