xref: /netbsd-src/sbin/ifconfig/env.h (revision edae29ee93a87a396b81de6d71eb1f463ad44bc9)
1 /*	$NetBSD: env.h,v 1.4 2019/06/30 11:38:16 sevan Exp $	*/
2 
3 #ifndef _IFCONFIG_ENV_H
4 #define _IFCONFIG_ENV_H
5 
6 #include <prop/proplib.h>
7 
8 const char *getifname(prop_dictionary_t);
9 ssize_t getargstr(prop_dictionary_t, const char *, char *, size_t);
10 ssize_t getargdata(prop_dictionary_t, const char *, uint8_t *, size_t);
11 int getaf(prop_dictionary_t);
12 int getifflags(prop_dictionary_t, prop_dictionary_t, unsigned short *);
13 const char *getifinfo(prop_dictionary_t, prop_dictionary_t, unsigned short *);
14 prop_dictionary_t prop_dictionary_augment(prop_dictionary_t, prop_dictionary_t);
15 
16 /*
17  * XXX: this really doesn't belong in here, but env.h is conveniently
18  * included from all source modules *after* system headers, so it
19  * allows us to be lazy.  See Makefile for more details.
20  */
21 #ifdef RUMP_ACTION
22 #include <rump/rump.h>
23 #include <rump/rump_syscalls.h>
24 #include <rump/rumpclient.h>
25 #endif /* RUMP_ACTION */
26 
27 #endif /* _IFCONFIG_ENV_H */
28