billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=01421754ec91eebd268317ed70cf12864df83150

commit 01421754ec91eebd268317ed70cf12864df83150
Author: Boris Faure <bill...@gmail.com>
Date:   Tue Nov 3 00:07:22 2015 +0100

    make termpty_handle_buf() public to ease fuzzing
---
 src/bin/termpty.c | 6 +++---
 src/bin/termpty.h | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 83dfc58..ae0046e 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -54,8 +54,8 @@ termpty_shutdown(void)
    _termpty_log_dom = -1;
 }
 
-static void
-_handle_buf(Termpty *ty, const Eina_Unicode *codepoints, int len)
+void
+termpty_handle_buf(Termpty *ty, const Eina_Unicode *codepoints, int len)
 {
    Eina_Unicode *c, *ce, *b;
    int n, bytes;
@@ -273,7 +273,7 @@ _cb_fd_read(void *data, Ecore_Fd_Handler *fd_handler)
           }
         codepoint[j] = 0;
 //        DBG("---------------- handle buf %i", j);
-        _handle_buf(ty, codepoint, j);
+        termpty_handle_buf(ty, codepoint, j);
      }
    if (ty->cb.change.func) ty->cb.change.func(ty->cb.change.data);
    if (len <= 0)
diff --git a/src/bin/termpty.h b/src/bin/termpty.h
index dc691cf..18a42d5 100644
--- a/src/bin/termpty.h
+++ b/src/bin/termpty.h
@@ -251,6 +251,7 @@ void       termpty_screen_swap(Termpty *ty);
 ssize_t termpty_line_length(const Termcell *cells, ssize_t nb_cells);
 
 Config *termpty_config_get(const Termpty *ty);
+void termpty_handle_buf(Termpty *ty, const Eina_Unicode *codepoints, int len);
 
 extern int _termpty_log_dom;
 

-- 


Reply via email to