Chage the 'base' field to be the name of the super class instead

Instead of display->base.base we want display->proxy.object, or

        buffer->buffer.resource.object.id = id;

which makes it clear what we end up addressing.
This commit is contained in:
Kristian Høgsberg 2010-12-01 17:07:41 -05:00
parent b71cd9e31d
commit b313b02983
7 changed files with 212 additions and 206 deletions

View file

@ -98,18 +98,18 @@ void wl_client_post_no_memory(struct wl_client *client);
void wl_client_post_global(struct wl_client *client, struct wl_object *object);
struct wl_compositor {
struct wl_object base;
struct wl_object object;
};
struct wl_resource {
struct wl_object base;
struct wl_object object;
void (*destroy)(struct wl_resource *resource,
struct wl_client *client);
struct wl_list link;
};
struct wl_buffer {
struct wl_resource base;
struct wl_resource resource;
struct wl_compositor *compositor;
struct wl_visual *visual;
int32_t width, height;
@ -120,16 +120,16 @@ struct wl_buffer {
};
struct wl_surface {
struct wl_resource base;
struct wl_resource resource;
struct wl_client *client;
};
struct wl_shell {
struct wl_object base;
struct wl_object object;
};
struct wl_input_device {
struct wl_object base;
struct wl_object object;
struct wl_surface *pointer_focus;
struct wl_surface *keyboard_focus;
struct wl_array keys;
@ -138,11 +138,11 @@ struct wl_input_device {
};
struct wl_visual {
struct wl_object base;
struct wl_object object;
};
struct wl_drag_offer {
struct wl_object base;
struct wl_object object;
};
struct wl_drag {