summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-08-01 18:37:35 +0200
committerBoris Faure <billiob@gmail.com>2015-08-03 20:44:55 +0200
commit8fbffdd86940597ef47abc028b752db24a765926 (patch)
tree4f58bffd6936fc9446b419c7f155af72574d925d /src
parent35c8fd79c014c4f51a23585f6f445f16bf165798 (diff)
renames to make the code more consistant
Diffstat (limited to 'src')
-rw-r--r--src/bin/miniview.c4
-rw-r--r--src/bin/termio.c26
-rw-r--r--src/bin/termpty.c46
-rw-r--r--src/bin/termpty.h11
-rw-r--r--src/bin/termptyops.c8
-rw-r--r--src/bin/termptysave.c26
-rw-r--r--src/bin/termptysave.h4
7 files changed, 63 insertions, 62 deletions
diff --git a/src/bin/miniview.c b/src/bin/miniview.c
index 477a7e9..f1dac82 100644
--- a/src/bin/miniview.c
+++ b/src/bin/miniview.c
@@ -145,7 +145,7 @@ _is_top_bottom_reached(Miniview *mv)
145 EINA_SAFETY_ON_NULL_RETURN_VAL(mv, EINA_FALSE); 145 EINA_SAFETY_ON_NULL_RETURN_VAL(mv, EINA_FALSE);
146 146
147 ty = termio_pty_get(mv->termio); 147 ty = termio_pty_get(mv->termio);
148 history_len = termpty_backscroll_length(ty); 148 history_len = termpty_backlog_length(ty);
149 149
150 if (( (- mv->img_hist) > (int)(mv->img_h - mv->rows - (mv->rows / 2))) && 150 if (( (- mv->img_hist) > (int)(mv->img_h - mv->rows - (mv->rows / 2))) &&
151 ( (- mv->img_hist) < (int)(history_len + (mv->rows / 2)))) 151 ( (- mv->img_hist) < (int)(history_len + (mv->rows / 2))))
@@ -523,7 +523,7 @@ _deferred_renderer(void *data)
523 evas_object_geometry_get(mv->termio, &ox, &oy, &ow, &oh); 523 evas_object_geometry_get(mv->termio, &ox, &oy, &ow, &oh);
524 if ((ow == 0) || (oh == 0)) return EINA_TRUE; 524 if ((ow == 0) || (oh == 0)) return EINA_TRUE;
525 525
526 history_len = termpty_backscroll_length(ty); 526 history_len = termpty_backlog_length(ty);
527 527
528 evas_object_image_size_set(mv->img, mv->cols, mv->img_h); 528 evas_object_image_size_set(mv->img, mv->cols, mv->img_h);
529 ow = mv->cols; 529 ow = mv->cols;
diff --git a/src/bin/termio.c b/src/bin/termio.c
index c85fcca..39cec99 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -588,7 +588,7 @@ termio_config_update(Evas_Object *obj)
588 sd->jump_on_change = sd->config->jump_on_change; 588 sd->jump_on_change = sd->config->jump_on_change;
589 sd->jump_on_keypress = sd->config->jump_on_keypress; 589 sd->jump_on_keypress = sd->config->jump_on_keypress;
590 590
591 termpty_backscroll_set(sd->pty, sd->config->scrollback); 591 termpty_backlog_size_set(sd->pty, sd->config->scrollback);
592 sd->scroll = 0; 592 sd->scroll = 0;
593 593
594 if (evas_object_focus_get(obj)) 594 if (evas_object_focus_get(obj))
@@ -2040,7 +2040,7 @@ termio_selection_get(Evas_Object *obj, int c1x, int c1y, int c2x, int c2y,
2040 int x, y; 2040 int x, y;
2041 2041
2042 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL); 2042 EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL);
2043 termpty_cellcomp_freeze(sd->pty); 2043 termpty_backlog_lock();
2044 for (y = c1y; y <= c2y; y++) 2044 for (y = c1y; y <= c2y; y++)
2045 { 2045 {
2046 Termcell *cells; 2046 Termcell *cells;
@@ -2191,7 +2191,7 @@ termio_selection_get(Evas_Object *obj, int c1x, int c1y, int c2x, int c2y,
2191 } 2191 }
2192 } 2192 }
2193 } 2193 }
2194 termpty_cellcomp_thaw(sd->pty); 2194 termpty_backlog_unlock();
2195 2195
2196 if (rtrim) 2196 if (rtrim)
2197 _sb_spaces_rtrim(&sb); 2197 _sb_spaces_rtrim(&sb);
@@ -2437,7 +2437,7 @@ _sel_line(Termio *sd, int cy)
2437 int y, w = 0; 2437 int y, w = 0;
2438 Termcell *cells; 2438 Termcell *cells;
2439 2439
2440 termpty_cellcomp_freeze(sd->pty); 2440 termpty_backlog_lock();
2441 2441
2442 _sel_set(sd, EINA_TRUE); 2442 _sel_set(sd, EINA_TRUE);
2443 sd->pty->selection.makesel = EINA_FALSE; 2443 sd->pty->selection.makesel = EINA_FALSE;
@@ -2471,7 +2471,7 @@ _sel_line(Termio *sd, int cy)
2471 sd->pty->selection.by_line = EINA_TRUE; 2471 sd->pty->selection.by_line = EINA_TRUE;
2472 sd->pty->selection.is_top_to_bottom = EINA_TRUE; 2472 sd->pty->selection.is_top_to_bottom = EINA_TRUE;
2473 2473
2474 termpty_cellcomp_thaw(sd->pty); 2474 termpty_backlog_unlock();
2475} 2475}
2476 2476
2477static void 2477static void
@@ -2782,7 +2782,7 @@ _sel_word(Termio *sd, int cx, int cy)
2782 int x, y, w = 0; 2782 int x, y, w = 0;
2783 Eina_Bool done = EINA_FALSE; 2783 Eina_Bool done = EINA_FALSE;
2784 2784
2785 termpty_cellcomp_freeze(sd->pty); 2785 termpty_backlog_lock();
2786 2786
2787 _sel_set(sd, EINA_TRUE); 2787 _sel_set(sd, EINA_TRUE);
2788 sd->pty->selection.makesel = EINA_TRUE; 2788 sd->pty->selection.makesel = EINA_TRUE;
@@ -2891,7 +2891,7 @@ _sel_word(Termio *sd, int cx, int cy)
2891 sd->pty->selection.by_word = EINA_TRUE; 2891 sd->pty->selection.by_word = EINA_TRUE;
2892 sd->pty->selection.is_top_to_bottom = EINA_TRUE; 2892 sd->pty->selection.is_top_to_bottom = EINA_TRUE;
2893 2893
2894 termpty_cellcomp_thaw(sd->pty); 2894 termpty_backlog_unlock();
2895} 2895}
2896 2896
2897static void 2897static void
@@ -3206,7 +3206,7 @@ _selection_dbl_fix(Termio *sd
3206 INT_SWAP(start_x, end_x); 3206 INT_SWAP(start_x, end_x);
3207 } 3207 }
3208 3208
3209 termpty_cellcomp_freeze(sd->pty); 3209 termpty_backlog_lock();
3210 cells = termpty_cellrow_get(sd->pty, end_y - sd->scroll, &w); 3210 cells = termpty_cellrow_get(sd->pty, end_y - sd->scroll, &w);
3211 if (cells) 3211 if (cells)
3212 { 3212 {
@@ -3259,7 +3259,7 @@ _selection_dbl_fix(Termio *sd
3259 } 3259 }
3260 } 3260 }
3261 } 3261 }
3262 termpty_cellcomp_thaw(sd->pty); 3262 termpty_backlog_unlock();
3263 3263
3264 if (!sd->pty->selection.is_top_to_bottom) 3264 if (!sd->pty->selection.is_top_to_bottom)
3265 { 3265 {
@@ -3286,7 +3286,7 @@ _selection_newline_extend_fix(Evas_Object *obj)
3286 if ((sd->top_left) || (sd->bottom_right) || (sd->pty->selection.is_box)) 3286 if ((sd->top_left) || (sd->bottom_right) || (sd->pty->selection.is_box))
3287 return; 3287 return;
3288 3288
3289 termpty_cellcomp_freeze(sd->pty); 3289 termpty_backlog_lock();
3290 3290
3291 start_x = sd->pty->selection.start.x; 3291 start_x = sd->pty->selection.start.x;
3292 start_y = sd->pty->selection.start.y; 3292 start_y = sd->pty->selection.start.y;
@@ -3331,7 +3331,7 @@ _selection_newline_extend_fix(Evas_Object *obj)
3331 sd->pty->selection.end.x = end_x; 3331 sd->pty->selection.end.x = end_x;
3332 sd->pty->selection.end.y = end_y; 3332 sd->pty->selection.end.y = end_y;
3333 3333
3334 termpty_cellcomp_thaw(sd->pty); 3334 termpty_backlog_unlock();
3335} 3335}
3336 3336
3337/* }}} */ 3337/* }}} */
@@ -4507,7 +4507,7 @@ _smart_apply(Evas_Object *obj)
4507 blk->active = EINA_FALSE; 4507 blk->active = EINA_FALSE;
4508 } 4508 }
4509 inv = sd->pty->termstate.reverse; 4509 inv = sd->pty->termstate.reverse;
4510 termpty_cellcomp_freeze(sd->pty); 4510 termpty_backlog_lock();
4511 termpty_backscroll_adjust(sd->pty, &sd->scroll); 4511 termpty_backscroll_adjust(sd->pty, &sd->scroll);
4512 for (y = 0; y < sd->grid.h; y++) 4512 for (y = 0; y < sd->grid.h; y++)
4513 { 4513 {
@@ -4736,7 +4736,7 @@ _smart_apply(Evas_Object *obj)
4736 preedit_x = x - sd->cursor.x; 4736 preedit_x = x - sd->cursor.x;
4737 preedit_y = y - sd->cursor.y; 4737 preedit_y = y - sd->cursor.y;
4738 } 4738 }
4739 termpty_cellcomp_thaw(sd->pty); 4739 termpty_backlog_unlock();
4740 4740
4741 EINA_LIST_FOREACH_SAFE(sd->pty->block.active, l, ln, blk) 4741 EINA_LIST_FOREACH_SAFE(sd->pty->block.active, l, ln, blk)
4742 { 4742 {
diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index b72510d..dc6db85 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -566,7 +566,7 @@ termpty_free(Termpty *ty)
566 if (ty->prop.icon) eina_stringshare_del(ty->prop.icon); 566 if (ty->prop.icon) eina_stringshare_del(ty->prop.icon);
567 if (ty->back) 567 if (ty->back)
568 { 568 {
569 int i; 569 size_t i;
570 570
571 for (i = 0; i < ty->backsize; i++) 571 for (i = 0; i < ty->backsize; i++)
572 termpty_save_free(&ty->back[i]); 572 termpty_save_free(&ty->back[i]);
@@ -578,18 +578,6 @@ termpty_free(Termpty *ty)
578 free(ty); 578 free(ty);
579} 579}
580 580
581void
582termpty_cellcomp_freeze(Termpty *ty EINA_UNUSED)
583{
584 termpty_save_freeze();
585}
586
587void
588termpty_cellcomp_thaw(Termpty *ty EINA_UNUSED)
589{
590 termpty_save_thaw();
591}
592
593static Eina_Bool 581static Eina_Bool
594termpty_line_is_empty(const Termcell *cells, ssize_t nb_cells) 582termpty_line_is_empty(const Termcell *cells, ssize_t nb_cells)
595{ 583{
@@ -680,7 +668,7 @@ termpty_text_save_top(Termpty *ty, Termcell *cells, ssize_t w_max)
680 return; 668 return;
681 assert(ty->back); 669 assert(ty->back);
682 670
683 termpty_save_freeze(); 671 termpty_backlog_lock();
684 672
685 w = termpty_line_length(cells, w_max); 673 w = termpty_line_length(cells, w_max);
686 if (ty->backsize >= 1) 674 if (ty->backsize >= 1)
@@ -708,11 +696,11 @@ add_new_ts:
708 ty->backpos++; 696 ty->backpos++;
709 if (ty->backpos >= ty->backsize) 697 if (ty->backpos >= ty->backsize)
710 ty->backpos = 0; 698 ty->backpos = 0;
711 termpty_save_thaw(); 699 termpty_backlog_unlock();
712 700
713 ty->backlog_beacon.screen_y++; 701 ty->backlog_beacon.screen_y++;
714 ty->backlog_beacon.backlog_y++; 702 ty->backlog_beacon.backlog_y++;
715 if (ty->backlog_beacon.backlog_y >= ty->backsize) 703 if (ty->backlog_beacon.backlog_y >= (int)ty->backsize)
716 { 704 {
717 ty->backlog_beacon.screen_y = 0; 705 ty->backlog_beacon.screen_y = 0;
718 ty->backlog_beacon.backlog_y = 0; 706 ty->backlog_beacon.backlog_y = 0;
@@ -736,9 +724,9 @@ termpty_row_length(Termpty *ty, int y)
736 cells = &(TERMPTY_SCREEN(ty, 0, y)); 724 cells = &(TERMPTY_SCREEN(ty, 0, y));
737 return termpty_line_length(cells, ty->w); 725 return termpty_line_length(cells, ty->w);
738 } 726 }
739 if ((y < -ty->backsize) || !ty->back) 727 if ((y < -(int)ty->backsize) || !ty->back)
740 { 728 {
741 ERR("invalid row given: %d; ty->back:%p ty->backsize:%d", 729 ERR("invalid row given: %d; ty->back:%p ty->backsize:%zd",
742 y, ty->back, ty->backsize); 730 y, ty->back, ty->backsize);
743 return 0; 731 return 0;
744 } 732 }
@@ -748,7 +736,7 @@ termpty_row_length(Termpty *ty, int y)
748} 736}
749 737
750ssize_t 738ssize_t
751termpty_backscroll_length(Termpty *ty) 739termpty_backlog_length(Termpty *ty)
752{ 740{
753 int backlog_y = ty->backlog_beacon.backlog_y; 741 int backlog_y = ty->backlog_beacon.backlog_y;
754 int screen_y = ty->backlog_beacon.screen_y; 742 int screen_y = ty->backlog_beacon.screen_y;
@@ -762,7 +750,7 @@ termpty_backscroll_length(Termpty *ty)
762 Termsave *ts; 750 Termsave *ts;
763 751
764 ts = BACKLOG_ROW_GET(ty, backlog_y); 752 ts = BACKLOG_ROW_GET(ty, backlog_y);
765 if (!ts->cells || backlog_y >= ty->backsize) 753 if (!ts->cells || backlog_y >= (int)ty->backsize)
766 return ty->backlog_beacon.screen_y; 754 return ty->backlog_beacon.screen_y;
767 755
768 nb_lines = (ts->w == 0) ? 1 : (ts->w + ty->w - 1) / ty->w; 756 nb_lines = (ts->w == 0) ? 1 : (ts->w + ty->w - 1) / ty->w;
@@ -793,7 +781,7 @@ termpty_backscroll_adjust(Termpty *ty, int *scroll)
793 Termsave *ts; 781 Termsave *ts;
794 782
795 ts = BACKLOG_ROW_GET(ty, backlog_y); 783 ts = BACKLOG_ROW_GET(ty, backlog_y);
796 if (!ts->cells || backlog_y >= ty->backsize) 784 if (!ts->cells || backlog_y >= (int)ty->backsize)
797 { 785 {
798 *scroll = ty->backlog_beacon.screen_y; 786 *scroll = ty->backlog_beacon.screen_y;
799 return; 787 return;
@@ -988,7 +976,7 @@ termpty_resize(Termpty *ty, int new_w, int new_h)
988 if ((new_w == new_h) && (new_w == 1)) return; // FIXME: something weird is 976 if ((new_w == new_h) && (new_w == 1)) return; // FIXME: something weird is
989 // going on at term init 977 // going on at term init
990 978
991 termpty_save_freeze(); 979 termpty_backlog_unlock();
992 980
993 if (ty->altbuf) 981 if (ty->altbuf)
994 { 982 {
@@ -1050,7 +1038,7 @@ termpty_resize(Termpty *ty, int new_w, int new_h)
1050 1038
1051 _pty_size(ty); 1039 _pty_size(ty);
1052 1040
1053 termpty_save_thaw(); 1041 termpty_backlog_unlock();
1054 1042
1055 ty->backlog_beacon.backlog_y = 0; 1043 ty->backlog_beacon.backlog_y = 0;
1056 ty->backlog_beacon.screen_y = 0; 1044 ty->backlog_beacon.screen_y = 0;
@@ -1058,23 +1046,23 @@ termpty_resize(Termpty *ty, int new_w, int new_h)
1058 return; 1046 return;
1059 1047
1060bad: 1048bad:
1061 termpty_save_thaw(); 1049 termpty_backlog_unlock();
1062 free(new_screen); 1050 free(new_screen);
1063} 1051}
1064 1052
1065void 1053void
1066termpty_backscroll_set(Termpty *ty, int size) 1054termpty_backlog_size_set(Termpty *ty, size_t size)
1067{ 1055{
1068 int i;
1069
1070 if (ty->backsize == size) 1056 if (ty->backsize == size)
1071 return; 1057 return;
1072 1058
1073 /* TODO: RESIZE: handle that case better: changing backscroll size */ 1059 /* TODO: RESIZE: handle that case better: changing backscroll size */
1074 termpty_save_freeze(); 1060 termpty_backlog_lock();
1075 1061
1076 if (ty->back) 1062 if (ty->back)
1077 { 1063 {
1064 size_t i;
1065
1078 for (i = 0; i < ty->backsize; i++) 1066 for (i = 0; i < ty->backsize; i++)
1079 termpty_save_free(&ty->back[i]); 1067 termpty_save_free(&ty->back[i]);
1080 free(ty->back); 1068 free(ty->back);
@@ -1085,7 +1073,7 @@ termpty_backscroll_set(Termpty *ty, int size)
1085 ty->back = NULL; 1073 ty->back = NULL;
1086 ty->backpos = 0; 1074 ty->backpos = 0;
1087 ty->backsize = size; 1075 ty->backsize = size;
1088 termpty_save_thaw(); 1076 termpty_backlog_unlock();
1089} 1077}
1090 1078
1091pid_t 1079pid_t
diff --git a/src/bin/termpty.h b/src/bin/termpty.h
index b9b339a..4abecad 100644
--- a/src/bin/termpty.h
+++ b/src/bin/termpty.h
@@ -105,7 +105,7 @@ struct _Termpty
105 size_t buflen; 105 size_t buflen;
106 unsigned char oldbuf[4]; 106 unsigned char oldbuf[4];
107 Termsave *back; 107 Termsave *back;
108 int backsize, backpos; 108 size_t backsize, backpos;
109 struct { 109 struct {
110 int screen_y; 110 int screen_y;
111 int backlog_y; 111 int backlog_y;
@@ -232,16 +232,17 @@ Termpty *termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd,
232 int w, int h, int backscroll, Eina_Bool xterm_256color, 232 int w, int h, int backscroll, Eina_Bool xterm_256color,
233 Eina_Bool erase_is_del, const char *emotion_mod); 233 Eina_Bool erase_is_del, const char *emotion_mod);
234void termpty_free(Termpty *ty); 234void termpty_free(Termpty *ty);
235void termpty_cellcomp_freeze(Termpty *ty); 235
236void termpty_cellcomp_thaw(Termpty *ty); 236void termpty_backlog_lock(void);
237void termpty_backlog_unlock(void);
237 238
238Termcell *termpty_cellrow_get(Termpty *ty, int y, int *wret); 239Termcell *termpty_cellrow_get(Termpty *ty, int y, int *wret);
239ssize_t termpty_row_length(Termpty *ty, int y); 240ssize_t termpty_row_length(Termpty *ty, int y);
240void termpty_write(Termpty *ty, const char *input, int len); 241void termpty_write(Termpty *ty, const char *input, int len);
241void termpty_resize(Termpty *ty, int new_w, int new_h); 242void termpty_resize(Termpty *ty, int new_w, int new_h);
242void termpty_backscroll_set(Termpty *ty, int size); 243void termpty_backlog_size_set(Termpty *ty, size_t size);
244ssize_t termpty_backlog_length(Termpty *ty);
243void termpty_backscroll_adjust(Termpty *ty, int *scroll); 245void termpty_backscroll_adjust(Termpty *ty, int *scroll);
244ssize_t termpty_backscroll_length(Termpty *ty);
245 246
246pid_t termpty_pid_get(const Termpty *ty); 247pid_t termpty_pid_get(const Termpty *ty);
247void termpty_block_free(Termblock *tb); 248void termpty_block_free(Termblock *tb);
diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c
index 95b8922..0d6d549 100644
--- a/src/bin/termptyops.c
+++ b/src/bin/termptyops.c
@@ -384,10 +384,10 @@ termpty_reset_state(Termpty *ty)
384 ty->backlog_beacon.screen_y = 0; 384 ty->backlog_beacon.screen_y = 0;
385 ty->backlog_beacon.backlog_y = 0; 385 ty->backlog_beacon.backlog_y = 0;
386 386
387 termpty_save_freeze(); 387 termpty_backlog_lock();
388 if (ty->back) 388 if (ty->back)
389 { 389 {
390 int i; 390 size_t i;
391 for (i = 0; i < ty->backsize; i++) 391 for (i = 0; i < ty->backsize; i++)
392 termpty_save_free(&ty->back[i]); 392 termpty_save_free(&ty->back[i]);
393 free(ty->back); 393 free(ty->back);
@@ -396,8 +396,8 @@ termpty_reset_state(Termpty *ty)
396 ty->backpos = 0; 396 ty->backpos = 0;
397 backsize = ty->backsize; 397 backsize = ty->backsize;
398 ty->backsize = 0; 398 ty->backsize = 0;
399 termpty_backscroll_set(ty, backsize); 399 termpty_backlog_size_set(ty, backsize);
400 termpty_save_thaw(); 400 termpty_backlog_unlock();
401} 401}
402 402
403void 403void
diff --git a/src/bin/termptysave.c b/src/bin/termptysave.c
index 3c5f1b7..0c5ae01 100644
--- a/src/bin/termptysave.c
+++ b/src/bin/termptysave.c
@@ -278,7 +278,7 @@ done:
278static void 278static void
279_walk_pty(Termpty *ty) 279_walk_pty(Termpty *ty)
280{ 280{
281 int i; 281 size_t i;
282// int c0 = 0, c1 = 0; 282// int c0 = 0, c1 = 0;
283 283
284 if (!ty->back) return; 284 if (!ty->back) return;
@@ -355,6 +355,7 @@ _check_compressor(Eina_Bool frozen)
355 } 355 }
356} 356}
357 357
358#if 0
358void 359void
359termpty_save_freeze(void) 360termpty_save_freeze(void)
360{ 361{
@@ -382,21 +383,24 @@ termpty_save_thaw(void)
382 _check_compressor(EINA_TRUE); 383 _check_compressor(EINA_TRUE);
383 } 384 }
384} 385}
386#endif
387
388
385 389
386void 390void
387termpty_save_register(Termpty *ty) 391termpty_save_register(Termpty *ty)
388{ 392{
389 termpty_save_freeze(); 393 termpty_backlog_lock();
390 ptys = eina_list_append(ptys, ty); 394 ptys = eina_list_append(ptys, ty);
391 termpty_save_thaw(); 395 termpty_backlog_unlock();
392} 396}
393 397
394void 398void
395termpty_save_unregister(Termpty *ty) 399termpty_save_unregister(Termpty *ty)
396{ 400{
397 termpty_save_freeze(); 401 termpty_backlog_lock();
398 ptys = eina_list_remove(ptys, ty); 402 ptys = eina_list_remove(ptys, ty);
399 termpty_save_thaw(); 403 termpty_backlog_unlock();
400} 404}
401 405
402Termsave * 406Termsave *
@@ -452,7 +456,7 @@ termpty_save_new(Termsave *ts, int w)
452} 456}
453 457
454Termsave * 458Termsave *
455termpty_save_expand(Termsave *ts, Termcell *cells, ssize_t delta) 459termpty_save_expand(Termsave *ts, Termcell *cells, size_t delta)
456{ 460{
457 Termcell *newcells; 461 Termcell *newcells;
458 462
@@ -481,3 +485,13 @@ termpty_save_free(Termsave *ts)
481 ts->w = 0; 485 ts->w = 0;
482 _check_compressor(EINA_FALSE); 486 _check_compressor(EINA_FALSE);
483} 487}
488
489void
490termpty_backlog_lock(void)
491{
492}
493
494void
495termpty_backlog_unlock(void)
496{
497}
diff --git a/src/bin/termptysave.h b/src/bin/termptysave.h
index 4520fcc..b285bca 100644
--- a/src/bin/termptysave.h
+++ b/src/bin/termptysave.h
@@ -1,13 +1,11 @@
1#ifndef _TERMPTY_SAVE_H__ 1#ifndef _TERMPTY_SAVE_H__
2#define _TERMPTY_SAVE_H__ 1 2#define _TERMPTY_SAVE_H__ 1
3 3
4void termpty_save_freeze(void);
5void termpty_save_thaw(void);
6void termpty_save_register(Termpty *ty); 4void termpty_save_register(Termpty *ty);
7void termpty_save_unregister(Termpty *ty); 5void termpty_save_unregister(Termpty *ty);
8Termsave *termpty_save_extract(Termsave *ts); 6Termsave *termpty_save_extract(Termsave *ts);
9Termsave *termpty_save_new(Termsave *ts, int w); 7Termsave *termpty_save_new(Termsave *ts, int w);
10void termpty_save_free(Termsave *ts); 8void termpty_save_free(Termsave *ts);
11Termsave *termpty_save_expand(Termsave *ts, Termcell *cells, ssize_t delta); 9Termsave *termpty_save_expand(Termsave *ts, Termcell *cells, size_t delta);
12 10
13#endif 11#endif