2 * Copyright 2013 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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.
20 extern struct script_info *script_handler_create(struct inst_info *inst, const char *file, const char *group, int w, int h);
21 extern int script_handler_destroy(struct script_info *info);
22 extern int script_handler_parse_desc(struct inst_info *inst, const char *descfile, int is_pd);
23 extern int script_handler_unload(struct script_info *info, int is_pd);
24 extern int script_handler_load(struct script_info *info, int is_pd);
25 extern int script_handler_is_loaded(struct script_info *info);
26 extern int script_handler_feed_event(struct script_info *info, int event, double timestamp);
28 extern int script_init(void);
29 extern int script_fini(void);
31 extern int script_signal_emit(void *buffer_handle, const char *part, const char *signal, double sx, double sy, double ex, double ey);
33 extern int script_handler_update_pointer(struct script_info *inst, int x, int y, int down);
34 extern int script_handler_update_keycode(struct script_info *info, unsigned int keycode);
35 extern int script_handler_resize(struct script_info *info, int w, int h);
36 extern const char *script_handler_buffer_id(struct script_info *info);
37 extern struct buffer_info *script_handler_buffer_info(struct script_info *info);