sd-network: expose 'unmanaged' as a regular state
This is useful to save in the consumer of the lib, unlike ENODATA/EBUSY which means that the user should wait until a useful state is available.
This commit is contained in:
@@ -85,9 +85,7 @@ _public_ int sd_network_get_link_state(unsigned index, char **state) {
|
||||
else if (!s)
|
||||
return -EIO;
|
||||
|
||||
if (streq(s, "unmanaged"))
|
||||
return -EUNATCH;
|
||||
else if (streq(s, "initializing"))
|
||||
if (streq(s, "initializing"))
|
||||
return -EBUSY;
|
||||
|
||||
*state = s;
|
||||
|
||||
Reference in New Issue
Block a user