add new dbus method for preferred Ipv6 address
[platform/core/connectivity/net-config.git] / include / neterror.h
index df6247b..b492797 100755 (executable)
@@ -28,16 +28,20 @@ extern "C" {
 #include <gio/gio.h>
 #include <glib-object.h>
 
+#ifndef EXPORT_SYM
+#define EXPORT_SYM __attribute__((__visibility__("default")))
+#endif
+
 #define NETCONFIG_ERROR_QUARK (netconfig_error_quark())
 #define NETCONFIG_CONNMAN_AGENT_ERROR_QUARK (netconfig_connman_agent_error_quark())
 
 typedef enum {
        NETCONFIG_NO_ERROR                              = 0x00,
-       NETCONFIG_ERROR_INTERNAL                = 0x01,
-       NETCONFIG_ERROR_NO_SERVICE              = 0x02,
-       NETCONFIG_ERROR_TRASPORT                = 0x03,
-       NETCONFIG_ERROR_NO_PROFILE              = 0x04,
-       NETCONFIG_ERROR_WRONG_PROFILE   = 0x05,
+       NETCONFIG_ERROR_INTERNAL                = 0x01,
+       NETCONFIG_ERROR_NO_SERVICE              = 0x02,
+       NETCONFIG_ERROR_TRASPORT                = 0x03,
+       NETCONFIG_ERROR_NO_PROFILE              = 0x04,
+       NETCONFIG_ERROR_WRONG_PROFILE   = 0x05,
        NETCONFIG_ERROR_INPROGRESS              = 0x06,
        NETCONFIG_ERROR_ALREADYEXISTS   = 0x07,
        NETCONFIG_ERROR_INVALID_PARAMETER               = 0x08,
@@ -49,7 +53,7 @@ typedef enum {
        NETCONFIG_ERROR_FAILED_GET_SIM_AUTH_WRONG_DATA          = 0x0E,
        NETCONFIG_ERROR_FAILED_GET_SIM_AUTH_DELAY                       = 0x0F,
        NETCONFIG_ERROR_FAILED_REQ_AKA_AUTH                                     = 0x10,
-       NETCONFIG_ERROR_MAX                                                             = 0x11,
+       NETCONFIG_ERROR_MAX                                                                     = 0x11,
 } netconfig_error_e;
 
 void netconfig_error_no_profile(GDBusMethodInvocation *context);
@@ -66,6 +70,7 @@ void netconfig_error_fail_get_sim_auth_wrong_data(GDBusMethodInvocation *context
 void netconfig_error_fail_get_sim_auth_delay(GDBusMethodInvocation *context);
 void netconfig_error_fail_save_congifuration(GDBusMethodInvocation *context);
 void netconfig_error_fail_ethernet_cable_state(GDBusMethodInvocation *context);
+void netconfig_error_fail_preferred_ipv6_address(GDBusMethodInvocation *context);
 void netconfig_error_dbus_method_return(GDBusMethodInvocation *context, netconfig_error_e error, const gchar *message);
 
 void netconfig_error_init(void);