Lines Matching refs:ret

58 static int network_get_strv(const char *key, char ***ret) {
63 assert_return(ret, -EINVAL);
71 *ret = NULL;
82 *ret = a;
88 _public_ int sd_network_get_dns(char ***ret) {
89 return network_get_strv("DNS", ret);
92 _public_ int sd_network_get_ntp(char ***ret) {
93 return network_get_strv("NTP", ret);
96 _public_ int sd_network_get_search_domains(char ***ret) {
97 return network_get_strv("DOMAINS", ret);
100 _public_ int sd_network_get_route_domains(char ***ret) {
101 return network_get_strv("ROUTE_DOMAINS", ret);
104 static int network_link_get_string(int ifindex, const char *field, char **ret) {
109 assert_return(ret, -EINVAL);
122 *ret = s;
128 static int network_link_get_strv(int ifindex, const char *key, char ***ret) {
134 assert_return(ret, -EINVAL);
145 *ret = NULL;
156 *ret = a;
215 int sd_network_link_get_timezone(int ifindex, char **ret) {
216 return network_link_get_string(ifindex, "TIMEZONE", ret);
219 _public_ int sd_network_link_get_dns(int ifindex, char ***ret) {
220 return network_link_get_strv(ifindex, "DNS", ret);
223 _public_ int sd_network_link_get_ntp(int ifindex, char ***ret) {
224 return network_link_get_strv(ifindex, "NTP", ret);
227 _public_ int sd_network_link_get_search_domains(int ifindex, char ***ret) {
228 return network_link_get_strv(ifindex, "DOMAINS", ret);
231 _public_ int sd_network_link_get_route_domains(int ifindex, char ***ret) {
232 return network_link_get_strv(ifindex, "ROUTE_DOMAINS", ret);
235 _public_ int sd_network_link_get_carrier_bound_to(int ifindex, char ***ret) {
236 return network_link_get_strv(ifindex, "CARRIER_BOUND_TO", ret);
239 _public_ int sd_network_link_get_carrier_bound_by(int ifindex, char ***ret) {
240 return network_link_get_strv(ifindex, "CARRIER_BOUND_BY", ret);