#include <errno.h>
-#include <gdbus/gdbus.h>
+#include <gdbus.h>
#include "test-connman.h"
return CONNMAN_SESSION_STATE_DISCONNECTED;
}
-static enum connman_session_state string2type(const char *type)
+static enum connman_session_type string2type(const char *type)
{
if (g_strcmp0(type, "any") == 0)
return CONNMAN_SESSION_TYPE_ANY;
void session_append_settings(DBusMessageIter *dict,
struct test_session_info *info)
{
+ if (info->allowed_bearers == NULL)
+ return;
+
connman_dbus_dict_append_array(dict, "AllowedBearers",
DBUS_TYPE_STRING,
append_allowed_bearers,