diff options
Diffstat (limited to 'src/interface.c')
-rw-r--r-- | src/interface.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c index d4b65e7..8c39e06 100644 --- a/src/interface.c +++ b/src/interface.c @@ -190,6 +190,14 @@ interface_redraw(struct interface *ifc) wrefresh(ifc->menu_win); } +int +interface_get_main_ctl_length(struct interface *ifc) +{ + struct context *ctx = container_of(ifc, struct context, interface); + + return g_list_length(ctx->sink_list) + g_list_length(ctx->source_list); +} + static gboolean interface_get_input(GIOChannel *source, GIOCondition condition, gpointer data) { |