X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemd%2Fsd-dhcp-client.h;h=0f16e996179f53e12a9efb74f66fff9204c52837;hb=b25ef18b334d85d54f50478446bf81fe214cb2fc;hp=62af4fa1c1c60af6721a0d27a3f257e995a3da0c;hpb=c8d32e1f3f674559fdad3e3edfa86a8054d2e8af;p=elogind.git diff --git a/src/systemd/sd-dhcp-client.h b/src/systemd/sd-dhcp-client.h index 62af4fa1c..0f16e9961 100644 --- a/src/systemd/sd-dhcp-client.h +++ b/src/systemd/sd-dhcp-client.h @@ -54,11 +54,18 @@ int sd_dhcp_client_get_address(sd_dhcp_client *client, struct in_addr *addr); int sd_dhcp_client_get_netmask(sd_dhcp_client *client, struct in_addr *addr); int sd_dhcp_client_prefixlen(const struct in_addr *addr); int sd_dhcp_client_get_router(sd_dhcp_client *client, struct in_addr *addr); -int sd_dhcp_client_get_dns(sd_dhcp_client *client, struct in_addr ***addr); +int sd_dhcp_client_get_dns(sd_dhcp_client *client, struct in_addr **addr, size_t *addr_size); +int sd_dhcp_client_get_mtu(sd_dhcp_client *client, uint16_t *mtu); +int sd_dhcp_client_get_domainname(sd_dhcp_client *client, const char **domainname); +int sd_dhcp_client_get_hostname(sd_dhcp_client *client, const char **hostname); int sd_dhcp_client_stop(sd_dhcp_client *client); int sd_dhcp_client_start(sd_dhcp_client *client); -sd_dhcp_client *sd_dhcp_client_free(sd_dhcp_client *client); -sd_dhcp_client *sd_dhcp_client_new(sd_event *event); +void sd_dhcp_client_free(sd_dhcp_client *client); +int sd_dhcp_client_new(sd_dhcp_client **ret); + +int sd_dhcp_client_attach_event(sd_dhcp_client *client, sd_event *event, int priority); +int sd_dhcp_client_detach_event(sd_dhcp_client *client); +sd_event *sd_dhcp_client_get_event(sd_dhcp_client *client); #endif