Format for EFL style
authorChris Michael <cp.michael@samsung.com>
Tue, 25 Jun 2013 13:01:30 +0000 (14:01 +0100)
committerChris Michael <cp.michael@samsung.com>
Tue, 25 Jun 2013 13:14:04 +0000 (14:14 +0100)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/ecore_imf/wayland/text-client-protocol.h

index f9de29c..bcad325 100644 (file)
@@ -69,20 +69,21 @@ extern const struct wl_interface wl_text_input_manager_interface;
  * Content hint is a bitmask to allow to modify the behavior of the text
  * input.
  */
-enum wl_text_input_content_hint {
-       WL_TEXT_INPUT_CONTENT_HINT_NONE = 0x0,
-       WL_TEXT_INPUT_CONTENT_HINT_DEFAULT = 0x7,
-       WL_TEXT_INPUT_CONTENT_HINT_PASSWORD = 0xc0,
-       WL_TEXT_INPUT_CONTENT_HINT_AUTO_COMPLETION = 0x1,
-       WL_TEXT_INPUT_CONTENT_HINT_AUTO_CORRECTION = 0x2,
-       WL_TEXT_INPUT_CONTENT_HINT_AUTO_CAPITALIZATION = 0x4,
-       WL_TEXT_INPUT_CONTENT_HINT_LOWERCASE = 0x8,
-       WL_TEXT_INPUT_CONTENT_HINT_UPPERCASE = 0x10,
-       WL_TEXT_INPUT_CONTENT_HINT_TITLECASE = 0x20,
-       WL_TEXT_INPUT_CONTENT_HINT_HIDDEN_TEXT = 0x40,
-       WL_TEXT_INPUT_CONTENT_HINT_SENSITIVE_DATA = 0x80,
-       WL_TEXT_INPUT_CONTENT_HINT_LATIN = 0x100,
-       WL_TEXT_INPUT_CONTENT_HINT_MULTILINE = 0x200,
+enum wl_text_input_content_hint 
+{
+   WL_TEXT_INPUT_CONTENT_HINT_NONE = 0x0,
+   WL_TEXT_INPUT_CONTENT_HINT_DEFAULT = 0x7,
+   WL_TEXT_INPUT_CONTENT_HINT_PASSWORD = 0xc0,
+   WL_TEXT_INPUT_CONTENT_HINT_AUTO_COMPLETION = 0x1,
+   WL_TEXT_INPUT_CONTENT_HINT_AUTO_CORRECTION = 0x2,
+   WL_TEXT_INPUT_CONTENT_HINT_AUTO_CAPITALIZATION = 0x4,
+   WL_TEXT_INPUT_CONTENT_HINT_LOWERCASE = 0x8,
+   WL_TEXT_INPUT_CONTENT_HINT_UPPERCASE = 0x10,
+   WL_TEXT_INPUT_CONTENT_HINT_TITLECASE = 0x20,
+   WL_TEXT_INPUT_CONTENT_HINT_HIDDEN_TEXT = 0x40,
+   WL_TEXT_INPUT_CONTENT_HINT_SENSITIVE_DATA = 0x80,
+   WL_TEXT_INPUT_CONTENT_HINT_LATIN = 0x100,
+   WL_TEXT_INPUT_CONTENT_HINT_MULTILINE = 0x200,
 };
 #endif /* WL_TEXT_INPUT_CONTENT_HINT_ENUM */
 
@@ -113,43 +114,46 @@ enum wl_text_input_content_hint {
  * This allows an input method to show special purpose input panels with
  * extra characters or to disallow some characters.
  */
-enum wl_text_input_content_purpose {
-       WL_TEXT_INPUT_CONTENT_PURPOSE_NORMAL = 0,
-       WL_TEXT_INPUT_CONTENT_PURPOSE_ALPHA = 1,
-       WL_TEXT_INPUT_CONTENT_PURPOSE_DIGITS = 2,
-       WL_TEXT_INPUT_CONTENT_PURPOSE_NUMBER = 3,
-       WL_TEXT_INPUT_CONTENT_PURPOSE_PHONE = 4,
-       WL_TEXT_INPUT_CONTENT_PURPOSE_URL = 5,
-       WL_TEXT_INPUT_CONTENT_PURPOSE_EMAIL = 6,
-       WL_TEXT_INPUT_CONTENT_PURPOSE_NAME = 7,
-       WL_TEXT_INPUT_CONTENT_PURPOSE_PASSWORD = 8,
-       WL_TEXT_INPUT_CONTENT_PURPOSE_DATE = 9,
-       WL_TEXT_INPUT_CONTENT_PURPOSE_TIME = 10,
-       WL_TEXT_INPUT_CONTENT_PURPOSE_DATETIME = 11,
-       WL_TEXT_INPUT_CONTENT_PURPOSE_TERMINAL = 12,
+enum wl_text_input_content_purpose 
+{
+   WL_TEXT_INPUT_CONTENT_PURPOSE_NORMAL = 0,
+   WL_TEXT_INPUT_CONTENT_PURPOSE_ALPHA = 1,
+   WL_TEXT_INPUT_CONTENT_PURPOSE_DIGITS = 2,
+   WL_TEXT_INPUT_CONTENT_PURPOSE_NUMBER = 3,
+   WL_TEXT_INPUT_CONTENT_PURPOSE_PHONE = 4,
+   WL_TEXT_INPUT_CONTENT_PURPOSE_URL = 5,
+   WL_TEXT_INPUT_CONTENT_PURPOSE_EMAIL = 6,
+   WL_TEXT_INPUT_CONTENT_PURPOSE_NAME = 7,
+   WL_TEXT_INPUT_CONTENT_PURPOSE_PASSWORD = 8,
+   WL_TEXT_INPUT_CONTENT_PURPOSE_DATE = 9,
+   WL_TEXT_INPUT_CONTENT_PURPOSE_TIME = 10,
+   WL_TEXT_INPUT_CONTENT_PURPOSE_DATETIME = 11,
+   WL_TEXT_INPUT_CONTENT_PURPOSE_TERMINAL = 12,
 };
 #endif /* WL_TEXT_INPUT_CONTENT_PURPOSE_ENUM */
 
 #ifndef WL_TEXT_INPUT_PREEDIT_STYLE_ENUM
 #define WL_TEXT_INPUT_PREEDIT_STYLE_ENUM
-enum wl_text_input_preedit_style {
-       WL_TEXT_INPUT_PREEDIT_STYLE_DEFAULT = 0,
-       WL_TEXT_INPUT_PREEDIT_STYLE_NONE = 1,
-       WL_TEXT_INPUT_PREEDIT_STYLE_ACTIVE = 2,
-       WL_TEXT_INPUT_PREEDIT_STYLE_INACTIVE = 3,
-       WL_TEXT_INPUT_PREEDIT_STYLE_HIGHLIGHT = 4,
-       WL_TEXT_INPUT_PREEDIT_STYLE_UNDERLINE = 5,
-       WL_TEXT_INPUT_PREEDIT_STYLE_SELECTION = 6,
-       WL_TEXT_INPUT_PREEDIT_STYLE_INCORRECT = 7,
+enum wl_text_input_preedit_style 
+{
+   WL_TEXT_INPUT_PREEDIT_STYLE_DEFAULT = 0,
+   WL_TEXT_INPUT_PREEDIT_STYLE_NONE = 1,
+   WL_TEXT_INPUT_PREEDIT_STYLE_ACTIVE = 2,
+   WL_TEXT_INPUT_PREEDIT_STYLE_INACTIVE = 3,
+   WL_TEXT_INPUT_PREEDIT_STYLE_HIGHLIGHT = 4,
+   WL_TEXT_INPUT_PREEDIT_STYLE_UNDERLINE = 5,
+   WL_TEXT_INPUT_PREEDIT_STYLE_SELECTION = 6,
+   WL_TEXT_INPUT_PREEDIT_STYLE_INCORRECT = 7,
 };
 #endif /* WL_TEXT_INPUT_PREEDIT_STYLE_ENUM */
 
 #ifndef WL_TEXT_INPUT_TEXT_DIRECTION_ENUM
 #define WL_TEXT_INPUT_TEXT_DIRECTION_ENUM
-enum wl_text_input_text_direction {
-       WL_TEXT_INPUT_TEXT_DIRECTION_AUTO = 0,
-       WL_TEXT_INPUT_TEXT_DIRECTION_LTR = 1,
-       WL_TEXT_INPUT_TEXT_DIRECTION_RTL = 2,
+enum wl_text_input_text_direction 
+{
+   WL_TEXT_INPUT_TEXT_DIRECTION_AUTO = 0,
+   WL_TEXT_INPUT_TEXT_DIRECTION_LTR = 1,
+   WL_TEXT_INPUT_TEXT_DIRECTION_RTL = 2,
 };
 #endif /* WL_TEXT_INPUT_TEXT_DIRECTION_ENUM */
 
@@ -189,330 +193,303 @@ enum wl_text_input_text_direction {
  * The text input can then ignore events from the input method which are
  * based on an outdated state (for example after a reset).
  */
-struct wl_text_input_listener {
-       /**
-        * enter - enter event
-        * @surface: (none)
-        *
-        * Notify the text-input object when it received focus. Typically
-        * in response to an activate request.
-        */
-       void (*enter)(void *data,
-                     struct wl_text_input *wl_text_input,
-                     struct wl_surface *surface);
-       /**
-        * leave - leave event
-        *
-        * Notify the text-input object when it lost focus. Either in
-        * response to a deactivate request or when the assigned surface
-        * lost focus or was destroyed.
-        */
-       void (*leave)(void *data,
-                     struct wl_text_input *wl_text_input);
-       /**
-        * modifiers_map - modifiers map
-        * @map: (none)
-        *
-        * Transfer an array of 0-terminated modifiers names. The
-        * position in the array is the index of the modifier as used in
-        * the modifiers bitmask in the keysym event.
-        */
-       void (*modifiers_map)(void *data,
-                             struct wl_text_input *wl_text_input,
-                             struct wl_array *map);
-       /**
-        * input_panel_state - state of the input panel
-        * @state: (none)
-        *
-        * Notify when the visibility state of the input panel changed.
-        */
-       void (*input_panel_state)(void *data,
-                                 struct wl_text_input *wl_text_input,
-                                 uint32_t state);
-       /**
-        * preedit_string - pre-edit
-        * @serial: serial of the latest known text input state
-        * @text: (none)
-        * @commit: (none)
-        *
-        * Notify when a new composing text (pre-edit) should be set
-        * around the current cursor position. Any previously set composing
-        * text should be removed.
-        *
-        * The commit text can be used to replace the preedit text on reset
-        * (for example on unfocus).
-        *
-        * The text input should also handle all preedit_style and
-        * preedit_cursor events occuring directly before preedit_string.
-        */
-       void (*preedit_string)(void *data,
-                              struct wl_text_input *wl_text_input,
-                              uint32_t serial,
-                              const char *text,
-                              const char *commit);
-       /**
-        * preedit_styling - pre-edit styling
-        * @index: (none)
-        * @length: (none)
-        * @style: (none)
-        *
-        * Sets styling information on composing text. The style is
-        * applied for length Unicode characters from index relative to the
-        * beginning of the composing text (as Unicode character offset).
-        * Multiple styles can be applied to a composing text by sending
-        * multiple preedit_styling events.
-        *
-        * This event is handled as part of a following preedit_string
-        * event.
-        */
-       void (*preedit_styling)(void *data,
-                               struct wl_text_input *wl_text_input,
-                               uint32_t index,
-                               uint32_t length,
-                               uint32_t style);
-       /**
-        * preedit_cursor - pre-edit cursor
-        * @index: (none)
-        *
-        * Sets the cursor position inside the composing text (as Unicode
-        * character offset) relative to the start of the composing text.
-        * When index is a negative number no cursor is shown.
-        *
-        * This event is handled as part of a following preedit_string
-        * event.
-        */
-       void (*preedit_cursor)(void *data,
-                              struct wl_text_input *wl_text_input,
-                              int32_t index);
-       /**
-        * commit_string - commit
-        * @serial: serial of the latest known text input state
-        * @text: (none)
-        *
-        * Notify when text should be inserted into the editor widget.
-        * The text to commit could be either just a single character after
-        * a key press or the result of some composing (pre-edit). It could
-        * be also an empty text when some text should be removed (see
-        * delete_surrounding_text) or when the input cursor should be
-        * moved (see cursor_position).
-        *
-        * Any previously set composing text should be removed.
-        */
-       void (*commit_string)(void *data,
-                             struct wl_text_input *wl_text_input,
-                             uint32_t serial,
-                             const char *text);
-       /**
-        * cursor_position - set cursor to new position
-        * @index: (none)
-        * @anchor: (none)
-        *
-        * Notify when the cursor or anchor position should be modified.
-        *
-        * This event should be handled as part of a following
-        * commit_string event.
-        */
-       void (*cursor_position)(void *data,
-                               struct wl_text_input *wl_text_input,
-                               int32_t index,
-                               int32_t anchor);
-       /**
-        * delete_surrounding_text - delete surrounding text
-        * @index: (none)
-        * @length: (none)
-        *
-        * Notify when the text around the current cursor position should
-        * be deleted.
-        *
-        * Index is relative to the current cursor (in Unicode characters).
-        * Length is the length of deleted text (in Unicode characters).
-        *
-        * This event should be handled as part of a following
-        * commit_string event.
-        */
-       void (*delete_surrounding_text)(void *data,
-                                       struct wl_text_input *wl_text_input,
-                                       int32_t index,
-                                       uint32_t length);
-       /**
-        * keysym - keysym
-        * @serial: serial of the latest known text input state
-        * @time: (none)
-        * @sym: (none)
-        * @state: (none)
-        * @modifiers: (none)
-        *
-        * Notify when a key event was sent. Key events should not be
-        * used for normal text input operations, which should be done with
-        * commit_string, delete_surrounding_text, etc. The key event
-        * follows the wl_keyboard key event convention. Sym is a XKB
-        * keysym, state a wl_keyboard key_state. Modifiers are a mask for
-        * effective modifiers (where the modifier indices are set by the
-        * modifiers_map event)
-        */
-       void (*keysym)(void *data,
-                      struct wl_text_input *wl_text_input,
-                      uint32_t serial,
-                      uint32_t time,
-                      uint32_t sym,
-                      uint32_t state,
-                      uint32_t modifiers);
-       /**
-        * language - language
-        * @serial: serial of the latest known text input state
-        * @language: (none)
-        *
-        * Sets the language of the input text. The "language" argument
-        * is a RFC-3066 format language tag.
-        */
-       void (*language)(void *data,
-                        struct wl_text_input *wl_text_input,
-                        uint32_t serial,
-                        const char *language);
-       /**
-        * text_direction - text direction
-        * @serial: serial of the latest known text input state
-        * @direction: (none)
-        *
-        * Sets the text direction of input text.
-        *
-        * It is mainly needed for showing input cursor on correct side of
-        * the editor when there is no input yet done and making sure
-        * neutral direction text is laid out properly.
-        */
-       void (*text_direction)(void *data,
-                              struct wl_text_input *wl_text_input,
-                              uint32_t serial,
-                              uint32_t direction);
+struct wl_text_input_listener 
+{
+   /**
+    * enter - enter event
+    * @surface: (none)
+    *
+    * Notify the text-input object when it received focus. Typically
+    * in response to an activate request.
+    */
+   void (*enter)(void *data, struct wl_text_input *wl_text_input, struct wl_surface *surface);
+
+   /**
+    * leave - leave event
+    *
+    * Notify the text-input object when it lost focus. Either in
+    * response to a deactivate request or when the assigned surface
+    * lost focus or was destroyed.
+    */
+   void (*leave)(void *data, struct wl_text_input *wl_text_input);
+
+   /**
+    * modifiers_map - modifiers map
+    * @map: (none)
+    *
+    * Transfer an array of 0-terminated modifiers names. The
+    * position in the array is the index of the modifier as used in
+    * the modifiers bitmask in the keysym event.
+    */
+   void (*modifiers_map)(void *data, struct wl_text_input *wl_text_input, struct wl_array *map);
+
+   /**
+    * input_panel_state - state of the input panel
+    * @state: (none)
+    *
+    * Notify when the visibility state of the input panel changed.
+    */
+   void (*input_panel_state)(void *data, struct wl_text_input *wl_text_input, uint32_t state);
+
+   /**
+    * preedit_string - pre-edit
+    * @serial: serial of the latest known text input state
+    * @text: (none)
+    * @commit: (none)
+    *
+    * Notify when a new composing text (pre-edit) should be set
+    * around the current cursor position. Any previously set composing
+    * text should be removed.
+    *
+    * The commit text can be used to replace the preedit text on reset
+    * (for example on unfocus).
+    *
+    * The text input should also handle all preedit_style and
+    * preedit_cursor events occuring directly before preedit_string.
+    */
+   void (*preedit_string)(void *data, struct wl_text_input *wl_text_input, uint32_t serial, const char *text, const char *commit);
+
+   /**
+    * preedit_styling - pre-edit styling
+    * @index: (none)
+    * @length: (none)
+    * @style: (none)
+    *
+    * Sets styling information on composing text. The style is
+    * applied for length Unicode characters from index relative to the
+    * beginning of the composing text (as Unicode character offset).
+    * Multiple styles can be applied to a composing text by sending
+    * multiple preedit_styling events.
+    *
+    * This event is handled as part of a following preedit_string
+    * event.
+    */
+   void (*preedit_styling)(void *data, struct wl_text_input *wl_text_input, uint32_t index, uint32_t length, uint32_t style);
+
+   /**
+    * preedit_cursor - pre-edit cursor
+    * @index: (none)
+    *
+    * Sets the cursor position inside the composing text (as Unicode
+    * character offset) relative to the start of the composing text.
+    * When index is a negative number no cursor is shown.
+    *
+    * This event is handled as part of a following preedit_string
+    * event.
+    */
+   void (*preedit_cursor)(void *data, struct wl_text_input *wl_text_input, int32_t index);
+
+   /**
+    * commit_string - commit
+    * @serial: serial of the latest known text input state
+    * @text: (none)
+    *
+    * Notify when text should be inserted into the editor widget.
+    * The text to commit could be either just a single character after
+    * a key press or the result of some composing (pre-edit). It could
+    * be also an empty text when some text should be removed (see
+    * delete_surrounding_text) or when the input cursor should be
+    * moved (see cursor_position).
+    *
+    * Any previously set composing text should be removed.
+    */
+   void (*commit_string)(void *data, struct wl_text_input *wl_text_input, uint32_t serial, const char *text);
+
+   /**
+    * cursor_position - set cursor to new position
+    * @index: (none)
+    * @anchor: (none)
+    *
+    * Notify when the cursor or anchor position should be modified.
+    *
+    * This event should be handled as part of a following
+    * commit_string event.
+    */
+   void (*cursor_position)(void *data, struct wl_text_input *wl_text_input, int32_t index, int32_t anchor);
+
+   /**
+    * delete_surrounding_text - delete surrounding text
+    * @index: (none)
+    * @length: (none)
+    *
+    * Notify when the text around the current cursor position should
+    * be deleted.
+    *
+    * Index is relative to the current cursor (in Unicode characters).
+    * Length is the length of deleted text (in Unicode characters).
+    *
+    * This event should be handled as part of a following
+    * commit_string event.
+    */
+   void (*delete_surrounding_text)(void *data, struct wl_text_input *wl_text_input, int32_t index, uint32_t length);
+
+   /**
+    * keysym - keysym
+    * @serial: serial of the latest known text input state
+    * @time: (none)
+    * @sym: (none)
+    * @state: (none)
+    * @modifiers: (none)
+    *
+    * Notify when a key event was sent. Key events should not be
+    * used for normal text input operations, which should be done with
+    * commit_string, delete_surrounding_text, etc. The key event
+    * follows the wl_keyboard key event convention. Sym is a XKB
+    * keysym, state a wl_keyboard key_state. Modifiers are a mask for
+    * effective modifiers (where the modifier indices are set by the
+    * modifiers_map event)
+    */
+   void (*keysym)(void *data, struct wl_text_input *wl_text_input, uint32_t serial, uint32_t time, uint32_t sym, uint32_t state, uint32_t modifiers);
+
+   /**
+    * language - language
+    * @serial: serial of the latest known text input state
+    * @language: (none)
+    *
+    * Sets the language of the input text. The "language" argument
+    * is a RFC-3066 format language tag.
+    */
+   void (*language)(void *data, struct wl_text_input *wl_text_input, uint32_t serial, const char *language);
+
+   /**
+    * text_direction - text direction
+    * @serial: serial of the latest known text input state
+    * @direction: (none)
+    *
+    * Sets the text direction of input text.
+    *
+    * It is mainly needed for showing input cursor on correct side of
+    * the editor when there is no input yet done and making sure
+    * neutral direction text is laid out properly.
+    */
+   void (*text_direction)(void *data, struct wl_text_input *wl_text_input, uint32_t serial, uint32_t direction);
 };
 
 static inline int
-wl_text_input_add_listener(struct wl_text_input *wl_text_input,
-                          const struct wl_text_input_listener *listener, void *data)
+wl_text_input_add_listener(struct wl_text_input *wl_text_input, const struct wl_text_input_listener *listener, void *data)
 {
-       return wl_proxy_add_listener((struct wl_proxy *) wl_text_input,
-                                    (void (**)(void)) listener, data);
+   return wl_proxy_add_listener((struct wl_proxy *) wl_text_input,
+                                (void (**)(void)) listener, data);
 }
 
-#define WL_TEXT_INPUT_ACTIVATE 0
-#define WL_TEXT_INPUT_DEACTIVATE       1
-#define WL_TEXT_INPUT_SHOW_INPUT_PANEL 2
-#define WL_TEXT_INPUT_HIDE_INPUT_PANEL 3
-#define WL_TEXT_INPUT_RESET    4
-#define WL_TEXT_INPUT_SET_SURROUNDING_TEXT     5
-#define WL_TEXT_INPUT_SET_CONTENT_TYPE 6
-#define WL_TEXT_INPUT_SET_CURSOR_RECTANGLE     7
-#define WL_TEXT_INPUT_SET_PREFERRED_LANGUAGE   8
-#define WL_TEXT_INPUT_COMMIT_STATE     9
-#define WL_TEXT_INPUT_INVOKE_ACTION    10
+#define WL_TEXT_INPUT_ACTIVATE 0
+#define WL_TEXT_INPUT_DEACTIVATE 1
+#define WL_TEXT_INPUT_SHOW_INPUT_PANEL 2
+#define WL_TEXT_INPUT_HIDE_INPUT_PANEL 3
+#define WL_TEXT_INPUT_RESET 4
+#define WL_TEXT_INPUT_SET_SURROUNDING_TEXT 5
+#define WL_TEXT_INPUT_SET_CONTENT_TYPE 6
+#define WL_TEXT_INPUT_SET_CURSOR_RECTANGLE 7
+#define WL_TEXT_INPUT_SET_PREFERRED_LANGUAGE 8
+#define WL_TEXT_INPUT_COMMIT_STATE 9
+#define WL_TEXT_INPUT_INVOKE_ACTION 10
 
 static inline void
 wl_text_input_set_user_data(struct wl_text_input *wl_text_input, void *user_data)
 {
    if (!wl_text_input) return;
-       wl_proxy_set_user_data((struct wl_proxy *) wl_text_input, user_data);
+   wl_proxy_set_user_data((struct wl_proxy *) wl_text_input, user_data);
 }
 
 static inline void *
 wl_text_input_get_user_data(struct wl_text_input *wl_text_input)
 {
    if (!wl_text_input) return NULL;
-       return wl_proxy_get_user_data((struct wl_proxy *) wl_text_input);
+   return wl_proxy_get_user_data((struct wl_proxy *) wl_text_input);
 }
 
 static inline void
 wl_text_input_destroy(struct wl_text_input *wl_text_input)
 {
    if (!wl_text_input) return;
-       wl_proxy_destroy((struct wl_proxy *) wl_text_input);
+   wl_proxy_destroy((struct wl_proxy *) wl_text_input);
 }
 
 static inline void
 wl_text_input_activate(struct wl_text_input *wl_text_input, struct wl_seat *seat, struct wl_surface *surface)
 {
    if (!wl_text_input) return;
-       wl_proxy_marshal((struct wl_proxy *) wl_text_input,
-                        WL_TEXT_INPUT_ACTIVATE, seat, surface);
+   wl_proxy_marshal((struct wl_proxy *) wl_text_input,
+                    WL_TEXT_INPUT_ACTIVATE, seat, surface);
 }
 
 static inline void
 wl_text_input_deactivate(struct wl_text_input *wl_text_input, struct wl_seat *seat)
 {
    if (!wl_text_input) return;
-       wl_proxy_marshal((struct wl_proxy *) wl_text_input,
-                        WL_TEXT_INPUT_DEACTIVATE, seat);
+   wl_proxy_marshal((struct wl_proxy *) wl_text_input,
+                    WL_TEXT_INPUT_DEACTIVATE, seat);
 }
 
 static inline void
 wl_text_input_show_input_panel(struct wl_text_input *wl_text_input)
 {
    if (!wl_text_input) return;
-       wl_proxy_marshal((struct wl_proxy *) wl_text_input,
-                        WL_TEXT_INPUT_SHOW_INPUT_PANEL);
+   wl_proxy_marshal((struct wl_proxy *) wl_text_input,
+                    WL_TEXT_INPUT_SHOW_INPUT_PANEL);
 }
 
 static inline void
 wl_text_input_hide_input_panel(struct wl_text_input *wl_text_input)
 {
    if (!wl_text_input) return;
-       wl_proxy_marshal((struct wl_proxy *) wl_text_input,
-                        WL_TEXT_INPUT_HIDE_INPUT_PANEL);
+   wl_proxy_marshal((struct wl_proxy *) wl_text_input, 
+                    WL_TEXT_INPUT_HIDE_INPUT_PANEL);
 }
 
 static inline void
 wl_text_input_reset(struct wl_text_input *wl_text_input)
 {
    if (!wl_text_input) return;
-       wl_proxy_marshal((struct wl_proxy *) wl_text_input,
-                        WL_TEXT_INPUT_RESET);
+   wl_proxy_marshal((struct wl_proxy *) wl_text_input, WL_TEXT_INPUT_RESET);
 }
 
 static inline void
 wl_text_input_set_surrounding_text(struct wl_text_input *wl_text_input, const char *text, uint32_t cursor, uint32_t anchor)
 {
    if (!wl_text_input) return;
-       wl_proxy_marshal((struct wl_proxy *) wl_text_input,
-                        WL_TEXT_INPUT_SET_SURROUNDING_TEXT, text, cursor, anchor);
+   wl_proxy_marshal((struct wl_proxy *) wl_text_input,
+                    WL_TEXT_INPUT_SET_SURROUNDING_TEXT, text, cursor, anchor);
 }
 
 static inline void
 wl_text_input_set_content_type(struct wl_text_input *wl_text_input, uint32_t hint, uint32_t purpose)
 {
    if (!wl_text_input) return;
-       wl_proxy_marshal((struct wl_proxy *) wl_text_input,
-                        WL_TEXT_INPUT_SET_CONTENT_TYPE, hint, purpose);
+   wl_proxy_marshal((struct wl_proxy *) wl_text_input,
+                    WL_TEXT_INPUT_SET_CONTENT_TYPE, hint, purpose);
 }
 
 static inline void
 wl_text_input_set_cursor_rectangle(struct wl_text_input *wl_text_input, int32_t x, int32_t y, int32_t width, int32_t height)
 {
    if (!wl_text_input) return;
-       wl_proxy_marshal((struct wl_proxy *) wl_text_input,
-                        WL_TEXT_INPUT_SET_CURSOR_RECTANGLE, x, y, width, height);
+   wl_proxy_marshal((struct wl_proxy *) wl_text_input,
+                    WL_TEXT_INPUT_SET_CURSOR_RECTANGLE, x, y, width, height);
 }
 
 static inline void
 wl_text_input_set_preferred_language(struct wl_text_input *wl_text_input, const char *language)
 {
    if (!wl_text_input) return;
-       wl_proxy_marshal((struct wl_proxy *) wl_text_input,
-                        WL_TEXT_INPUT_SET_PREFERRED_LANGUAGE, language);
+   wl_proxy_marshal((struct wl_proxy *) wl_text_input,
+                    WL_TEXT_INPUT_SET_PREFERRED_LANGUAGE, language);
 }
 
 static inline void
 wl_text_input_commit_state(struct wl_text_input *wl_text_input, uint32_t serial)
 {
    if (!wl_text_input) return;
-       wl_proxy_marshal((struct wl_proxy *) wl_text_input,
-                        WL_TEXT_INPUT_COMMIT_STATE, serial);
+   wl_proxy_marshal((struct wl_proxy *) wl_text_input,
+                    WL_TEXT_INPUT_COMMIT_STATE, serial);
 }
 
 static inline void
 wl_text_input_invoke_action(struct wl_text_input *wl_text_input, uint32_t button, uint32_t index)
 {
    if (!wl_text_input) return;
-       wl_proxy_marshal((struct wl_proxy *) wl_text_input,
-                        WL_TEXT_INPUT_INVOKE_ACTION, button, index);
+   wl_proxy_marshal((struct wl_proxy *) wl_text_input,
+                    WL_TEXT_INPUT_INVOKE_ACTION, button, index);
 }
 
 #define WL_TEXT_INPUT_MANAGER_CREATE_TEXT_INPUT        0
@@ -521,39 +498,39 @@ static inline void
 wl_text_input_manager_set_user_data(struct wl_text_input_manager *wl_text_input_manager, void *user_data)
 {
    if (!wl_text_input_manager) return;
-       wl_proxy_set_user_data((struct wl_proxy *) wl_text_input_manager, user_data);
+   wl_proxy_set_user_data((struct wl_proxy *) wl_text_input_manager, 
+                          user_data);
 }
 
 static inline void *
 wl_text_input_manager_get_user_data(struct wl_text_input_manager *wl_text_input_manager)
 {
    if (!wl_text_input_manager) return NULL;
-       return wl_proxy_get_user_data((struct wl_proxy *) wl_text_input_manager);
+   return wl_proxy_get_user_data((struct wl_proxy *) wl_text_input_manager);
 }
 
 static inline void
 wl_text_input_manager_destroy(struct wl_text_input_manager *wl_text_input_manager)
 {
    if (!wl_text_input_manager) return;
-       wl_proxy_destroy((struct wl_proxy *) wl_text_input_manager);
+   wl_proxy_destroy((struct wl_proxy *) wl_text_input_manager);
 }
 
 static inline struct wl_text_input *
 wl_text_input_manager_create_text_input(struct wl_text_input_manager *wl_text_input_manager)
 {
-       struct wl_proxy *id;
+   struct wl_proxy *id;
 
    if (!wl_text_input_manager) return NULL;
 
-       id = wl_proxy_create((struct wl_proxy *) wl_text_input_manager,
-                            &wl_text_input_interface);
-       if (!id)
-               return NULL;
+   id = wl_proxy_create((struct wl_proxy *) wl_text_input_manager,
+                        &wl_text_input_interface);
+   if (!id) return NULL;
 
-       wl_proxy_marshal((struct wl_proxy *) wl_text_input_manager,
-                        WL_TEXT_INPUT_MANAGER_CREATE_TEXT_INPUT, id);
+   wl_proxy_marshal((struct wl_proxy *) wl_text_input_manager, 
+                    WL_TEXT_INPUT_MANAGER_CREATE_TEXT_INPUT, id);
 
-       return (struct wl_text_input *) id;
+   return (struct wl_text_input *) id;
 }
 
 #ifdef  __cplusplus