diff options
Diffstat (limited to 'src/profile.c')
-rw-r--r-- | src/profile.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/profile.c b/src/profile.c index ce26c7ac..86b78f13 100644 --- a/src/profile.c +++ b/src/profile.c @@ -146,12 +146,22 @@ static DBusMessage *get_properties(DBusConnection *conn, static DBusMessage *connect_service(DBusConnection *conn, DBusMessage *msg, void *data) { + struct connman_group *group = data; + + if (group->type == CONNMAN_SERVICE_TYPE_ETHERNET) + return __connman_error_not_supported(msg); + return __connman_error_not_implemented(msg); } static DBusMessage *disconnect_service(DBusConnection *conn, DBusMessage *msg, void *data) { + struct connman_group *group = data; + + if (group->type == CONNMAN_SERVICE_TYPE_ETHERNET) + return __connman_error_not_supported(msg); + return __connman_error_not_implemented(msg); } @@ -160,6 +170,9 @@ static DBusMessage *remove_service(DBusConnection *conn, { struct connman_group *group = data; + if (group->type == CONNMAN_SERVICE_TYPE_ETHERNET) + return __connman_error_not_supported(msg); + group->favorite = FALSE; return g_dbus_create_reply(msg, DBUS_TYPE_INVALID); @@ -168,12 +181,22 @@ static DBusMessage *remove_service(DBusConnection *conn, static DBusMessage *move_before(DBusConnection *conn, DBusMessage *msg, void *data) { + struct connman_group *group = data; + + if (group->favorite == FALSE) + return __connman_error_not_supported(msg); + return __connman_error_not_implemented(msg); } static DBusMessage *move_after(DBusConnection *conn, DBusMessage *msg, void *data) { + struct connman_group *group = data; + + if (group->favorite == FALSE) + return __connman_error_not_supported(msg); + return __connman_error_not_implemented(msg); } |