NetworkManager r3706 - trunk/src



Author: dcbw
Date: Thu May 29 20:30:02 2008
New Revision: 3706
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3706&view=rev

Log:
Add nm_act_request_get_default()

Modified:
   trunk/src/nm-activation-request.c
   trunk/src/nm-activation-request.h

Modified: trunk/src/nm-activation-request.c
==============================================================================
--- trunk/src/nm-activation-request.c	(original)
+++ trunk/src/nm-activation-request.c	Thu May 29 20:30:02 2008
@@ -644,3 +644,11 @@
 	g_object_notify (G_OBJECT (req), NM_ACTIVE_CONNECTION_DEFAULT);
 }
 
+gboolean
+nm_act_request_get_default (NMActRequest *req)
+{
+	g_return_val_if_fail (NM_IS_ACT_REQUEST (req), FALSE);
+
+	return NM_ACT_REQUEST_GET_PRIVATE (req)->is_default;
+}
+

Modified: trunk/src/nm-activation-request.h
==============================================================================
--- trunk/src/nm-activation-request.h	(original)
+++ trunk/src/nm-activation-request.h	Thu May 29 20:30:02 2008
@@ -74,4 +74,6 @@
 
 void          nm_act_request_set_default (NMActRequest *req, gboolean is_default);
 
+gboolean      nm_act_request_get_default (NMActRequest *req);
+
 #endif /* NM_ACTIVATION_REQUEST_H */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]