(void (**)(void)) listener, data);
}
-#define TIZEN_ROTATION_SET_AVAILABLE_ANGLES 0
-#define TIZEN_ROTATION_SET_PREFERRED_ANGLE 1
-#define TIZEN_ROTATION_ACK_ANGLE_CHANGE 2
+#define TIZEN_ROTATION_DESTROY 0
+#define TIZEN_ROTATION_SET_AVAILABLE_ANGLES 1
+#define TIZEN_ROTATION_SET_PREFERRED_ANGLE 2
+#define TIZEN_ROTATION_ACK_ANGLE_CHANGE 3
static inline void
tizen_rotation_set_user_data(struct tizen_rotation *tizen_rotation, void *user_data)
static inline void
tizen_rotation_destroy(struct tizen_rotation *tizen_rotation)
{
+ wl_proxy_marshal((struct wl_proxy *) tizen_rotation,
+ TIZEN_ROTATION_DESTROY);
+
wl_proxy_destroy((struct wl_proxy *) tizen_rotation);
}
};
static const struct wl_message tizen_rotation_requests[] = {
+ { "destroy", "", types + 0 },
{ "set_available_angles", "u", types + 0 },
{ "set_preferred_angle", "u", types + 0 },
{ "ack_angle_change", "u", types + 0 },
WL_EXPORT const struct wl_interface tizen_rotation_interface = {
"tizen_rotation", 1,
- 3, tizen_rotation_requests,
+ 4, tizen_rotation_requests,
3, tizen_rotation_events,
};