.disconnect = pan_disconnect,
};
-static gboolean network_changed(DBusConnection *connection,
+static gboolean network_changed(DBusConnection *conn,
DBusMessage *message, void *user_data)
{
const char *path = dbus_message_get_path(message);
}
}
-static gboolean adapter_changed(DBusConnection *connection,
+static gboolean adapter_changed(DBusConnection *conn,
DBusMessage *message, void *user_data)
{
const char *path = dbus_message_get_path(message);
return TRUE;
}
-static gboolean device_removed(DBusConnection *connection,
+static gboolean device_removed(DBusConnection *conn,
DBusMessage *message, void *user_data)
{
const char *network_path;
return TRUE;
}
-static gboolean device_changed(DBusConnection *connection,
+static gboolean device_changed(DBusConnection *conn,
DBusMessage *message, void *user_data)
{
const char *path = dbus_message_get_path(message);
dbus_pending_call_unref(call);
}
-static void add_adapter(DBusConnection *connection, const char *path)
+static void add_adapter(DBusConnection *conn, const char *path)
{
DBusMessage *message;
DBusPendingCall *call;
dbus_message_set_auto_start(message, FALSE);
- if (dbus_connection_send_with_reply(connection, message,
+ if (dbus_connection_send_with_reply(conn, message,
&call, TIMEOUT) == FALSE) {
connman_error("Failed to get adapter properties for %s", path);
goto done;
dbus_message_unref(message);
}
-static gboolean adapter_added(DBusConnection *connection, DBusMessage *message,
+static gboolean adapter_added(DBusConnection *conn, DBusMessage *message,
void *user_data)
{
const char *path;
dbus_message_get_args(message, NULL, DBUS_TYPE_OBJECT_PATH, &path,
DBUS_TYPE_INVALID);
- add_adapter(connection, path);
+ add_adapter(conn, path);
return TRUE;
}
-static void remove_adapter(DBusConnection *connection, const char *path)
+static void remove_adapter(DBusConnection *conn, const char *path)
{
DBG("path %s", path);
g_hash_table_remove(bluetooth_devices, path);
}
-static gboolean adapter_removed(DBusConnection *connection, DBusMessage *message,
+static gboolean adapter_removed(DBusConnection *conn, DBusMessage *message,
void *user_data)
{
const char *path;
dbus_message_get_args(message, NULL, DBUS_TYPE_OBJECT_PATH, &path,
DBUS_TYPE_INVALID);
- remove_adapter(connection, path);
+ remove_adapter(conn, path);
return TRUE;
}
connman_network_unref(network);
}
-static void bluetooth_connect(DBusConnection *connection, void *user_data)
+static void bluetooth_connect(DBusConnection *conn, void *user_data)
{
DBusMessage *message;
DBusPendingCall *call;
- DBG("connection %p", connection);
+ DBG("connection %p", conn);
bluetooth_devices = g_hash_table_new_full(g_str_hash, g_str_equal,
g_free, unregister_device);
dbus_message_set_auto_start(message, FALSE);
- if (dbus_connection_send_with_reply(connection, message,
+ if (dbus_connection_send_with_reply(conn, message,
&call, TIMEOUT) == FALSE) {
connman_error("Failed to get Bluetooth adapters");
goto done;
dbus_message_unref(message);
}
-static void bluetooth_disconnect(DBusConnection *connection, void *user_data)
+static void bluetooth_disconnect(DBusConnection *conn, void *user_data)
{
- DBG("connection %p", connection);
+ DBG("connection %p", conn);
if (bluetooth_devices == NULL)
return;
add_adapter(connection, user_data);
}
-static int change_powered(DBusConnection *connection, const char *path,
+static int change_powered(DBusConnection *conn, const char *path,
dbus_bool_t powered)
{
DBusMessage *message;
connman_dbus_property_append_basic(&iter, "Powered",
DBUS_TYPE_BOOLEAN, &powered);
- if (dbus_connection_send_with_reply(connection, message,
+ if (dbus_connection_send_with_reply(conn, message,
&call, TIMEOUT) == FALSE) {
connman_error("Failed to change Powered property");
dbus_message_unref(message);
g_free(gateway);
}
-static gboolean device_changed(DBusConnection *connection,
+static gboolean device_changed(DBusConnection *conn,
DBusMessage *message,
void *user_data)
{
set_connected(info);
}
-static gboolean device_added(DBusConnection *connection, DBusMessage *message,
+static gboolean device_added(DBusConnection *conn, DBusMessage *message,
void *user_data)
{
DBusMessageIter iter, properties;
return TRUE;
}
-static void remove_device(DBusConnection *connection, const char *path)
+static void remove_device(DBusConnection *conn, const char *path)
{
DBG("path %s", path);
g_hash_table_remove(dundee_devices, path);
}
-static gboolean device_removed(DBusConnection *connection, DBusMessage *message,
+static gboolean device_removed(DBusConnection *conn, DBusMessage *message,
void *user_data)
{
const char *path;
dbus_message_get_args(message, NULL, DBUS_TYPE_OBJECT_PATH, &path,
DBUS_TYPE_INVALID);
- remove_device(connection, path);
+ remove_device(conn, path);
return TRUE;
}
return -EINPROGRESS;
}
-static void dundee_connect(DBusConnection *connection, void *user_data)
+static void dundee_connect(DBusConnection *conn, void *user_data)
{
- DBG("connection %p", connection);
+ DBG("connection %p", conn);
dundee_devices = g_hash_table_new_full(g_str_hash, g_str_equal,
g_free, device_destroy);
manager_get_devices();
}
-static void dundee_disconnect(DBusConnection *connection, void *user_data)
+static void dundee_disconnect(DBusConnection *conn, void *user_data)
{
- DBG("connection %p", connection);
+ DBG("connection %p", conn);
g_hash_table_destroy(dundee_devices);
dundee_devices = NULL;
remove_network(modem);
}
-static gboolean context_changed(DBusConnection *connection,
+static gboolean context_changed(DBusConnection *conn,
DBusMessage *message,
void *user_data)
{
return -EINPROGRESS;
}
-static gboolean cm_context_added(DBusConnection *connection,
+static gboolean cm_context_added(DBusConnection *conn,
DBusMessage *message,
void *user_data)
{
return TRUE;
}
-static gboolean cm_context_removed(DBusConnection *connection,
+static gboolean cm_context_removed(DBusConnection *conn,
DBusMessage *message,
void *user_data)
{
connman_technology_set_regdom(alpha2);
}
-static gboolean netreg_changed(DBusConnection *connection, DBusMessage *message,
+static gboolean netreg_changed(DBusConnection *conn, DBusMessage *message,
void *user_data)
{
const char *path = dbus_message_get_path(message);
set_connected(modem);
}
-static gboolean cdma_netreg_changed(DBusConnection *connection,
+static gboolean cdma_netreg_changed(DBusConnection *conn,
DBusMessage *message,
void *user_data)
{
cm_set_powered(modem, TRUE);
}
-static gboolean cm_changed(DBusConnection *connection, DBusMessage *message,
+static gboolean cm_changed(DBusConnection *conn, DBusMessage *message,
void *user_data)
{
const char *path = dbus_message_get_path(message);
extract_ipv4_settings(value, modem->context);
}
-static gboolean cdma_cm_changed(DBusConnection *connection,
+static gboolean cdma_cm_changed(DBusConnection *conn,
DBusMessage *message, void *user_data)
{
const char *path = dbus_message_get_path(message);
modem->imsi = g_strdup(imsi);
}
-static gboolean sim_changed(DBusConnection *connection, DBusMessage *message,
+static gboolean sim_changed(DBusConnection *conn, DBusMessage *message,
void *user_data)
{
const char *path = dbus_message_get_path(message);
}
}
-static gboolean modem_changed(DBusConnection *connection, DBusMessage *message,
+static gboolean modem_changed(DBusConnection *conn, DBusMessage *message,
void *user_data)
{
const char *path = dbus_message_get_path(message);
g_free(modem);
}
-static gboolean modem_added(DBusConnection *connection,
+static gboolean modem_added(DBusConnection *conn,
DBusMessage *message, void *user_data)
{
DBusMessageIter iter, properties;
return TRUE;
}
-static gboolean modem_removed(DBusConnection *connection,
+static gboolean modem_removed(DBusConnection *conn,
DBusMessage *message, void *user_data)
{
DBusMessageIter iter;