This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Hoernchen gerrit-no-reply at lists.osmocom.orgHoernchen has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/25413 ) Change subject: vty: allow flushing ...................................................................... vty: allow flushing Change-Id: If984b9ad2eba9f400bc29a7aa8825e241fd1d2a9 --- M include/osmocom/vty/vty.h M src/vty/vty.c 2 files changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/13/25413/1 diff --git a/include/osmocom/vty/vty.h b/include/osmocom/vty/vty.h index 3e6178f..c13f435 100644 --- a/include/osmocom/vty/vty.h +++ b/include/osmocom/vty/vty.h @@ -222,6 +222,7 @@ int vty_read(struct vty *vty); //void vty_time_print (struct vty *, int); void vty_close (struct vty *); +void vty_flush(struct vty *vty); char *vty_get_cwd (void); void vty_log (const char *level, const char *proto, const char *fmt, va_list); int vty_config_lock (struct vty *); diff --git a/src/vty/vty.c b/src/vty/vty.c index a39f268..1ad84f5 100644 --- a/src/vty/vty.c +++ b/src/vty/vty.c @@ -207,6 +207,12 @@ } } +void vty_flush(struct vty *vty) +{ + if (vty->obuf) + buffer_flush_all(vty->obuf, vty->fd); +} + /*! Close a given vty interface. */ void vty_close(struct vty *vty) { -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/25413 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: If984b9ad2eba9f400bc29a7aa8825e241fd1d2a9 Gerrit-Change-Number: 25413 Gerrit-PatchSet: 1 Gerrit-Owner: Hoernchen <ewild at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210909/fb790a70/attachment.htm>