]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
libsystemd-network: move prototypes of dhcp_lese_save/load() to network-internal.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 18 Jun 2020 14:01:05 +0000 (23:01 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 23 Jun 2020 10:13:05 +0000 (19:13 +0900)
src/libsystemd-network/dhcp-lease-internal.h
src/libsystemd-network/network-internal.h

index aed30d6118b0e034a865f69f2538f31f77acb1fd..66222eaddbbe1c0564029a6ac36194b5644df788 100644 (file)
@@ -82,6 +82,3 @@ int dhcp_lease_insert_private_option(sd_dhcp_lease *lease, uint8_t tag, const vo
 int dhcp_lease_set_default_subnet_mask(sd_dhcp_lease *lease);
 
 int dhcp_lease_set_client_id(sd_dhcp_lease *lease, const void *client_id, size_t client_id_len);
-
-int dhcp_lease_save(sd_dhcp_lease *lease, const char *lease_file);
-int dhcp_lease_load(sd_dhcp_lease **ret, const char *lease_file);
index aa61bc2614dbf3b4471b5353c3b28d0bffbf5830..e4c11235b62f2f4f85ae189cb20f52f988fc80bb 100644 (file)
@@ -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);