enum connman_service_error {
CONNMAN_SERVICE_ERROR_UNKNOWN = 0,
CONNMAN_SERVICE_ERROR_DHCP_FAILED = 1,
+ CONNMAN_SERVICE_ERROR_PIN_MISSING = 2,
};
struct connman_service;
break;
case CONNMAN_SERVICE_ERROR_DHCP_FAILED:
return "dhcp-failed";
+ case CONNMAN_SERVICE_ERROR_PIN_MISSING:
+ return "pin-missing";
}
return NULL;
{
if (g_strcmp0(error, "dhcp-failed") == 0)
return CONNMAN_SERVICE_ERROR_DHCP_FAILED;
+ else if (g_strcmp0(error, "pin-missing") == 0)
+ return CONNMAN_SERVICE_ERROR_PIN_MISSING;
return CONNMAN_SERVICE_ERROR_UNKNOWN;
}