summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <boris@fau.re>2017-07-06 20:55:02 +0200
committerBoris Faure <boris@fau.re>2017-07-06 21:37:56 +0200
commit6f1a2dd45201c3b8432a1e84ca9fd144bdff8483 (patch)
tree526fd6f16dfd1522dd22ec2a57d6646ee7c8d4df
parent3cafc4272d6b1600f323eb785e76a662bc7818f2 (diff)
constify
-rw-r--r--src/bin/col.c4
-rw-r--r--src/bin/col.h2
-rw-r--r--src/bin/config.c2
-rw-r--r--src/bin/config.h2
-rw-r--r--src/bin/gravatar.c4
-rw-r--r--src/bin/gravatar.h2
-rw-r--r--src/bin/keyin.c4
-rw-r--r--src/bin/keyin.h4
-rw-r--r--src/bin/main.h4
-rw-r--r--src/bin/media.c4
-rw-r--r--src/bin/media.h4
-rw-r--r--src/bin/miniview.c4
-rw-r--r--src/bin/miniview.h4
-rw-r--r--src/bin/term_container.h14
-rw-r--r--src/bin/termio.c21
-rw-r--r--src/bin/termio.h20
-rw-r--r--src/bin/termiolink.c2
-rw-r--r--src/bin/termiolink.h2
-rw-r--r--src/bin/termpty.c10
-rw-r--r--src/bin/termpty.h6
-rw-r--r--src/bin/termptydbl.c2
-rw-r--r--src/bin/termptydbl.h4
-rw-r--r--src/bin/termptyesc.c8
-rw-r--r--src/bin/termptyesc.h2
-rw-r--r--src/bin/termptyext.c4
-rw-r--r--src/bin/termptyext.h2
-rw-r--r--src/bin/termptygfx.c2
-rw-r--r--src/bin/termptygfx.h2
-rw-r--r--src/bin/termptyops.c2
-rw-r--r--src/bin/win.c86
-rw-r--r--src/bin/win.h18
31 files changed, 128 insertions, 123 deletions
diff --git a/src/bin/col.c b/src/bin/col.c
index 003847c..e73b472 100644
--- a/src/bin/col.c
+++ b/src/bin/col.c
@@ -380,7 +380,9 @@ static const Color default_colors256[256] =
380}; 380};
381 381
382void 382void
383colors_term_init(Evas_Object *textgrid, Evas_Object *bg, Config *config) 383colors_term_init(Evas_Object *textgrid,
384 const Evas_Object *bg,
385 const Config *config)
384{ 386{
385 int c, n; 387 int c, n;
386 char buf[32]; 388 char buf[32];
diff --git a/src/bin/col.h b/src/bin/col.h
index c277287..2fe8dfe 100644
--- a/src/bin/col.h
+++ b/src/bin/col.h
@@ -4,7 +4,7 @@
4#include <Evas.h> 4#include <Evas.h>
5#include "config.h" 5#include "config.h"
6 6
7void colors_term_init(Evas_Object *textgrid, Evas_Object *bg, Config *config); 7void colors_term_init(Evas_Object *textgrid, const Evas_Object *bg, const Config *config);
8void colors_standard_get(int set, int col, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a); 8void colors_standard_get(int set, int col, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a);
9 9
10#endif 10#endif
diff --git a/src/bin/config.c b/src/bin/config.c
index 087e253..a80e434 100644
--- a/src/bin/config.c
+++ b/src/bin/config.c
@@ -650,7 +650,7 @@ config_load(const char *key)
650} 650}
651 651
652Config * 652Config *
653config_fork(Config *config) 653config_fork(const Config *config)
654{ 654{
655 Config_Keys *key; 655 Config_Keys *key;
656 Eina_List *l; 656 Eina_List *l;
diff --git a/src/bin/config.h b/src/bin/config.h
index 2db6b25..cef03fc 100644
--- a/src/bin/config.h
+++ b/src/bin/config.h
@@ -92,7 +92,7 @@ void config_shutdown(void);
92void config_sync(const Config *config_src, Config *config); 92void config_sync(const Config *config_src, Config *config);
93void config_save(Config *config, const char *key); 93void config_save(Config *config, const char *key);
94Config *config_load(const char *key); 94Config *config_load(const char *key);
95Config *config_fork(Config *config); 95Config *config_fork(const Config *config);
96Config *config_new(); 96Config *config_new();
97void config_del(Config *config); 97void config_del(Config *config);
98void config_default_font_set(Config *config, Evas *evas); 98void config_default_font_set(Config *config, Evas *evas);
diff --git a/src/bin/gravatar.c b/src/bin/gravatar.c
index 06cbea9..c93c4d9 100644
--- a/src/bin/gravatar.c
+++ b/src/bin/gravatar.c
@@ -28,7 +28,7 @@ int _gravatar_log_dom = -1;
28 28
29typedef struct _Gravatar { 29typedef struct _Gravatar {
30 const char *url; 30 const char *url;
31 Config *config; 31 const Config *config;
32} Gravatar; 32} Gravatar;
33 33
34static Evas_Object * 34static Evas_Object *
@@ -56,7 +56,7 @@ _tooltip_del(void *data,
56} 56}
57 57
58void 58void
59gravatar_tooltip(Evas_Object *obj, Config *config, char *email) 59gravatar_tooltip(Evas_Object *obj, const Config *config, char *email)
60{ 60{
61 int n; 61 int n;
62 MD5_CTX ctx; 62 MD5_CTX ctx;
diff --git a/src/bin/gravatar.h b/src/bin/gravatar.h
index fb5ea14..c7a3cdd 100644
--- a/src/bin/gravatar.h
+++ b/src/bin/gravatar.h
@@ -4,7 +4,7 @@
4#include "config.h" 4#include "config.h"
5 5
6void 6void
7gravatar_tooltip(Evas_Object *obj, Config *config, char *email); 7gravatar_tooltip(Evas_Object *obj, const Config *config, char *email);
8 8
9void gravatar_init(void); 9void gravatar_init(void);
10void gravatar_shutdown(void); 10void gravatar_shutdown(void);
diff --git a/src/bin/keyin.c b/src/bin/keyin.c
index 5907e83..15ec8a0 100644
--- a/src/bin/keyin.c
+++ b/src/bin/keyin.c
@@ -775,7 +775,7 @@ _key_binding_free(void *data)
775 775
776/* Returns -2 for duplicate key, 0 on success, -1 otherwise */ 776/* Returns -2 for duplicate key, 0 on success, -1 otherwise */
777int 777int
778keyin_add_config(Config_Keys *key) 778keyin_add_config(const Config_Keys *key)
779{ 779{
780 Shortcut_Action *action = _actions; 780 Shortcut_Action *action = _actions;
781 781
@@ -804,7 +804,7 @@ keyin_add_config(Config_Keys *key)
804} 804}
805 805
806int 806int
807keyin_remove_config(Config_Keys *key) 807keyin_remove_config(const Config_Keys *key)
808{ 808{
809 Key_Binding *kb; 809 Key_Binding *kb;
810 810
diff --git a/src/bin/keyin.h b/src/bin/keyin.h
index 9687381..d9127a1 100644
--- a/src/bin/keyin.h
+++ b/src/bin/keyin.h
@@ -34,8 +34,8 @@ struct _Shortcut_Action
34const Shortcut_Action *shortcut_actions_get(void); 34const Shortcut_Action *shortcut_actions_get(void);
35 35
36int key_bindings_load(Config *config); 36int key_bindings_load(Config *config);
37int keyin_add_config(Config_Keys *cfg_key); 37int keyin_add_config(const Config_Keys *cfg_key);
38int keyin_remove_config(Config_Keys *cfg_key); 38int keyin_remove_config(const Config_Keys *cfg_key);
39void key_bindings_shutdown(void); 39void key_bindings_shutdown(void);
40 40
41#endif 41#endif
diff --git a/src/bin/main.h b/src/bin/main.h
index 61d387f..8edb2be 100644
--- a/src/bin/main.h
+++ b/src/bin/main.h
@@ -6,8 +6,8 @@
6Config * main_config_get(void); 6Config * main_config_get(void);
7void main_new(Evas_Object *win, Evas_Object *term); 7void main_new(Evas_Object *win, Evas_Object *term);
8void main_new_with_dir(Evas_Object *win, Evas_Object *term, const char *wdir); 8void main_new_with_dir(Evas_Object *win, Evas_Object *term, const char *wdir);
9void main_split_h(Evas_Object *win, Evas_Object *term, char *cmd); 9void main_split_h(Evas_Object *win, Evas_Object *term, const char *cmd);
10void main_split_v(Evas_Object *win, Evas_Object *term, char *cmd); 10void main_split_v(Evas_Object *win, Evas_Object *term, const char *cmd);
11void term_close(Evas_Object *win, Evas_Object *term, 11void term_close(Evas_Object *win, Evas_Object *term,
12 Eina_Bool hold_if_requested); 12 Eina_Bool hold_if_requested);
13 13
diff --git a/src/bin/media.c b/src/bin/media.c
index 3a45463..e1af48b 100644
--- a/src/bin/media.c
+++ b/src/bin/media.c
@@ -1486,7 +1486,7 @@ media_play_set(Evas_Object *obj, Eina_Bool play)
1486} 1486}
1487 1487
1488Eina_Bool 1488Eina_Bool
1489media_play_get(Evas_Object *obj) 1489media_play_get(const Evas_Object *obj)
1490{ 1490{
1491 Media *sd = evas_object_smart_data_get(obj); 1491 Media *sd = evas_object_smart_data_get(obj);
1492 if ((!sd) || (sd->type != MEDIA_TYPE_MOV)) return EINA_FALSE; 1492 if ((!sd) || (sd->type != MEDIA_TYPE_MOV)) return EINA_FALSE;
@@ -1542,7 +1542,7 @@ media_src_type_get(const char *src)
1542} 1542}
1543 1543
1544Evas_Object * 1544Evas_Object *
1545media_control_get(Evas_Object *obj) 1545media_control_get(const Evas_Object *obj)
1546{ 1546{
1547 Media *sd = evas_object_smart_data_get(obj); 1547 Media *sd = evas_object_smart_data_get(obj);
1548 if (!sd) return NULL; 1548 if (!sd) return NULL;
diff --git a/src/bin/media.h b/src/bin/media.h
index 48b5c16..5f33cd4 100644
--- a/src/bin/media.h
+++ b/src/bin/media.h
@@ -30,14 +30,14 @@ enum _Media_Type {
30Evas_Object *media_add(Evas_Object *parent, const char *src, const Config *config, int mode, Media_Type type); 30Evas_Object *media_add(Evas_Object *parent, const char *src, const Config *config, int mode, Media_Type type);
31void media_mute_set(Evas_Object *obj, Eina_Bool mute); 31void media_mute_set(Evas_Object *obj, Eina_Bool mute);
32void media_play_set(Evas_Object *obj, Eina_Bool play); 32void media_play_set(Evas_Object *obj, Eina_Bool play);
33Eina_Bool media_play_get(Evas_Object *obj); 33Eina_Bool media_play_get(const Evas_Object *obj);
34void media_position_set(Evas_Object *obj, double pos); 34void media_position_set(Evas_Object *obj, double pos);
35void media_volume_set(Evas_Object *obj, double vol); 35void media_volume_set(Evas_Object *obj, double vol);
36void media_visualize_set(Evas_Object *obj, Eina_Bool visualize); 36void media_visualize_set(Evas_Object *obj, Eina_Bool visualize);
37void media_stop(Evas_Object *obj); 37void media_stop(Evas_Object *obj);
38const char *media_get(const Evas_Object *obj); 38const char *media_get(const Evas_Object *obj);
39Media_Type media_src_type_get(const char *src); 39Media_Type media_src_type_get(const char *src);
40Evas_Object *media_control_get(Evas_Object *obj); 40Evas_Object *media_control_get(const Evas_Object *obj);
41void media_unknown_handle(const char *handler, const char *src); 41void media_unknown_handle(const char *handler, const char *src);
42 42
43#endif 43#endif
diff --git a/src/bin/miniview.c b/src/bin/miniview.c
index a526c17..0b01dcc 100644
--- a/src/bin/miniview.c
+++ b/src/bin/miniview.c
@@ -207,7 +207,7 @@ _smart_cb_mouse_wheel(void *data,
207} 207}
208 208
209void 209void
210miniview_position_offset(Evas_Object *obj, int by, Eina_Bool sanitize) 210miniview_position_offset(const Evas_Object *obj, int by, Eina_Bool sanitize)
211{ 211{
212 Miniview *mv = evas_object_smart_data_get(obj); 212 Miniview *mv = evas_object_smart_data_get(obj);
213 int remain = 0; 213 int remain = 0;
@@ -476,7 +476,7 @@ _smart_hide(Evas_Object *obj)
476} 476}
477 477
478void 478void
479miniview_redraw(Evas_Object *obj) 479miniview_redraw(const Evas_Object *obj)
480{ 480{
481 Miniview *mv; 481 Miniview *mv;
482 482
diff --git a/src/bin/miniview.h b/src/bin/miniview.h
index 5ce22b8..65d28c6 100644
--- a/src/bin/miniview.h
+++ b/src/bin/miniview.h
@@ -5,8 +5,8 @@
5 5
6Evas_Object * miniview_add(Evas_Object *parent, Evas_Object *termio); 6Evas_Object * miniview_add(Evas_Object *parent, Evas_Object *termio);
7 7
8void miniview_redraw(Evas_Object *obj); 8void miniview_redraw(const Evas_Object *obj);
9void miniview_position_offset(Evas_Object *obj, int by, Eina_Bool sanitize); 9void miniview_position_offset(const Evas_Object *obj, int by, Eina_Bool sanitize);
10Eina_Bool miniview_handle_key(Evas_Object *obj, const Evas_Event_Key_Down *ev); 10Eina_Bool miniview_handle_key(Evas_Object *obj, const Evas_Event_Key_Down *ev);
11 11
12void miniview_init(void); 12void miniview_init(void);
diff --git a/src/bin/term_container.h b/src/bin/term_container.h
index 5015140..40b7090 100644
--- a/src/bin/term_container.h
+++ b/src/bin/term_container.h
@@ -37,13 +37,13 @@ struct _Term_Container {
37 Eina_Bool is_focused; 37 Eina_Bool is_focused;
38 const char *title; 38 const char *title;
39 39
40 Term *(*term_next)(Term_Container *tc, Term_Container *child); 40 Term *(*term_next)(const Term_Container *tc, const Term_Container *child);
41 Term *(*term_prev)(Term_Container *tc, Term_Container *child); 41 Term *(*term_prev)(const Term_Container *tc, const Term_Container *child);
42 Term *(*term_first)(Term_Container *tc); 42 Term *(*term_first)(const Term_Container *tc);
43 Term *(*term_last)(Term_Container *tc); 43 Term *(*term_last)(const Term_Container *tc);
44 Term *(*focused_term_get)(Term_Container *tc); 44 Term *(*focused_term_get)(const Term_Container *tc);
45 Evas_Object* (*get_evas_object)(Term_Container *container); 45 Evas_Object* (*get_evas_object)(const Term_Container *container);
46 Term *(*find_term_at_coords)(Term_Container *container, 46 Term *(*find_term_at_coords)(const Term_Container *container,
47 Evas_Coord mx, Evas_Coord my); 47 Evas_Coord mx, Evas_Coord my);
48 void (*split)(Term_Container *tc, Term_Container *child, 48 void (*split)(Term_Container *tc, Term_Container *child,
49 Term *from, const char *cmd, Eina_Bool is_horizontal); 49 Term *from, const char *cmd, Eina_Bool is_horizontal);
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 9b03008..04dd187 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -302,7 +302,7 @@ termio_mouseover_suspend_pushpop(Evas_Object *obj, int dir)
302} 302}
303 303
304void 304void
305termio_size_get(Evas_Object *obj, int *w, int *h) 305termio_size_get(const Evas_Object *obj, int *w, int *h)
306{ 306{
307 Termio *sd = evas_object_smart_data_get(obj); 307 Termio *sd = evas_object_smart_data_get(obj);
308 EINA_SAFETY_ON_NULL_RETURN(sd); 308 EINA_SAFETY_ON_NULL_RETURN(sd);
@@ -311,7 +311,7 @@ termio_size_get(Evas_Object *obj, int *w, int *h)
311} 311}
312 312
313int 313int
314termio_scroll_get(Evas_Object *obj) 314termio_scroll_get(const Evas_Object *obj)
315{ 315{
316 Termio *sd = evas_object_smart_data_get(obj); 316 Termio *sd = evas_object_smart_data_get(obj);
317 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, 0); 317 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, 0);
@@ -358,7 +358,7 @@ termio_scroll_top_backlog(Evas_Object *obj)
358} 358}
359 359
360const char * 360const char *
361termio_title_get(Evas_Object *obj) 361termio_title_get(const Evas_Object *obj)
362{ 362{
363 Termio *sd = evas_object_smart_data_get(obj); 363 Termio *sd = evas_object_smart_data_get(obj);
364 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL); 364 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL);
@@ -382,7 +382,7 @@ termio_user_title_set(Evas_Object *obj, const char *title)
382} 382}
383 383
384const char * 384const char *
385termio_icon_name_get(Evas_Object *obj) 385termio_icon_name_get(const Evas_Object *obj)
386{ 386{
387 Termio *sd = evas_object_smart_data_get(obj); 387 Termio *sd = evas_object_smart_data_get(obj);
388 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL); 388 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL);
@@ -428,7 +428,7 @@ termio_selection_exists(const Evas_Object *obj)
428} 428}
429 429
430Termpty * 430Termpty *
431termio_pty_get(Evas_Object *obj) 431termio_pty_get(const Evas_Object *obj)
432{ 432{
433 Termio *sd = evas_object_smart_data_get(obj); 433 Termio *sd = evas_object_smart_data_get(obj);
434 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL); 434 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL);
@@ -437,7 +437,7 @@ termio_pty_get(Evas_Object *obj)
437} 437}
438 438
439Evas_Object * 439Evas_Object *
440termio_miniview_get(Evas_Object *obj) 440termio_miniview_get(const Evas_Object *obj)
441{ 441{
442 Termio *sd = evas_object_smart_data_get(obj); 442 Termio *sd = evas_object_smart_data_get(obj);
443 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL); 443 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL);
@@ -446,7 +446,7 @@ termio_miniview_get(Evas_Object *obj)
446} 446}
447 447
448Term* 448Term*
449termio_term_get(Evas_Object *obj) 449termio_term_get(const Evas_Object *obj)
450{ 450{
451 Termio *sd = evas_object_smart_data_get(obj); 451 Termio *sd = evas_object_smart_data_get(obj);
452 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL); 452 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL);
@@ -549,7 +549,7 @@ termio_cwd_get(const Evas_Object *obj, char *buf, size_t size)
549} 549}
550 550
551Evas_Object * 551Evas_Object *
552termio_textgrid_get(Evas_Object *obj) 552termio_textgrid_get(const Evas_Object *obj)
553{ 553{
554 Termio *sd = evas_object_smart_data_get(obj); 554 Termio *sd = evas_object_smart_data_get(obj);
555 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL); 555 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL);
@@ -558,7 +558,7 @@ termio_textgrid_get(Evas_Object *obj)
558} 558}
559 559
560Evas_Object * 560Evas_Object *
561termio_win_get(Evas_Object *obj) 561termio_win_get(const Evas_Object *obj)
562{ 562{
563 Termio *sd = evas_object_smart_data_get(obj); 563 Termio *sd = evas_object_smart_data_get(obj);
564 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL); 564 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL);
@@ -2069,7 +2069,8 @@ _mouse_in_selection(Termio *sd, int cx, int cy)
2069 2069
2070 2070
2071char * 2071char *
2072termio_selection_get(Evas_Object *obj, int c1x, int c1y, int c2x, int c2y, 2072termio_selection_get(const Evas_Object *obj,
2073 int c1x, int c1y, int c2x, int c2y,
2073 size_t *lenp, 2074 size_t *lenp,
2074 Eina_Bool rtrim) 2075 Eina_Bool rtrim)
2075{ 2076{
diff --git a/src/bin/termio.h b/src/bin/termio.h
index 0567de6..02cb616 100644
--- a/src/bin/termio.h
+++ b/src/bin/termio.h
@@ -10,7 +10,7 @@
10Evas_Object *termio_add(Evas_Object *parent, Config *config, const char *cmd, Eina_Bool login_shell, const char *cd, int w, int h, Term *term); 10Evas_Object *termio_add(Evas_Object *parent, Config *config, const char *cmd, Eina_Bool login_shell, const char *cd, int w, int h, Term *term);
11void termio_win_set(Evas_Object *obj, Evas_Object *win); 11void termio_win_set(Evas_Object *obj, Evas_Object *win);
12void termio_theme_set(Evas_Object *obj, Evas_Object *theme); 12void termio_theme_set(Evas_Object *obj, Evas_Object *theme);
13char *termio_selection_get(Evas_Object *obj, 13char *termio_selection_get(const Evas_Object *obj,
14 int c1x, int c1y, int c2x, int c2y, 14 int c1x, int c1y, int c2x, int c2y,
15 size_t *len, Eina_Bool right_trim); 15 size_t *len, Eina_Bool right_trim);
16Eina_Bool termio_selection_exists(const Evas_Object *obj); 16Eina_Bool termio_selection_exists(const Evas_Object *obj);
@@ -27,24 +27,24 @@ void termio_paste_selection(Evas_Object *obj, Elm_Sel_Type);
27const char *termio_link_get(const Evas_Object *obj); 27const char *termio_link_get(const Evas_Object *obj);
28void termio_mouseover_suspend_pushpop(Evas_Object *obj, int dir); 28void termio_mouseover_suspend_pushpop(Evas_Object *obj, int dir);
29void termio_event_feed_mouse_in(Evas_Object *obj); 29void termio_event_feed_mouse_in(Evas_Object *obj);
30void termio_size_get(Evas_Object *obj, int *w, int *h); 30void termio_size_get(const Evas_Object *obj, int *w, int *h);
31int termio_scroll_get(Evas_Object *obj); 31int termio_scroll_get(const Evas_Object *obj);
32void termio_font_size_set(Evas_Object *obj, int size); 32void termio_font_size_set(Evas_Object *obj, int size);
33void termio_grid_size_set(Evas_Object *obj, int w, int h); 33void termio_grid_size_set(Evas_Object *obj, int w, int h);
34pid_t termio_pid_get(const Evas_Object *obj); 34pid_t termio_pid_get(const Evas_Object *obj);
35Eina_Bool termio_cwd_get(const Evas_Object *obj, char *buf, size_t size); 35Eina_Bool termio_cwd_get(const Evas_Object *obj, char *buf, size_t size);
36Evas_Object *termio_textgrid_get(Evas_Object *obj); 36Evas_Object *termio_textgrid_get(const Evas_Object *obj);
37Evas_Object *termio_win_get(Evas_Object *obj); 37Evas_Object *termio_win_get(const Evas_Object *obj);
38const char *termio_title_get(Evas_Object *obj); 38const char *termio_title_get(const Evas_Object *obj);
39void termio_user_title_set(Evas_Object *obj, const char *title); 39void termio_user_title_set(Evas_Object *obj, const char *title);
40const char *termio_icon_name_get(Evas_Object *obj); 40const char *termio_icon_name_get(const Evas_Object *obj);
41void termio_media_mute_set(Evas_Object *obj, Eina_Bool mute); 41void termio_media_mute_set(Evas_Object *obj, Eina_Bool mute);
42void termio_media_visualize_set(Evas_Object *obj, Eina_Bool visualize); 42void termio_media_visualize_set(Evas_Object *obj, Eina_Bool visualize);
43void termio_config_set(Evas_Object *obj, Config *config); 43void termio_config_set(Evas_Object *obj, Config *config);
44Config *termio_config_get(const Evas_Object *obj); 44Config *termio_config_get(const Evas_Object *obj);
45 45
46Termpty *termio_pty_get(Evas_Object *obj); 46Termpty *termio_pty_get(const Evas_Object *obj);
47Evas_Object * termio_miniview_get(Evas_Object *obj); 47Evas_Object * termio_miniview_get(const Evas_Object *obj);
48Term* termio_term_get(Evas_Object *obj); 48Term* termio_term_get(const Evas_Object *obj);
49 49
50#endif 50#endif
diff --git a/src/bin/termiolink.c b/src/bin/termiolink.c
index 4394d85..13dab93 100644
--- a/src/bin/termiolink.c
+++ b/src/bin/termiolink.c
@@ -228,7 +228,7 @@ bad:
228} 228}
229 229
230char * 230char *
231termio_link_find(Evas_Object *obj, int cx, int cy, 231termio_link_find(const Evas_Object *obj, int cx, int cy,
232 int *x1r, int *y1r, int *x2r, int *y2r) 232 int *x1r, int *y1r, int *x2r, int *y2r)
233{ 233{
234 char *s = NULL; 234 char *s = NULL;
diff --git a/src/bin/termiolink.h b/src/bin/termiolink.h
index 455e20c..bb97d90 100644
--- a/src/bin/termiolink.h
+++ b/src/bin/termiolink.h
@@ -1,6 +1,6 @@
1#ifndef _TERMIO_LINK_H__ 1#ifndef _TERMIO_LINK_H__
2#define _TERMIO_LINK_H__ 1 2#define _TERMIO_LINK_H__ 1
3 3
4char *termio_link_find(Evas_Object *obj, int cx, int cy, int *x1r, int *y1r, int *x2r, int *y2r); 4char *termio_link_find(const Evas_Object *obj, int cx, int cy, int *x1r, int *y1r, int *x2r, int *y2r);
5 5
6#endif 6#endif
diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 5ef82f1..66bee83 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -802,7 +802,7 @@ termpty_line_length(const Termcell *cells, ssize_t nb_cells)
802 802
803 803
804static inline void 804static inline void
805verify_beacon(Termpty *ty EINA_UNUSED, int verbose EINA_UNUSED) 805verify_beacon(const Termpty *ty EINA_UNUSED, int verbose EINA_UNUSED)
806{ 806{
807#if 0 807#if 0
808 Termsave *ts; 808 Termsave *ts;
@@ -955,7 +955,7 @@ termpty_backlog_length(Termpty *ty)
955 while (42) 955 while (42)
956 { 956 {
957 int nb_lines; 957 int nb_lines;
958 Termsave *ts; 958 const Termsave *ts;
959 959
960 ts = BACKLOG_ROW_GET(ty, backlog_y); 960 ts = BACKLOG_ROW_GET(ty, backlog_y);
961 if (!ts->cells || backlog_y >= (int)ty->backsize) 961 if (!ts->cells || backlog_y >= (int)ty->backsize)
@@ -1454,7 +1454,7 @@ termpty_block_insert(Termpty *ty, int ch, Termblock *blk)
1454} 1454}
1455 1455
1456int 1456int
1457termpty_block_id_get(Termcell *cell, int *x, int *y) 1457termpty_block_id_get(const Termcell *cell, int *x, int *y)
1458{ 1458{
1459 int id; 1459 int id;
1460 1460
@@ -1466,7 +1466,7 @@ termpty_block_id_get(Termcell *cell, int *x, int *y)
1466} 1466}
1467 1467
1468Termblock * 1468Termblock *
1469termpty_block_get(Termpty *ty, int id) 1469termpty_block_get(const Termpty *ty, int id)
1470{ 1470{
1471 if (!ty->block.blocks) return NULL; 1471 if (!ty->block.blocks) return NULL;
1472 return eina_hash_find(ty->block.blocks, &id); 1472 return eina_hash_find(ty->block.blocks, &id);
@@ -1483,7 +1483,7 @@ termpty_block_chid_update(Termpty *ty, Termblock *blk)
1483} 1483}
1484 1484
1485Termblock * 1485Termblock *
1486termpty_block_chid_get(Termpty *ty, const char *chid) 1486termpty_block_chid_get(const Termpty *ty, const char *chid)
1487{ 1487{
1488 Termblock *tb; 1488 Termblock *tb;
1489 1489
diff --git a/src/bin/termpty.h b/src/bin/termpty.h
index c859401..30742c0 100644
--- a/src/bin/termpty.h
+++ b/src/bin/termpty.h
@@ -247,10 +247,10 @@ pid_t termpty_pid_get(const Termpty *ty);
247void termpty_block_free(Termblock *tb); 247void termpty_block_free(Termblock *tb);
248Termblock *termpty_block_new(Termpty *ty, int w, int h, const char *path, const char *link); 248Termblock *termpty_block_new(Termpty *ty, int w, int h, const char *path, const char *link);
249void termpty_block_insert(Termpty *ty, int ch, Termblock *blk); 249void termpty_block_insert(Termpty *ty, int ch, Termblock *blk);
250int termpty_block_id_get(Termcell *cell, int *x, int *y); 250int termpty_block_id_get(const Termcell *cell, int *x, int *y);
251Termblock *termpty_block_get(Termpty *ty, int id); 251Termblock *termpty_block_get(const Termpty *ty, int id);
252void termpty_block_chid_update(Termpty *ty, Termblock *blk); 252void termpty_block_chid_update(Termpty *ty, Termblock *blk);
253Termblock *termpty_block_chid_get(Termpty *ty, const char *chid); 253Termblock *termpty_block_chid_get(const Termpty *ty, const char *chid);
254 254
255void termpty_cell_copy(Termpty *ty, Termcell *src, Termcell *dst, int n); 255void termpty_cell_copy(Termpty *ty, Termcell *src, Termcell *dst, int n);
256void termpty_cell_fill(Termpty *ty, Termcell *src, Termcell *dst, int n); 256void termpty_cell_fill(Termpty *ty, Termcell *src, Termcell *dst, int n);
diff --git a/src/bin/termptydbl.c b/src/bin/termptydbl.c
index 7e1e4b0..38db33b 100644
--- a/src/bin/termptydbl.c
+++ b/src/bin/termptydbl.c
@@ -5,7 +5,7 @@
5#include "termptydbl.h" 5#include "termptydbl.h"
6 6
7Eina_Bool 7Eina_Bool
8_termpty_is_dblwidth_slow_get(Termpty *ty, int g) 8_termpty_is_dblwidth_slow_get(const Termpty *ty, int g)
9{ 9{
10 // check for east asian full-width (F), half-width (H), wide (W), 10 // check for east asian full-width (F), half-width (H), wide (W),
11 // narrow (Na) or ambiguous (A) codepoints 11 // narrow (Na) or ambiguous (A) codepoints
diff --git a/src/bin/termptydbl.h b/src/bin/termptydbl.h
index 635b8cc..142e16c 100644
--- a/src/bin/termptydbl.h
+++ b/src/bin/termptydbl.h
@@ -1,10 +1,10 @@
1#ifndef _TERMPTY_DBL_H__ 1#ifndef _TERMPTY_DBL_H__
2#define _TERMPTY_DBL_H__ 1 2#define _TERMPTY_DBL_H__ 1
3 3
4Eina_Bool _termpty_is_dblwidth_slow_get(Termpty *ty, int g); 4Eina_Bool _termpty_is_dblwidth_slow_get(const Termpty *ty, int g);
5 5
6static inline Eina_Bool 6static inline Eina_Bool
7_termpty_is_dblwidth_get(Termpty *ty, int g) 7_termpty_is_dblwidth_get(const Termpty *ty, int g)
8{ 8{
9 // check for east asian full-width (F), half-width (H), wide (W), 9 // check for east asian full-width (F), half-width (H), wide (W),
10 // narrow (Na) or ambiguous (A) codepoints 10 // narrow (Na) or ambiguous (A) codepoints
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index aef05eb..7b5f847 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -974,7 +974,7 @@ _handle_esc_csi_cursor_pos_set(Termpty *ty, Eina_Unicode **b,
974} 974}
975 975
976static int 976static int
977_handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce) 977_handle_esc_csi(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
978{ 978{
979 int arg, i; 979 int arg, i;
980 const Eina_Unicode *cc, *be; 980 const Eina_Unicode *cc, *be;
@@ -1564,7 +1564,7 @@ _handle_xterm_777_command(Termpty *_ty EINA_UNUSED,
1564} 1564}
1565 1565
1566static int 1566static int
1567_handle_esc_xterm(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce) 1567_handle_esc_xterm(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
1568{ 1568{
1569 const Eina_Unicode *cc, *be; 1569 const Eina_Unicode *cc, *be;
1570 Eina_Unicode buf[4096], *p; 1570 Eina_Unicode buf[4096], *p;
@@ -1908,7 +1908,7 @@ end:
1908} 1908}
1909 1909
1910static int 1910static int
1911_handle_esc(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce) 1911_handle_esc(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
1912{ 1912{
1913 int len = ce - c; 1913 int len = ce - c;
1914 1914
@@ -2046,7 +2046,7 @@ _handle_esc(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
2046 2046
2047/* XXX: ce is excluded */ 2047/* XXX: ce is excluded */
2048int 2048int
2049termpty_handle_seq(Termpty *ty, Eina_Unicode *c, Eina_Unicode *ce) 2049termpty_handle_seq(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
2050{ 2050{
2051 Eina_Unicode *cc; 2051 Eina_Unicode *cc;
2052 int len = 0; 2052 int len = 0;
diff --git a/src/bin/termptyesc.h b/src/bin/termptyesc.h
index 9579673..85bef23 100644
--- a/src/bin/termptyesc.h
+++ b/src/bin/termptyesc.h
@@ -1,6 +1,6 @@
1#ifndef _TERMPTY_ESC_H__ 1#ifndef _TERMPTY_ESC_H__
2#define _TERMPTY_ESC_H__ 1 2#define _TERMPTY_ESC_H__ 1
3 3
4int termpty_handle_seq(Termpty *ty, Eina_Unicode *c, Eina_Unicode *ce); 4int termpty_handle_seq(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce);
5 5
6#endif 6#endif
diff --git a/src/bin/termptyext.c b/src/bin/termptyext.c
index 2af1414..e059f25 100644
--- a/src/bin/termptyext.c
+++ b/src/bin/termptyext.c
@@ -34,7 +34,7 @@
34static Eina_Bool 34static Eina_Bool
35_handle_op_a(Termpty *_ty EINA_UNUSED, 35_handle_op_a(Termpty *_ty EINA_UNUSED,
36 const char *txt, 36 const char *txt,
37 Eina_Unicode *_utxt EINA_UNUSED) 37 const Eina_Unicode *_utxt EINA_UNUSED)
38{ 38{
39 switch (txt[1]) 39 switch (txt[1])
40 { 40 {
@@ -48,7 +48,7 @@ _handle_op_a(Termpty *_ty EINA_UNUSED,
48} 48}
49 49
50Eina_Bool 50Eina_Bool
51_termpty_ext_handle(Termpty *ty, const char *txt, Eina_Unicode *utxt) 51_termpty_ext_handle(Termpty *ty, const char *txt, const Eina_Unicode *utxt)
52{ 52{
53 switch (txt[0]) // major opcode 53 switch (txt[0]) // major opcode
54 { 54 {
diff --git a/src/bin/termptyext.h b/src/bin/termptyext.h
index 8e1bdde..8cf8cf9 100644
--- a/src/bin/termptyext.h
+++ b/src/bin/termptyext.h
@@ -1,6 +1,6 @@
1#ifndef _TERMPTY_EXT_H__ 1#ifndef _TERMPTY_EXT_H__
2#define _TERMPTY_EXT_H__ 1 2#define _TERMPTY_EXT_H__ 1
3 3
4Eina_Bool _termpty_ext_handle(Termpty *ty, const char *txt, Eina_Unicode *utxt); 4Eina_Bool _termpty_ext_handle(Termpty *ty, const char *txt, const Eina_Unicode *utxt);
5 5
6#endif 6#endif
diff --git a/src/bin/termptygfx.c b/src/bin/termptygfx.c
index aababb8..79dee37 100644
--- a/src/bin/termptygfx.c
+++ b/src/bin/termptygfx.c
@@ -34,7 +34,7 @@ static const unsigned short vt100_to_unicode[62] =
34}; 34};
35 35
36Eina_Unicode 36Eina_Unicode
37_termpty_charset_trans(Eina_Unicode g, Termpty *ty) 37_termpty_charset_trans(const Termpty *ty, Eina_Unicode g)
38{ 38{
39 switch (ty->termstate.charsetch) 39 switch (ty->termstate.charsetch)
40 { 40 {
diff --git a/src/bin/termptygfx.h b/src/bin/termptygfx.h
index b1dc027..eaeaa7b 100644
--- a/src/bin/termptygfx.h
+++ b/src/bin/termptygfx.h
@@ -3,6 +3,6 @@
3 3
4#include "termpty.h" 4#include "termpty.h"
5 5
6Eina_Unicode _termpty_charset_trans(Eina_Unicode g, Termpty *ty); 6Eina_Unicode _termpty_charset_trans(const Termpty *ty, Eina_Unicode g);
7 7
8#endif 8#endif
diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c
index db069d7..774a885 100644
--- a/src/bin/termptyops.c
+++ b/src/bin/termptyops.c
@@ -191,7 +191,7 @@ termpty_text_append(Termpty *ty, const Eina_Unicode *codepoints, int len)
191 termpty_cell_copy(ty, &(cells[j - 1]), &(cells[j]), 1); 191 termpty_cell_copy(ty, &(cells[j - 1]), &(cells[j]), 1);
192 } 192 }
193 193
194 g = _termpty_charset_trans(codepoints[i], ty); 194 g = _termpty_charset_trans(ty, codepoints[i]);
195 /* Skip 0-width space */ 195 /* Skip 0-width space */
196 if (EINA_UNLIKELY(g == 0x200b)) 196 if (EINA_UNLIKELY(g == 0x200b))
197 { 197 {
diff --git a/src/bin/win.c b/src/bin/win.c
index ba5078e..ce048d2 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -186,7 +186,7 @@ static void _term_tabregion_free(Term *term);
186/* {{{ Solo */ 186/* {{{ Solo */
187 187
188static Evas_Object * 188static Evas_Object *
189_solo_get_evas_object(Term_Container *tc) 189_solo_get_evas_object(const Term_Container *tc)
190{ 190{
191 Solo *solo; 191 Solo *solo;
192 assert (tc->type == TERM_CONTAINER_TYPE_SOLO); 192 assert (tc->type == TERM_CONTAINER_TYPE_SOLO);
@@ -196,7 +196,7 @@ _solo_get_evas_object(Term_Container *tc)
196} 196}
197 197
198static Term * 198static Term *
199_solo_focused_term_get(Term_Container *container) 199_solo_focused_term_get(const Term_Container *container)
200{ 200{
201 Solo *solo; 201 Solo *solo;
202 assert (container->type == TERM_CONTAINER_TYPE_SOLO); 202 assert (container->type == TERM_CONTAINER_TYPE_SOLO);
@@ -206,7 +206,7 @@ _solo_focused_term_get(Term_Container *container)
206} 206}
207 207
208static Term * 208static Term *
209_solo_find_term_at_coords(Term_Container *tc, 209_solo_find_term_at_coords(const Term_Container *tc,
210 Evas_Coord _mx EINA_UNUSED, 210 Evas_Coord _mx EINA_UNUSED,
211 Evas_Coord _my EINA_UNUSED) 211 Evas_Coord _my EINA_UNUSED)
212{ 212{
@@ -283,21 +283,21 @@ _solo_split(Term_Container *tc,
283} 283}
284 284
285static Term * 285static Term *
286_solo_term_next(Term_Container *tc, 286_solo_term_next(const Term_Container *tc,
287 Term_Container *_child EINA_UNUSED) 287 const Term_Container *_child EINA_UNUSED)
288{ 288{
289 return tc->parent->term_next(tc->parent, tc); 289 return tc->parent->term_next(tc->parent, tc);
290} 290}
291 291
292static Term * 292static Term *
293_solo_term_prev(Term_Container *tc, 293_solo_term_prev(const Term_Container *tc,
294 Term_Container *_child EINA_UNUSED) 294 const Term_Container *_child EINA_UNUSED)
295{ 295{
296 return tc->parent->term_prev(tc->parent, tc); 296 return tc->parent->term_prev(tc->parent, tc);
297} 297}
298 298
299static Term * 299static Term *
300_solo_term_first(Term_Container *tc) 300_solo_term_first(const Term_Container *tc)
301{ 301{
302 Solo *solo; 302 Solo *solo;
303 assert (tc->type == TERM_CONTAINER_TYPE_SOLO); 303 assert (tc->type == TERM_CONTAINER_TYPE_SOLO);
@@ -306,7 +306,7 @@ _solo_term_first(Term_Container *tc)
306} 306}
307 307
308static Term * 308static Term *
309_solo_term_last(Term_Container *tc) 309_solo_term_last(const Term_Container *tc)
310{ 310{
311 Solo *solo; 311 Solo *solo;
312 assert (tc->type == TERM_CONTAINER_TYPE_SOLO); 312 assert (tc->type == TERM_CONTAINER_TYPE_SOLO);
@@ -581,23 +581,25 @@ bad:
581 581
582 582
583Evas_Object * 583Evas_Object *
584win_base_get(Win *wn) 584win_base_get(const Win *wn)
585{ 585{
586 return wn->base; 586 return wn->base;
587} 587}
588 588
589Config *win_config_get(Win *wn) 589Config *
590win_config_get(const Win *wn)
590{ 591{
591 return wn->config; 592 return wn->config;
592} 593}
593 594
594Eina_List * win_terms_get(Win *wn) 595Eina_List *
596win_terms_get(const Win *wn)
595{ 597{
596 return wn->terms; 598 return wn->terms;
597} 599}
598 600
599Evas_Object * 601Evas_Object *
600win_evas_object_get(Win *wn) 602win_evas_object_get(const Win *wn)
601{ 603{
602 return wn->win; 604 return wn->win;
603} 605}
@@ -759,7 +761,7 @@ win_add(const char *name, const char *role,
759} 761}
760 762
761static Evas_Object * 763static Evas_Object *
762_win_get_evas_object(Term_Container *tc) 764_win_get_evas_object(const Term_Container *tc)
763{ 765{
764 Win *wn; 766 Win *wn;
765 assert (tc->type == TERM_CONTAINER_TYPE_WIN); 767 assert (tc->type == TERM_CONTAINER_TYPE_WIN);
@@ -770,21 +772,21 @@ _win_get_evas_object(Term_Container *tc)
770} 772}
771 773
772static Term * 774static Term *
773_win_term_next(Term_Container *_tc EINA_UNUSED, 775_win_term_next(const Term_Container *_tc EINA_UNUSED,
774 Term_Container *child) 776 const Term_Container *child)
775{ 777{
776 return child->term_first(child); 778 return child->term_first(child);
777} 779}
778 780
779static Term * 781static Term *
780_win_term_prev(Term_Container *_tc EINA_UNUSED, 782_win_term_prev(const Term_Container *_tc EINA_UNUSED,
781 Term_Container *child) 783 const Term_Container *child)
782{ 784{
783 return child->term_last(child); 785 return child->term_last(child);
784} 786}
785 787
786static Term * 788static Term *
787_win_term_first(Term_Container *tc) 789_win_term_first(const Term_Container *tc)
788{ 790{
789 Win *wn; 791 Win *wn;
790 assert (tc->type == TERM_CONTAINER_TYPE_WIN); 792 assert (tc->type == TERM_CONTAINER_TYPE_WIN);
@@ -794,7 +796,7 @@ _win_term_first(Term_Container *tc)
794} 796}
795 797
796static Term * 798static Term *
797_win_term_last(Term_Container *tc) 799_win_term_last(const Term_Container *tc)
798{ 800{
799 Win *wn; 801 Win *wn;
800 assert (tc->type == TERM_CONTAINER_TYPE_WIN); 802 assert (tc->type == TERM_CONTAINER_TYPE_WIN);
@@ -804,7 +806,7 @@ _win_term_last(Term_Container *tc)
804} 806}
805 807
806static Term * 808static Term *
807_win_focused_term_get(Term_Container *tc) 809_win_focused_term_get(const Term_Container *tc)
808{ 810{
809 Win *wn; 811 Win *wn;
810 assert (tc->type == TERM_CONTAINER_TYPE_WIN); 812 assert (tc->type == TERM_CONTAINER_TYPE_WIN);
@@ -815,7 +817,7 @@ _win_focused_term_get(Term_Container *tc)
815} 817}
816 818
817static Term * 819static Term *
818_win_find_term_at_coords(Term_Container *tc, 820_win_find_term_at_coords(const Term_Container *tc,
819 Evas_Coord mx, Evas_Coord my) 821 Evas_Coord mx, Evas_Coord my)
820{ 822{
821 Win *wn; 823 Win *wn;
@@ -1144,7 +1146,7 @@ term_close(Evas_Object *win, Evas_Object *term, Eina_Bool hold_if_requested)
1144/* {{{ Splits */ 1146/* {{{ Splits */
1145 1147
1146static Term * 1148static Term *
1147_split_term_next(Term_Container *tc, Term_Container *child) 1149_split_term_next(const Term_Container *tc, const Term_Container *child)
1148{ 1150{
1149 Split *split; 1151 Split *split;
1150 1152
@@ -1158,7 +1160,7 @@ _split_term_next(Term_Container *tc, Term_Container *child)
1158} 1160}
1159 1161
1160static Term * 1162static Term *
1161_split_term_prev(Term_Container *tc, Term_Container *child) 1163_split_term_prev(const Term_Container *tc, const Term_Container *child)
1162{ 1164{
1163 Split *split; 1165 Split *split;
1164 1166
@@ -1172,7 +1174,7 @@ _split_term_prev(Term_Container *tc, Term_Container *child)
1172} 1174}
1173 1175
1174static Term * 1176static Term *
1175_split_term_first(Term_Container *tc) 1177_split_term_first(const Term_Container *tc)
1176{ 1178{
1177 Split *split; 1179 Split *split;
1178 1180
@@ -1183,7 +1185,7 @@ _split_term_first(Term_Container *tc)
1183} 1185}
1184 1186
1185static Term * 1187static Term *
1186_split_term_last(Term_Container *tc) 1188_split_term_last(const Term_Container *tc)
1187{ 1189{
1188 Split *split; 1190 Split *split;
1189 1191
@@ -1194,7 +1196,7 @@ _split_term_last(Term_Container *tc)
1194} 1196}
1195 1197
1196static Evas_Object * 1198static Evas_Object *
1197_split_get_evas_object(Term_Container *tc) 1199_split_get_evas_object(const Term_Container *tc)
1198{ 1200{
1199 Split *split; 1201 Split *split;
1200 1202
@@ -1314,7 +1316,7 @@ _split_swallow(Term_Container *tc, Term_Container *orig,
1314} 1316}
1315 1317
1316static Term * 1318static Term *
1317_split_focused_term_get(Term_Container *tc) 1319_split_focused_term_get(const Term_Container *tc)
1318{ 1320{
1319 Split *split; 1321 Split *split;
1320 1322
@@ -1327,7 +1329,7 @@ _split_focused_term_get(Term_Container *tc)
1327} 1329}
1328 1330
1329static Term * 1331static Term *
1330_split_find_term_at_coords(Term_Container *tc, 1332_split_find_term_at_coords(const Term_Container *tc,
1331 Evas_Coord mx, Evas_Coord my) 1333 Evas_Coord mx, Evas_Coord my)
1332{ 1334{
1333 Split *split; 1335 Split *split;
@@ -2099,7 +2101,7 @@ _cb_select(void *data,
2099 2101
2100 2102
2101static Evas_Object * 2103static Evas_Object *
2102_tabs_get_evas_object(Term_Container *container) 2104_tabs_get_evas_object(const Term_Container *container)
2103{ 2105{
2104 Tabs *tabs; 2106 Tabs *tabs;
2105 Term_Container *tc; 2107 Term_Container *tc;
@@ -2116,7 +2118,7 @@ _tabs_get_evas_object(Term_Container *container)
2116} 2118}
2117 2119
2118static Term * 2120static Term *
2119_tabs_focused_term_get(Term_Container *tc) 2121_tabs_focused_term_get(const Term_Container *tc)
2120{ 2122{
2121 Tabs *tabs; 2123 Tabs *tabs;
2122 2124
@@ -2130,7 +2132,7 @@ _tabs_focused_term_get(Term_Container *tc)
2130} 2132}
2131 2133
2132static Term * 2134static Term *
2133_tabs_find_term_at_coords(Term_Container *container, 2135_tabs_find_term_at_coords(const Term_Container *container,
2134 Evas_Coord mx, 2136 Evas_Coord mx,
2135 Evas_Coord my) 2137 Evas_Coord my)
2136{ 2138{
@@ -2159,7 +2161,7 @@ _tabs_size_eval(Term_Container *container, Sizeinfo *info)
2159} 2161}
2160 2162
2161static Eina_List * 2163static Eina_List *
2162_tab_item_find(Tabs *tabs, Term_Container *child) 2164_tab_item_find(const Tabs *tabs, const Term_Container *child)
2163{ 2165{
2164 Eina_List *l; 2166 Eina_List *l;
2165 Tab_Item *tab_item; 2167 Tab_Item *tab_item;
@@ -2283,7 +2285,7 @@ _tabs_update(Term_Container *tc)
2283} 2285}
2284 2286
2285static Term * 2287static Term *
2286_tabs_term_next(Term_Container *tc, Term_Container *child) 2288_tabs_term_next(const Term_Container *tc, const Term_Container *child)
2287{ 2289{
2288 Tabs *tabs; 2290 Tabs *tabs;
2289 Tab_Item *tab_item; 2291 Tab_Item *tab_item;
@@ -2306,7 +2308,7 @@ _tabs_term_next(Term_Container *tc, Term_Container *child)
2306} 2308}
2307 2309
2308static Term * 2310static Term *
2309_tabs_term_prev(Term_Container *tc, Term_Container *child) 2311_tabs_term_prev(const Term_Container *tc, const Term_Container *child)
2310{ 2312{
2311 Tabs *tabs; 2313 Tabs *tabs;
2312 Tab_Item *tab_item; 2314 Tab_Item *tab_item;
@@ -2329,7 +2331,7 @@ _tabs_term_prev(Term_Container *tc, Term_Container *child)
2329} 2331}
2330 2332
2331static Term * 2333static Term *
2332_tabs_term_first(Term_Container *tc) 2334_tabs_term_first(const Term_Container *tc)
2333{ 2335{
2334 Tabs *tabs; 2336 Tabs *tabs;
2335 Tab_Item *tab_item; 2337 Tab_Item *tab_item;
@@ -2344,7 +2346,7 @@ _tabs_term_first(Term_Container *tc)
2344} 2346}
2345 2347
2346static Term * 2348static Term *
2347_tabs_term_last(Term_Container *tc) 2349_tabs_term_last(const Term_Container *tc)
2348{ 2350{
2349 Tabs *tabs; 2351 Tabs *tabs;
2350 Tab_Item *tab_item; 2352 Tab_Item *tab_item;
@@ -2974,7 +2976,7 @@ term_unfocus(Term *term)
2974} 2976}
2975 2977
2976Term * 2978Term *
2977term_prev_get(Term *term) 2979term_prev_get(const Term *term)
2978{ 2980{
2979 Term_Container *tc = term->container; 2981 Term_Container *tc = term->container;
2980 2982
@@ -3002,7 +3004,7 @@ void term_prev(Term *term)
3002} 3004}
3003 3005
3004Term * 3006Term *
3005term_next_get(Term *term) 3007term_next_get(const Term *term)
3006{ 3008{
3007 Term_Container *tc = term->container; 3009 Term_Container *tc = term->container;
3008 3010
@@ -4177,20 +4179,20 @@ main_term_popup_exists(const Term *term)
4177} 4179}
4178 4180
4179Win * 4181Win *
4180term_win_get(Term *term) 4182term_win_get(const Term *term)
4181{ 4183{
4182 return term->wn; 4184 return term->wn;
4183} 4185}
4184 4186
4185 4187
4186Evas_Object * 4188Evas_Object *
4187term_termio_get(Term *term) 4189term_termio_get(const Term *term)
4188{ 4190{
4189 return term->termio; 4191 return term->termio;
4190} 4192}
4191 4193
4192Evas_Object * 4194Evas_Object *
4193term_miniview_get(Term *term) 4195term_miniview_get(const Term *term)
4194{ 4196{
4195 if (term) 4197 if (term)
4196 return term->miniview; 4198 return term->miniview;
diff --git a/src/bin/win.h b/src/bin/win.h
index 9c5a91e..27ca09e 100644
--- a/src/bin/win.h
+++ b/src/bin/win.h
@@ -11,8 +11,8 @@ typedef struct _Term Term;
11Eina_Bool main_term_popup_exists(const Term *term); 11Eina_Bool main_term_popup_exists(const Term *term);
12void term_unfocus(Term *term); 12void term_unfocus(Term *term);
13 13
14Evas_Object *term_termio_get(Term *term); 14Evas_Object *term_termio_get(const Term *term);
15Evas_Object *term_miniview_get(Term *term); 15Evas_Object *term_miniview_get(const Term *term);
16void term_miniview_toggle(Term *term); 16void term_miniview_toggle(Term *term);
17void term_set_title(Term *term); 17void term_set_title(Term *term);
18void term_miniview_hide(Term *term); 18void term_miniview_hide(Term *term);
@@ -38,21 +38,21 @@ int win_term_set(Win *wn, Term *term);
38Eina_List * 38Eina_List *
39terms_from_win_object(Evas_Object *win); 39terms_from_win_object(Evas_Object *win);
40 40
41Evas_Object *win_base_get(Win *wn); 41Evas_Object *win_base_get(const Win *wn);
42Evas_Object *win_evas_object_get(Win *win); 42Evas_Object *win_evas_object_get(const Win *win);
43Eina_List * win_terms_get(Win *wn); 43Eina_List * win_terms_get(const Win *wn);
44Config *win_config_get(Win *wn); 44Config *win_config_get(const Win *wn);
45void win_term_swallow(Win *wn, Term *term); 45void win_term_swallow(Win *wn, Term *term);
46void win_add_split(Win *wn, Term *term); 46void win_add_split(Win *wn, Term *term);
47void win_sizing_handle(Win *wn); 47void win_sizing_handle(Win *wn);
48 48
49void term_ref(Term *term); 49void term_ref(Term *term);
50void term_unref(Term *term); 50void term_unref(Term *term);
51Term *term_next_get(Term *term); 51Term *term_next_get(const Term *term);
52Term *term_prev_get(Term *term); 52Term *term_prev_get(const Term *term);
53void term_next(Term *term); 53void term_next(Term *term);
54void term_prev(Term *term); 54void term_prev(Term *term);
55Win * term_win_get(Term *term); 55Win * term_win_get(const Term *term);
56 56
57void 57void
58win_font_size_set(Win *wn, int new_size); 58win_font_size_set(Win *wn, int new_size);