Change in libosmocore[master]: libosmovty: deprecate vty_init(), add vty_init[_app]_ctx()

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/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Fri May 10 18:52:49 UTC 2019


Vadim Yanitskiy has uploaded a new patch set (#2). ( https://gerrit.osmocom.org/13973 )

Change subject: libosmovty: deprecate vty_init(), add vty_init[_app]_ctx()
......................................................................

libosmovty: deprecate vty_init(), add vty_init[_app]_ctx()

The main problem of vty_init() is that it's using NULL talloc
context. We could modify it and start using the context from
a given 'vty_app_info' structure, but this might cause the
compatibility problems with the existing API users.

Instead, let's deprecate vty_init() and introduce two new wrappers:

  - vty_init_ctx() - use a given talloc context,
  - vty_init_app_ctx() - use the application's talloc context.

Change-Id: I65d71f8fc943e103b53b784f690ed56a6e373e3f
---
M include/osmocom/vty/vty.h
M src/vty/vty.c
M tests/logging/logging_vty_test.c
M tests/tdef/tdef_vty_test_config_root.c
M tests/tdef/tdef_vty_test_config_subnode.c
M tests/tdef/tdef_vty_test_dynamic.c
M tests/vty/vty_test.c
M tests/vty/vty_transcript_test.c
8 files changed, 45 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/73/13973/2
-- 
To view, visit https://gerrit.osmocom.org/13973
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I65d71f8fc943e103b53b784f690ed56a6e373e3f
Gerrit-Change-Number: 13973
Gerrit-PatchSet: 2
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-CC: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190510/6218c485/attachment.htm>


More information about the gerrit-log mailing list