enum connman_element_policy {
CONNMAN_ELEMENT_POLICY_UNKNOWN = 0,
- CONNMAN_ELEMENT_POLICY_OFF = 1,
+ CONNMAN_ELEMENT_POLICY_IGNORE = 1,
CONNMAN_ELEMENT_POLICY_AUTO = 2,
- CONNMAN_ELEMENT_POLICY_IGNORE = 3,
- CONNMAN_ELEMENT_POLICY_ASK = 4,
+ CONNMAN_ELEMENT_POLICY_ASK = 3,
};
enum connman_element_type {
switch (policy) {
case CONNMAN_ELEMENT_POLICY_UNKNOWN:
return "unknown";
- case CONNMAN_ELEMENT_POLICY_OFF:
- return "off";
- case CONNMAN_ELEMENT_POLICY_AUTO:
- return "auto";
case CONNMAN_ELEMENT_POLICY_IGNORE:
return "ignore";
+ case CONNMAN_ELEMENT_POLICY_AUTO:
+ return "auto";
case CONNMAN_ELEMENT_POLICY_ASK:
return "ask";
}
enum connman_element_policy __connman_element_string2policy(const char *policy)
{
- if (strcasecmp(policy, "off") == 0)
- return CONNMAN_ELEMENT_POLICY_OFF;
- else if (strcasecmp(policy, "ignore") == 0)
+ if (strcasecmp(policy, "ignore") == 0)
return CONNMAN_ELEMENT_POLICY_IGNORE;
else if (strcasecmp(policy, "auto") == 0)
return CONNMAN_ELEMENT_POLICY_AUTO;