diff options
author | Giulio Camuffo <giuliocamuffo@gmail.com> | 2013-03-28 18:02:42 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-03-28 14:03:58 -0400 |
commit | 7fe01b18d89ad8d59d0c6285d37e70004606b76f (patch) | |
tree | 8af75035816811e3af6fae64123edc3aed61de68 /tests | |
parent | b5bae3450c2970d0643d55467de0709bb0790940 (diff) |
sdk: be C++ friendly
This renames the weston_surface's private member to configure_private
and externs "C" the headers of the SDK.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/weston-test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/weston-test.c b/tests/weston-test.c index 4dc2e5ca..55c5da40 100644 --- a/tests/weston-test.c +++ b/tests/weston-test.c @@ -76,7 +76,7 @@ notify_pointer_position(struct weston_test *test, struct wl_resource *resource) static void test_surface_configure(struct weston_surface *surface, int32_t sx, int32_t sy, int32_t width, int32_t height) { - struct weston_test_surface *test_surface = surface->private; + struct weston_test_surface *test_surface = surface->configure_private; struct weston_test *test = test_surface->test; if (wl_list_empty(&surface->layer_link)) @@ -99,9 +99,9 @@ move_surface(struct wl_client *client, struct wl_resource *resource, struct weston_test_surface *test_surface; surface->configure = test_surface_configure; - if (surface->private == NULL) - surface->private = malloc(sizeof *test_surface); - test_surface = surface->private; + if (surface->configure_private == NULL) + surface->configure_private = malloc(sizeof *test_surface); + test_surface = surface->configure_private; if (test_surface == NULL) { wl_resource_post_no_memory(resource); return; |