blob: e67742b1bf0c1b83535fe929e66451de4c14078e [file] [log] [blame]
KOVACS Krisztianb3e54fe2014-11-17 15:11:45 +01001#ifndef NAMESPACE_H
2
3#include <stdlib.h>
4#include <ebistree.h>
5
6struct netns_entry;
7int my_socketat(const struct netns_entry *ns, int domain, int type, int protocol);
8
9#ifdef CONFIG_HAP_NS
10
11struct netns_entry
12{
13 struct ebpt_node node;
14 size_t name_len;
15 int fd;
16};
17
18struct netns_entry* netns_store_insert(const char *ns_name);
19const struct netns_entry* netns_store_lookup(const char *ns_name, size_t ns_name_len);
20
21int netns_init(void);
22#endif /* CONFIG_HAP_NS */
23
24#endif /* NAMESPACE_H */