2007-08-13 13:07:33 +00:00
|
|
|
#include <NetworkManager.h>
|
|
|
|
#include <nm-utils.h>
|
2008-02-20 22:37:39 +00:00
|
|
|
#include <nm-setting-connection.h>
|
2007-08-03 16:10:04 +00:00
|
|
|
#include "nm-settings.h"
|
2008-03-24 15:17:30 +00:00
|
|
|
#include "nm-dbus-glib-types.h"
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2007-09-25 08:45:31 +00:00
|
|
|
|
2007-11-09 16:24:39 +00:00
|
|
|
GQuark
|
|
|
|
nm_settings_error_quark (void)
|
2007-08-03 16:10:04 +00:00
|
|
|
{
|
2007-11-09 16:24:39 +00:00
|
|
|
static GQuark quark;
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2007-11-09 16:24:39 +00:00
|
|
|
if (G_UNLIKELY (!quark))
|
|
|
|
quark = g_quark_from_static_string ("nm-settings-error-quark");
|
|
|
|
return quark;
|
2007-08-03 16:10:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* NMSettings implementation
|
|
|
|
*/
|
|
|
|
|
|
|
|
static gboolean impl_settings_list_connections (NMSettings *settings, GPtrArray **connections, GError **error);
|
|
|
|
|
|
|
|
#include "nm-settings-glue.h"
|
|
|
|
|
|
|
|
#define SETTINGS_CLASS(o) (NM_SETTINGS_CLASS (G_OBJECT_GET_CLASS (o)))
|
|
|
|
|
|
|
|
G_DEFINE_TYPE (NMSettings, nm_settings, G_TYPE_OBJECT)
|
|
|
|
|
|
|
|
enum {
|
|
|
|
S_NEW_CONNECTION,
|
|
|
|
|
|
|
|
S_LAST_SIGNAL
|
|
|
|
};
|
|
|
|
|
|
|
|
static guint settings_signals[S_LAST_SIGNAL] = { 0 };
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
impl_settings_list_connections (NMSettings *settings, GPtrArray **connections, GError **error)
|
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTINGS (settings), FALSE);
|
|
|
|
|
|
|
|
if (!SETTINGS_CLASS (settings)->list_connections) {
|
2007-11-09 16:24:39 +00:00
|
|
|
g_set_error (error, NM_SETTINGS_ERROR, 1,
|
|
|
|
"%s.%d - Missing implementation for Settings::list_connections.",
|
|
|
|
__FILE__, __LINE__);
|
2007-08-03 16:10:04 +00:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
*connections = SETTINGS_CLASS (settings)->list_connections (settings);
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
nm_settings_init (NMSettings *settings)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
nm_settings_finalize (GObject *object)
|
|
|
|
{
|
|
|
|
G_OBJECT_CLASS (nm_settings_parent_class)->finalize (object);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
nm_settings_class_init (NMSettingsClass *settings_class)
|
|
|
|
{
|
|
|
|
GObjectClass *object_class = G_OBJECT_CLASS (settings_class);
|
|
|
|
|
|
|
|
/* virtual methods */
|
|
|
|
object_class->finalize = nm_settings_finalize;
|
|
|
|
|
|
|
|
settings_class->list_connections = NULL;
|
|
|
|
|
|
|
|
/* signals */
|
|
|
|
settings_signals[S_NEW_CONNECTION] =
|
|
|
|
g_signal_new ("new-connection",
|
|
|
|
G_OBJECT_CLASS_TYPE (object_class),
|
|
|
|
G_SIGNAL_RUN_FIRST,
|
|
|
|
G_STRUCT_OFFSET (NMSettingsClass, new_connection),
|
|
|
|
NULL, NULL,
|
|
|
|
g_cclosure_marshal_VOID__OBJECT,
|
|
|
|
G_TYPE_NONE, 1,
|
|
|
|
G_TYPE_OBJECT);
|
|
|
|
|
|
|
|
dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (settings_class),
|
|
|
|
&dbus_glib_nm_settings_object_info);
|
|
|
|
}
|
|
|
|
|
2007-08-13 13:07:33 +00:00
|
|
|
void
|
2008-02-20 22:37:39 +00:00
|
|
|
nm_settings_signal_new_connection (NMSettings *settings, NMExportedConnection *connection)
|
2007-08-13 13:07:33 +00:00
|
|
|
{
|
|
|
|
g_return_if_fail (NM_IS_SETTINGS (settings));
|
2008-02-20 22:37:39 +00:00
|
|
|
g_return_if_fail (NM_IS_EXPORTED_CONNECTION (connection));
|
2007-08-13 13:07:33 +00:00
|
|
|
|
|
|
|
g_signal_emit (settings, settings_signals[S_NEW_CONNECTION], 0, connection);
|
|
|
|
}
|
|
|
|
|
2007-08-03 16:10:04 +00:00
|
|
|
/*
|
2008-02-20 22:37:39 +00:00
|
|
|
* NMExportedConnection implementation
|
2007-08-03 16:10:04 +00:00
|
|
|
*/
|
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
static gboolean impl_exported_connection_get_id (NMExportedConnection *connection,
|
2007-08-03 16:10:04 +00:00
|
|
|
gchar **id,
|
|
|
|
GError **error);
|
2008-02-20 22:37:39 +00:00
|
|
|
static gboolean impl_exported_connection_get_settings (NMExportedConnection *connection,
|
2007-08-03 16:10:04 +00:00
|
|
|
GHashTable **settings,
|
|
|
|
GError **error);
|
2008-02-20 22:37:39 +00:00
|
|
|
static void impl_exported_connection_get_secrets (NMExportedConnection *connection,
|
2007-08-03 16:10:04 +00:00
|
|
|
const gchar *setting_name,
|
2007-10-19 04:55:05 +00:00
|
|
|
const gchar **hints,
|
2007-09-25 06:21:38 +00:00
|
|
|
gboolean request_new,
|
2007-09-20 09:22:42 +00:00
|
|
|
DBusGMethodInvocation *context);
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
#include "nm-exported-connection-glue.h"
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
#define EXPORTED_CONNECTION_CLASS(o) (NM_EXPORTED_CONNECTION_CLASS (G_OBJECT_GET_CLASS (o)))
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
G_DEFINE_TYPE (NMExportedConnection, nm_exported_connection, G_TYPE_OBJECT)
|
2007-08-03 16:10:04 +00:00
|
|
|
|
|
|
|
enum {
|
2008-02-20 22:37:39 +00:00
|
|
|
EC_UPDATED,
|
|
|
|
EC_REMOVED,
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
EC_LAST_SIGNAL
|
2007-08-03 16:10:04 +00:00
|
|
|
};
|
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
static guint connection_signals[EC_LAST_SIGNAL] = { 0 };
|
|
|
|
|
|
|
|
enum {
|
|
|
|
PROP_0,
|
|
|
|
PROP_CONNECTION,
|
|
|
|
|
|
|
|
LAST_PROP
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
NMConnection *wrapped;
|
|
|
|
} NMExportedConnectionPrivate;
|
|
|
|
|
|
|
|
#define NM_EXPORTED_CONNECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), \
|
|
|
|
NM_TYPE_EXPORTED_CONNECTION, \
|
|
|
|
NMExportedConnectionPrivate))
|
|
|
|
|
2007-08-03 16:10:04 +00:00
|
|
|
|
|
|
|
static gboolean
|
2008-02-20 22:37:39 +00:00
|
|
|
impl_exported_connection_get_id (NMExportedConnection *connection,
|
|
|
|
gchar **id,
|
|
|
|
GError **error)
|
2007-08-03 16:10:04 +00:00
|
|
|
{
|
2008-02-20 22:37:39 +00:00
|
|
|
NMExportedConnectionPrivate *priv;
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
g_return_val_if_fail (NM_IS_EXPORTED_CONNECTION (connection), FALSE);
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
priv = NM_EXPORTED_CONNECTION_GET_PRIVATE (connection);
|
|
|
|
if (!EXPORTED_CONNECTION_CLASS (connection)->get_id) {
|
|
|
|
NMSettingConnection *s_con;
|
|
|
|
|
|
|
|
s_con = NM_SETTING_CONNECTION (nm_connection_get_setting (priv->wrapped, NM_TYPE_SETTING_CONNECTION));
|
|
|
|
if (!s_con || !s_con->id) {
|
|
|
|
g_set_error (error, NM_SETTINGS_ERROR, 1,
|
|
|
|
"%s.%d - Invalid connection.",
|
|
|
|
__FILE__, __LINE__);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
*id = g_strdup (s_con->id);
|
|
|
|
} else {
|
|
|
|
*id = EXPORTED_CONNECTION_CLASS (connection)->get_id (connection);
|
|
|
|
}
|
2007-08-03 16:10:04 +00:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
2008-02-20 22:37:39 +00:00
|
|
|
impl_exported_connection_get_settings (NMExportedConnection *connection,
|
2007-08-03 16:10:04 +00:00
|
|
|
GHashTable **settings,
|
|
|
|
GError **error)
|
|
|
|
{
|
2008-02-20 22:37:39 +00:00
|
|
|
NMExportedConnectionPrivate *priv;
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
g_return_val_if_fail (NM_IS_EXPORTED_CONNECTION (connection), FALSE);
|
|
|
|
|
|
|
|
priv = NM_EXPORTED_CONNECTION_GET_PRIVATE (connection);
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
if (!EXPORTED_CONNECTION_CLASS (connection)->get_settings)
|
|
|
|
*settings = nm_connection_to_hash (priv->wrapped);
|
|
|
|
else
|
|
|
|
*settings = EXPORTED_CONNECTION_CLASS (connection)->get_settings (connection);
|
2007-08-03 16:10:04 +00:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2007-09-20 09:22:42 +00:00
|
|
|
static void
|
2008-02-20 22:37:39 +00:00
|
|
|
impl_exported_connection_get_secrets (NMExportedConnection *connection,
|
2007-09-20 09:22:42 +00:00
|
|
|
const gchar *setting_name,
|
2007-10-19 04:55:05 +00:00
|
|
|
const gchar **hints,
|
2007-09-25 06:21:38 +00:00
|
|
|
gboolean request_new,
|
2007-09-20 09:22:42 +00:00
|
|
|
DBusGMethodInvocation *context)
|
2007-08-03 16:10:04 +00:00
|
|
|
{
|
2007-09-20 09:22:42 +00:00
|
|
|
GError *error = NULL;
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
if (!NM_IS_EXPORTED_CONNECTION (connection)) {
|
2007-11-09 16:24:39 +00:00
|
|
|
g_set_error (&error, NM_SETTINGS_ERROR, 1,
|
|
|
|
"%s.%d - Invalid connection in ConnectionSettings::get_secrets.",
|
|
|
|
__FILE__, __LINE__);
|
2007-09-20 09:22:42 +00:00
|
|
|
dbus_g_method_return_error (context, error);
|
|
|
|
g_error_free (error);
|
|
|
|
return;
|
2007-08-03 16:10:04 +00:00
|
|
|
}
|
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
if (!EXPORTED_CONNECTION_CLASS (connection)->get_secrets) {
|
2007-11-09 16:24:39 +00:00
|
|
|
g_set_error (&error, NM_SETTINGS_ERROR, 1,
|
|
|
|
"%s.%d - Missing implementation for ConnectionSettings::get_secrets.",
|
|
|
|
__FILE__, __LINE__);
|
2007-09-20 09:22:42 +00:00
|
|
|
dbus_g_method_return_error (context, error);
|
|
|
|
g_error_free (error);
|
|
|
|
return;
|
|
|
|
}
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
EXPORTED_CONNECTION_CLASS (connection)->get_secrets (connection, setting_name, hints, request_new, context);
|
2007-08-03 16:10:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2008-02-20 22:37:39 +00:00
|
|
|
nm_exported_connection_init (NMExportedConnection *connection)
|
2007-08-03 16:10:04 +00:00
|
|
|
{
|
2007-08-29 21:13:46 +00:00
|
|
|
}
|
2007-08-13 13:07:33 +00:00
|
|
|
|
2007-08-29 21:13:46 +00:00
|
|
|
static void
|
2008-02-20 22:37:39 +00:00
|
|
|
set_property (GObject *object, guint prop_id,
|
|
|
|
const GValue *value, GParamSpec *pspec)
|
2007-08-29 21:13:46 +00:00
|
|
|
{
|
2008-02-25 22:08:45 +00:00
|
|
|
GObject *connection;
|
2008-02-20 22:37:39 +00:00
|
|
|
NMExportedConnectionPrivate *priv = NM_EXPORTED_CONNECTION_GET_PRIVATE (object);
|
|
|
|
|
|
|
|
switch (prop_id) {
|
|
|
|
case PROP_CONNECTION:
|
2008-02-25 22:08:45 +00:00
|
|
|
if (priv->wrapped) {
|
2008-02-20 22:37:39 +00:00
|
|
|
g_object_unref (priv->wrapped);
|
2008-02-25 22:08:45 +00:00
|
|
|
priv->wrapped = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
connection = g_value_dup_object (value);
|
|
|
|
if (connection)
|
|
|
|
priv->wrapped = NM_CONNECTION (connection);
|
2008-02-20 22:37:39 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
|
|
break;
|
2007-08-13 13:07:33 +00:00
|
|
|
}
|
2008-02-20 22:37:39 +00:00
|
|
|
}
|
2007-08-30 02:45:29 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
static void
|
|
|
|
get_property (GObject *object, guint prop_id,
|
|
|
|
GValue *value, GParamSpec *pspec)
|
|
|
|
{
|
|
|
|
NMExportedConnection *exported = NM_EXPORTED_CONNECTION (object);
|
|
|
|
|
|
|
|
switch (prop_id) {
|
|
|
|
case PROP_CONNECTION:
|
|
|
|
g_value_set_object (value, nm_exported_connection_get_connection (exported));
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
|
|
break;
|
|
|
|
}
|
2007-08-03 16:10:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2008-02-20 22:37:39 +00:00
|
|
|
nm_exported_connection_dispose (GObject *object)
|
2007-08-03 16:10:04 +00:00
|
|
|
{
|
2008-02-20 22:37:39 +00:00
|
|
|
NMExportedConnectionPrivate *priv = NM_EXPORTED_CONNECTION_GET_PRIVATE (object);
|
|
|
|
|
|
|
|
if (priv->wrapped) {
|
|
|
|
g_object_unref (priv->wrapped);
|
|
|
|
priv->wrapped = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
G_OBJECT_CLASS (nm_exported_connection_parent_class)->dispose (object);
|
2007-08-03 16:10:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2008-02-20 22:37:39 +00:00
|
|
|
nm_exported_connection_class_init (NMExportedConnectionClass *exported_connection_class)
|
2007-08-03 16:10:04 +00:00
|
|
|
{
|
2008-02-20 22:37:39 +00:00
|
|
|
GObjectClass *object_class = G_OBJECT_CLASS (exported_connection_class);
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
g_type_class_add_private (object_class, sizeof (NMExportedConnectionPrivate));
|
2007-08-03 16:10:04 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
/* virtual methods */
|
|
|
|
object_class->set_property = set_property;
|
|
|
|
object_class->get_property = get_property;
|
|
|
|
object_class->dispose = nm_exported_connection_dispose;
|
|
|
|
|
|
|
|
exported_connection_class->get_id = NULL;
|
|
|
|
exported_connection_class->get_settings = NULL;
|
|
|
|
exported_connection_class->get_secrets = NULL;
|
|
|
|
|
|
|
|
/* Properties */
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_CONNECTION,
|
|
|
|
g_param_spec_object (NM_EXPORTED_CONNECTION_CONNECTION,
|
|
|
|
"Connection",
|
|
|
|
"Wrapped connection",
|
|
|
|
NM_TYPE_CONNECTION,
|
|
|
|
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
|
2007-08-03 16:10:04 +00:00
|
|
|
|
|
|
|
/* signals */
|
2008-02-20 22:37:39 +00:00
|
|
|
connection_signals[EC_UPDATED] =
|
2007-08-03 16:10:04 +00:00
|
|
|
g_signal_new ("updated",
|
|
|
|
G_OBJECT_CLASS_TYPE (object_class),
|
|
|
|
G_SIGNAL_RUN_FIRST,
|
2008-02-20 22:37:39 +00:00
|
|
|
G_STRUCT_OFFSET (NMExportedConnectionClass, updated),
|
2007-08-03 16:10:04 +00:00
|
|
|
NULL, NULL,
|
|
|
|
g_cclosure_marshal_VOID__POINTER,
|
|
|
|
G_TYPE_NONE, 1,
|
2008-03-24 15:17:30 +00:00
|
|
|
DBUS_TYPE_G_MAP_OF_MAP_OF_VARIANT);
|
2008-02-20 22:37:39 +00:00
|
|
|
|
|
|
|
connection_signals[EC_REMOVED] =
|
2007-08-03 16:10:04 +00:00
|
|
|
g_signal_new ("removed",
|
|
|
|
G_OBJECT_CLASS_TYPE (object_class),
|
|
|
|
G_SIGNAL_RUN_FIRST,
|
2008-02-20 22:37:39 +00:00
|
|
|
G_STRUCT_OFFSET (NMExportedConnectionClass, removed),
|
2007-08-03 16:10:04 +00:00
|
|
|
NULL, NULL,
|
|
|
|
g_cclosure_marshal_VOID__VOID,
|
|
|
|
G_TYPE_NONE, 0);
|
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (exported_connection_class),
|
|
|
|
&dbus_glib_nm_exported_connection_object_info);
|
|
|
|
}
|
|
|
|
|
|
|
|
NMConnection *
|
|
|
|
nm_exported_connection_get_connection (NMExportedConnection *connection)
|
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_EXPORTED_CONNECTION (connection), NULL);
|
|
|
|
|
|
|
|
return NM_EXPORTED_CONNECTION_GET_PRIVATE (connection)->wrapped;
|
2007-08-03 16:10:04 +00:00
|
|
|
}
|
2007-08-13 13:07:33 +00:00
|
|
|
|
2007-08-30 02:45:29 +00:00
|
|
|
void
|
2008-02-20 22:37:39 +00:00
|
|
|
nm_exported_connection_register_object (NMExportedConnection *connection,
|
|
|
|
NMConnectionScope scope,
|
2007-08-30 02:45:29 +00:00
|
|
|
DBusGConnection *dbus_connection)
|
|
|
|
{
|
2008-02-20 22:37:39 +00:00
|
|
|
NMExportedConnectionPrivate *priv;
|
|
|
|
static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
|
|
|
|
static guint32 ec_counter = 0;
|
|
|
|
char *path;
|
|
|
|
|
|
|
|
g_return_if_fail (NM_IS_EXPORTED_CONNECTION (connection));
|
2007-08-30 02:45:29 +00:00
|
|
|
g_return_if_fail (dbus_connection != NULL);
|
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
priv = NM_EXPORTED_CONNECTION_GET_PRIVATE (connection);
|
|
|
|
|
|
|
|
g_static_mutex_lock (&mutex);
|
|
|
|
path = g_strdup_printf ("%s/%u", NM_DBUS_PATH_SETTINGS, ec_counter++);
|
|
|
|
g_static_mutex_unlock (&mutex);
|
|
|
|
|
|
|
|
nm_connection_set_path (priv->wrapped, path);
|
|
|
|
nm_connection_set_scope (priv->wrapped, scope);
|
|
|
|
|
2007-08-30 02:45:29 +00:00
|
|
|
dbus_g_connection_register_g_object (dbus_connection,
|
2008-02-20 22:37:39 +00:00
|
|
|
path,
|
2007-08-30 02:45:29 +00:00
|
|
|
G_OBJECT (connection));
|
2008-02-20 22:37:39 +00:00
|
|
|
g_free (path);
|
2007-08-30 02:45:29 +00:00
|
|
|
}
|
|
|
|
|
2007-08-13 13:07:33 +00:00
|
|
|
void
|
2008-02-20 22:37:39 +00:00
|
|
|
nm_exported_connection_signal_updated (NMExportedConnection *connection, GHashTable *settings)
|
2007-08-13 13:07:33 +00:00
|
|
|
{
|
2008-02-20 22:37:39 +00:00
|
|
|
g_return_if_fail (NM_IS_EXPORTED_CONNECTION (connection));
|
2007-08-13 13:07:33 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
g_signal_emit (connection, connection_signals[EC_UPDATED], 0, settings);
|
2007-08-13 13:07:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2008-02-20 22:37:39 +00:00
|
|
|
nm_exported_connection_signal_removed (NMExportedConnection *connection)
|
2007-08-13 13:07:33 +00:00
|
|
|
{
|
2008-02-20 22:37:39 +00:00
|
|
|
g_return_if_fail (NM_IS_EXPORTED_CONNECTION (connection));
|
2007-08-13 13:07:33 +00:00
|
|
|
|
2008-02-20 22:37:39 +00:00
|
|
|
g_signal_emit (connection, connection_signals[EC_REMOVED], 0);
|
2007-08-13 13:07:33 +00:00
|
|
|
}
|