void netconfig_error_init(void)
{
- /* TODO: register GError domain to make error_name */
- /*
- dbus_g_error_domain_register(NETCONFIG_ERROR_QUARK,
- NETCONFIG_ERROR_INTERFACE,
- code_num_netconfig);
-
- dbus_g_error_domain_register(NETCONFIG_CONNMAN_AGENT_ERROR_QUARK,
- CONNMAN_AGENT_ERROR_INTERFACE,
- code_num_connman);
- */
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_INTERNAL,
+ "net.netconfig.Error.Internal");
+
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_NO_SERVICE,
+ "net.netconfig.Error.NoService");
+
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_NO_PROFILE,
+ "net.netconfig.Error.NoProfile");
+
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_WRONG_PROFILE,
+ "net.netconfig.Error.WrongProfile");
+
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_INPROGRESS,
+ "net.netconfig.Error.InProgress");
+
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_ALREADYEXISTS,
+ "net.netconfig.Error.AlreadyExists");
+
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_INVALID_PARAMETER,
+ "net.netconfig.Error.InvalidParameter");
+
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_PERMISSION_DENIED,
+ "net.netconfig.Error.PermissionDenied");
+
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_WIFI_DRIVER_FAILURE,
+ "net.netconfig.Error.WifiDriverFailed");
+
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_FAILED_GET_IMSI,
+ "net.netconfig.Error.FailGetSimImsi");
+
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_FAILED_REQ_SIM_AUTH,
+ "net.netconfig.Error.FailReqSimAuthWrongParam");
+
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_FAILED_REQ_SIM_AUTH_WRONG_PARAM,
+ "net.netconfig.Error.FailReqSimAuthWrongParam");
+
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_FAILED_GET_SIM_AUTH_WRONG_DATA,
+ "net.netconfig.Error.FailGetSimAuthWrongData");
+
+ g_dbus_error_register_error(NETCONFIG_ERROR_QUARK,
+ NETCONFIG_ERROR_FAILED_GET_SIM_AUTH_DELAY,
+ "net.netconfig.Error.FailGetSimAuthDelay");
}