chiark / gitweb /
sd-network: add new library
[elogind.git] / src / libsystemd-network / dhcp-lease-internal.h
similarity index 92%
rename from src/libsystemd-dhcp/dhcp-lease.h
rename to src/libsystemd-network/dhcp-lease-internal.h
index 87323dcb3767c4056cfe82235c474b1c73cd75d3..d12bcac2477502155c822c8ac70bb475620eac4b 100644 (file)
@@ -25,7 +25,6 @@
 #include <stdint.h>
 #include <linux/if_packet.h>
 
-#include "socket-util.h"
 #include "refcnt.h"
 
 #include "dhcp-protocol.h"
@@ -53,5 +52,8 @@ int dhcp_lease_new(sd_dhcp_lease **ret);
 int dhcp_lease_parse_options(uint8_t code, uint8_t len, const uint8_t *option,
                               void *user_data);
 
+int dhcp_lease_save(sd_dhcp_lease *lease, const char *lease_file);
+int dhcp_lease_load(const char *lease_file, sd_dhcp_lease **ret);
+
 DEFINE_TRIVIAL_CLEANUP_FUNC(sd_dhcp_lease*, sd_dhcp_lease_unref);
 #define _cleanup_dhcp_lease_unref_ _cleanup_(sd_dhcp_lease_unrefp)