2 * Copyright © 2013 Intel Corporation
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
27 struct wl_input_method_context;
30 extern int WKB_IBUS_CONNECTED;
31 extern int WKB_IBUS_DISCONNECTED;
33 int wkb_ibus_init(void);
34 void wkb_ibus_shutdown(void);
36 Eina_Bool wkb_ibus_connect(void);
37 void wkb_ibus_disconnect(void);
39 Eina_Bool wkb_ibus_is_connected(void);
41 /* IBus Input Context */
42 void wkb_ibus_input_context_create(struct wl_input_method_context *wl_ctx);
43 void wkb_ibus_input_context_destroy(void);
44 void wkb_ibus_input_context_process_key_event(void);
45 void wkb_ibus_input_context_set_surrounding_text(void);
46 unsigned int wkb_ibus_input_context_serial(void);
47 void wkb_ibus_input_context_set_serial(unsigned int serial);
50 Eldbus_Service_Interface * wkb_ibus_panel_register(Eldbus_Connection *conn);
53 Eldbus_Service_Interface * wkb_ibus_config_register(Eldbus_Connection *conn, const char *path);
54 void wkb_ibus_config_unregister(void);
60 #endif /* _WKB_IBUS_H_ */