summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/network-internal.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-06-18 23:01:05 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-06-23 19:13:05 +0900
commitef0daa1129f6e9cbb229e1177048c29311c2152f (patch)
tree3cd0efd48fe2eef7b374220ec4da0babcba9cf4c /src/libsystemd-network/network-internal.h
parentcc479760b4736082d26ec332f2423a9ab23d59c5 (diff)
downloadsystemd-ef0daa1129f6e9cbb229e1177048c29311c2152f.tar.gz
libsystemd-network: move prototypes of dhcp_lese_save/load() to network-internal.h
Diffstat (limited to 'src/libsystemd-network/network-internal.h')
-rw-r--r--src/libsystemd-network/network-internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd-network/network-internal.h b/src/libsystemd-network/network-internal.h
index aa61bc2614..e4c11235b6 100644
--- a/src/libsystemd-network/network-internal.h
+++ b/src/libsystemd-network/network-internal.h
@@ -61,9 +61,13 @@ int deserialize_in6_addrs(struct in6_addr **addresses, const char *string);
/* don't include "dhcp-lease-internal.h" as it causes conflicts between netinet/ip.h and linux/ip.h */
struct sd_dhcp_route;
+struct sd_dhcp_lease;
void serialize_dhcp_routes(FILE *f, const char *key, sd_dhcp_route **routes, size_t size);
int deserialize_dhcp_routes(struct sd_dhcp_route **ret, size_t *ret_size, size_t *ret_allocated, const char *string);
/* It is not necessary to add deserialize_dhcp_option(). Use unhexmem() instead. */
int serialize_dhcp_option(FILE *f, const char *key, const void *data, size_t size);
+
+int dhcp_lease_save(sd_dhcp_lease *lease, const char *lease_file);
+int dhcp_lease_load(sd_dhcp_lease **ret, const char *lease_file);