chiark / gitweb /
nss-myhostname: following the usual naming scheme for .c/.h files
[elogind.git] / src / nss-myhostname / addresses.h
similarity index 89%
rename from src/nss-myhostname/ifconf.h
rename to src/nss-myhostname/addresses.h
index 92f03b261a7e87b051c44025f02b46539705a74b..1bfb3579dac16c8f5e1c02162594693b7f580f71 100644 (file)
@@ -29,9 +29,8 @@
 #include "socket-util.h"
 
 struct address {
-        unsigned char family;
+        unsigned char family, scope;
         union in_addr_union address;
-        unsigned char scope;
         int ifindex;
 };
 
@@ -41,4 +40,4 @@ static inline size_t PROTO_ADDRESS_SIZE(int proto) {
         return proto == AF_INET6 ? 16 : 4;
 }
 
-int ifconf_acquire_addresses(struct address **_list, unsigned *_n_list);
+int acquire_addresses(struct address **_list, unsigned *_n_list);