diff options
Diffstat (limited to 'lib/ns.c')
| -rw-r--r-- | lib/ns.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -218,6 +218,13 @@ void ns_walk_func(int (*func)(struct ns *)) func(ns); } +const char *ns_get_name(struct ns *ns) +{ + if (!ns) + return NULL; + return ns->name; +} + /* Look up a NS by name */ static struct ns *ns_lookup_name(const char *name) { |
