NetworkManager r4316 - trunk/libnm-util
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r4316 - trunk/libnm-util
- Date: Thu, 20 Nov 2008 16:03:00 +0000 (UTC)
Author: dcbw
Date: Thu Nov 20 16:03:00 2008
New Revision: 4316
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=4316&view=rev
Log:
Fix argument names so they show up in the docs
Modified:
trunk/libnm-util/nm-connection.c
trunk/libnm-util/nm-connection.h
Modified: trunk/libnm-util/nm-connection.c
==============================================================================
--- trunk/libnm-util/nm-connection.c (original)
+++ trunk/libnm-util/nm-connection.c Thu Nov 20 16:03:00 2008
@@ -366,12 +366,12 @@
* operation dereferences the #NMSetting object.
**/
void
-nm_connection_remove_setting (NMConnection *connection, GType type)
+nm_connection_remove_setting (NMConnection *connection, GType setting_type)
{
g_return_if_fail (NM_IS_CONNECTION (connection));
- g_return_if_fail (g_type_is_a (type, NM_TYPE_SETTING));
+ g_return_if_fail (g_type_is_a (setting_type, NM_TYPE_SETTING));
- g_hash_table_remove (NM_CONNECTION_GET_PRIVATE (connection)->settings, g_type_name (type));
+ g_hash_table_remove (NM_CONNECTION_GET_PRIVATE (connection)->settings, g_type_name (setting_type));
}
/**
@@ -386,13 +386,13 @@
* added to the #NMConnection
**/
NMSetting *
-nm_connection_get_setting (NMConnection *connection, GType type)
+nm_connection_get_setting (NMConnection *connection, GType setting_type)
{
g_return_val_if_fail (NM_IS_CONNECTION (connection), NULL);
- g_return_val_if_fail (g_type_is_a (type, NM_TYPE_SETTING), NULL);
+ g_return_val_if_fail (g_type_is_a (setting_type, NM_TYPE_SETTING), NULL);
return (NMSetting *) g_hash_table_lookup (NM_CONNECTION_GET_PRIVATE (connection)->settings,
- g_type_name (type));
+ g_type_name (setting_type));
}
/**
Modified: trunk/libnm-util/nm-connection.h
==============================================================================
--- trunk/libnm-util/nm-connection.h (original)
+++ trunk/libnm-util/nm-connection.h Thu Nov 20 16:03:00 2008
@@ -89,10 +89,10 @@
NMSetting *setting);
void nm_connection_remove_setting (NMConnection *connection,
- GType setting_type);
+ GType setting_type);
NMSetting *nm_connection_get_setting (NMConnection *connection,
- GType setting_type);
+ GType setting_type);
NMSetting *nm_connection_get_setting_by_name (NMConnection *connection,
const char *name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]