Commit Graph

13873 Commits

Author SHA1 Message Date
Tambet Ingo
591dc59e1f 2007-10-08 Tambet Ingo <tambet@gmail.com>
* src/NetworkManager.c (main): When dbus manager doesn't want to
        * start, complain
        about dbus manager, not named manager.
        Make sure hal_manager and dbus_mgr are created before trying to
unreference.

        * src/nm-dbus-manager.c: There was an issue with priv->proxy: We
        * have a signal
        handler for it's 'destroy' signal - we use it to catch
disconnects from dbus.
        However, the same signal is emitted when we destroy it and
there's 
        nm_dbus_manager_cleanup -> destroy_cb -> nm_dbus_manager_cleanup
cycle.

        (nm_dbus_manager_cleanup): Let go of the DBusGProxy before
        releasing the DBusGConnection, since proxy needs a conneciton.
        (destroy_cb): Set the private proxy to NULL before cleaning up
the manager.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2959 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-09 07:51:03 +00:00
Dan Williams
71589014c8 2007-10-08 Dan Williams <dcbw@redhat.com>
* src/NetworkManager.c
		- (main): error on unknown command-line options



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2958 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-08 18:38:34 +00:00
Dan Williams
592dc6f244 2007-10-08 Dan Williams <dcbw@redhat.com>
Reimplement the invalid connection list.  Don't try to re-activate a
	connection that just failed or was canceled.

	* src/nm-device.c
		- (connection_secrets_failed_cb): fail device activation, don't just
			deactivate the device.  Listeners have to know about the failure.

	* src/NetworkManagerPolicy.c
		- (nm_policy_auto_get_best_device): exclude invalid connections from
			the connection list given to a device's get_best_connection()
			method
		- (device_state_changed): tag failed connections as invalid; clear the
			tag from successful connections



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2957 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-08 18:07:36 +00:00
Dan Williams
8bb7cdee1a 2007-10-08 Dan Williams <dcbw@redhat.com>
Fix problems with interrupted activation.  Previously, choosing an AP
	from the menu, then choosing another one before the first connection was
	successful wouldn't deactivate the device before starting the new connection
	on that same device.

	* src/NetworkManagerPolicy.c
		- (deactivate_old_device, device_state_changed, state_changed,
		   nm_policy_new): wrong place to deactivate old devices

	* src/nm-manager.c
		- (pending_connection_info_destroy, finalize,
		   wait_for_connection_expired): decouple destruction of the pending
			connection info from the manager device
		- (connection_added_default_handler): deactivate any active or
			activating device before starting a new activation
		- (impl_manager_activate_device): deactivate any active or activating
			device before starting a new activation; be sure not to leak
			pending connection info if a new activation request arrives but
			there's already a pending one in-process



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2956 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-08 16:27:07 +00:00
Dan Williams
777d07673c 2007-10-08 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerAP.h
	  src/NetworkManagerAP.c
		- (nm_ap_has_manufacturer_default_ssid): remove, unused.  User clients
			should handle default SSIDs and whether or not to autoconnect
			to them



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2955 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-08 15:27:56 +00:00
Dan Williams
04f27601f8 2007-10-08 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (nm_policy_device_change_check): print out connection name where
			possible



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2954 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-08 15:09:50 +00:00
Dan Williams
d66216620d 2007-10-08 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
	  src/nm-device-802-11-wireless.h
		- (nm_device_802_11_wireless_class_init, merge_scanned_ap): new
			'hidden-ap-found' signal (for internal use only) that allows the
			NMManager to fill in the AP's SSID if a connection has that AP's
			BSSID in its seen-bssids list

	* src/nm-manager.c
		- (manager_hidden_ap_found, nm_manager_add_device): attach to a
			wireless device's hidden-ap-found signal and fill in the APs SSID
			if possible



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2953 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-08 15:09:33 +00:00
Tambet Ingo
a9251b8b68 2007-10-08 Tambet Ingo <tambet@gmail.com>
* Update everything to work with the 0.7 branch NetworkManager.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2952 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-08 14:45:32 +00:00
Dan Williams
9d318e9fae 2007-10-07 Dan Williams <dcbw@redhat.com>
* src/nm-manager.c
	  src/nm-manager.h
		- Add a 'connections-added' signal to batch together updates of large
			numbers of connections, like when reading from a settings service
			the first time.  Otherwise, the policy would just activate the first
			suitable connection it saw rather than waiting for the full list
			to arrive.
		- (nm_manager_class_init): register new signal
		- (get_type_for_proxy, connection_get_settings_cb,
		   get_connection_for_proxy): centralize places where a proxy's setting
			service is determined
		- (free_get_settings_info): if the call being freed is the last call
			in a pending call group, fire off the connections-added signal
		- (internal_new_connection_cb): add call to a pending call group if
			requested
		- (list_connections_cb): always create a call group here, because this
			call results in a batch of new connections
		- (initial_get_connections): start getting system connections first
		- (nm_manager_connections_destroy, emit_removed): actually emit the
			removed signal when destroying connections

	* src/NetworkManagerPolicy.c
		- (nm_policy_new, connections_added): handle connections-added signal
			from the manager



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2951 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-07 23:33:28 +00:00
Dan Williams
b6c662e442 2007-10-06 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (constructor): fix leaked socket



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2950 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-06 14:31:25 +00:00
Dan Williams
9e866f733f 2007-10-06 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (nm_policy_auto_get_best_device): fix connection list reffing.  Each
			connection in the list returned by nm_manager_get_connections() is
			reffed, but they weren't getting unreffed before returning



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2949 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-06 13:35:28 +00:00
Dan Williams
305d49b073 (real_get_best_connection): note assumptions made about connection list ordering
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2948 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-06 13:28:44 +00:00
Dan Williams
a52ee53e2c 2007-10-06 Dan Williams <dcbw@redhat.com>
* src/nm-manager.c
		- (connections_to_slist): sort connections first on autoconnect, then
			on timestamp



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2947 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-06 13:27:51 +00:00
Dan Williams
fb5f27bcdd 2007-10-06 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-connection.c
		- (gvalue_to_string): handle UINT64



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2946 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-06 13:23:44 +00:00
Funda Wang
5e5d145a83 Updated zh_CN translation of NetworkManager-pptp
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2945 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-06 08:59:02 +00:00
Funda Wang
3835a92b7c Removed non-exist files from POTFILES.in
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2944 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-06 08:47:32 +00:00
Dan Williams
a7ce89b24d 2007-10-06 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (connection_updated, nm_policy_new): recheck state when a connection
			gets updated



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2943 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-06 04:31:13 +00:00
Dan Williams
dff2886fb4 2007-10-06 Dan Williams <dcbw@redhat.com>
* src/nm-manager.c
	  src/nm-manager.h
		- (nm_manager_get_connection_dbus_path): make static
		- (nm_manager_update_connections): remove; unused
		- Add a connection-updated signal
		- (new_connection_cb, connection_updated_cb, nm_manager_class_init):
			handle connection object updates



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2942 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-06 04:28:46 +00:00
Dan Williams
d8dd859092 2007-10-06 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (connection_removed): deactivate removed connections



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2941 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-06 04:26:33 +00:00
Dan Williams
a0e84d2f5a 2007-10-06 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-connection.c
	  libnm-util/nm-connection.h
		- (nm_connection_replace_settings): new function



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2940 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-06 04:25:48 +00:00
Dan Williams
d030019245 2007-10-06 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-device-802-11-wireless.c
		- (nm_device_802_11_wireless_get_active_access_point): don't segfault
			on error when getting the active access point over D-Bus from NM



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2939 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-06 04:24:30 +00:00
Dan Williams
80817ec8c4 2007-10-05 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting.c
		- (setting_wireless_verify, setting_wireless_destroy): add seen_bssids
			to the NMSettingWireless table; it's now a string array not an array
			of byte arrays



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2938 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-06 02:33:17 +00:00
Dan Williams
1f2cdcab4d 2007-10-05 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-device-802-11-wireless.c
		- Cache properties and update cached properties on D-Bus signals from NM



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2937 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-05 20:54:13 +00:00
Dan Williams
f60d0d930c 2007-10-05 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (set_current_ap): consolidate current_ap handling code into one place
			to ensure that PropertiesChanged signals are emitted in all cases
		- (periodic_update, real_deactivate_quickly, real_act_stage1_prepare,
		   nm_device_802_11_wireless_dispose): use set_current_ap()



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2936 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-05 20:23:49 +00:00
Dan Williams
37f9149cb7 2007-10-05 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-access-point.c
	  libnm-glib/nm-access-point.h
		- (nm_access_point_get_hw_address): return 'const char *', not 'char *'
			because the value is cached internally now.  Callers should not
			free the internal value.
		- Make signal name defines private

	* test/nm-tool.c
	  libnm-glib/libnm-glib-test.c
		- Don't free value returned from nm_access_point_get_hw_address()



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2935 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-05 16:00:06 +00:00
Dan Williams
7732fd87d6 2007-10-04 Dan Williams <dcbw@redhat.com>
* introspection/nm-device-802-11-wireless.xml
	  src/nm-device-802-11-wireless.h
	  src/nm-device-802-11-wireless.c
		- Add a PropertiesChanged signal for wireless device
		- Store currently associated access point
		- (periodic_update): generalize; update rate here too and emit the
			correct PropertiesChanged signal when stuff changes
		- (real_deactivate_quickly, nm_device_802_11_wireless_dispose,
		   real_activation_cancel_handler): clear current_ap when device is
			deactivated
		- (link_to_specific_ap, get_ap_blacklisted,
		   nm_device_802_11_wireless_get_best_ap): remove obsolete and unused
			code
		- (nm_device_802_11_wireless_get_bitrate): make static; unused anywhere
			outside this file
		- (real_set_hw_address): emit property changed signal if the card's
			MAC address changes
		- (real_act_stage1_prepare): set the initial current_ap to the AP
			the card is supposed to be connecting to
		- (activation_success_handler): send out property updates on successful
			activation
		- (get_property): pull bitrate from cached value; use OBJECT_PATH type
			for ACTIVE_ACCESS_POINT property because sometimes there won't be
			one and dbus-glib doesn't like marshalling NULL G_TYPE_OBJECTs
		- (nm_device_802_11_wireless_class_init): ACTIVE_ACCESS_POINT property
			is now boxed; add PropertiesChanged signal



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2934 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-04 20:26:31 +00:00
Dan Williams
bad019a1b5 2007-10-04 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-connection.c
	  libnm-util/nm-connection.h
		- (nm_connection_verify): new function



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2933 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-04 14:11:33 +00:00
Dan Williams
6829447903 2007-10-04 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting.c
		- (nm_settings_verify): use #defines when possible rather than strings
		- (setting_connection_verify): ensure that 'name' and 'type' are valid
		- (setting_vpn_verify): tighter validity check on 'service_type'



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2932 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-04 14:09:59 +00:00
Dan Williams
27a1a0e95a 2007-10-04 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-settings.c
		- (nm_connection_settings_class_init): provide correct type for argument
			to the Updated signal so that dbus-glib knows how to marshal it



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2931 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-04 14:08:08 +00:00
Dan Williams
3874276f91 Ensure the GError is clear before using
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2930 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-04 14:07:25 +00:00
Dan Williams
a064cad490 2007-10-03 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-3-ethernet.c
		- (real_get_best_connection): don't create automatic connections
			internally; clients should provide a setting that applies to
			the device with 'autoconnect: True'.  Problem was that these
			internally auto-created connections don't have a proxy or service
			name becuase they weren't created by a settings daemon, and therefore
			clients have no idea what to do with them.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2929 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-03 18:54:40 +00:00
Dan Williams
fc8130ddd0 2007-10-03 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
	  src/nm-device-802-11-wireless.h
	  introspection/nm-device-802-11-wireless.xml
		- GetActiveNetworks -> GetAccessPoints
		- ActiveNetwork -> ActiveAccessPoint
		- NetworkAdded -> AccessPointAdded
		- NetowrkRemoved -> AccessPointRemoved

	* libnm-glib/nm-device-802-11-wireless.c
	  libnm-glib/nm-device-802-11-wireless.h
		- network-added signal -> access-point-added
		- network-removed signal -> access-point-removed
		- nm_device_802_11_wireless_get_active_network() ->
			nm_device_802_11_wireless_get_active_access_point()
		- nm_device_802_11_wireless_get_network_by_path() ->
			nm_device_802_11_wireless_get_access_point_by_path()
		- nm_device_802_11_wireless_get_networks() ->
			nm_device_802_11_wireless_get_access_points()

	* libnm-glib/libnm-glib-test.c
	  test/nm-tool.c
	  src/NetworkManagerPolicy.c
		- Fixups for Network -> AccessPoint



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2928 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-03 18:20:35 +00:00
Dan Williams
f9fd8667d1 2007-10-03 Dan Williams <dcbw@redhat.com>
Add a GetActiveConnections() method on the Manager object.

	* src/nm-manager.c
	  src/nm-manager.h
	  introspection/nm-manager.xml
		- (connection_get_settings_cb): keep connection type around too
		- (impl_manager_get_active_connections, add_one_connection_element):
			implement; returns all active connections and what devices they
			apply to

	* libnm-glib/nm-client.c
	  libnm-glib/nm-client.h
	  introspection/nm-manager-client.xml
		- (nm_client_get_devices): GPtrArray elements are allocated and owned
			by the caller; free here to avoid memory leak
		- (nm_client_get_active_connections): implement; return the list of
			active connections
		- (nm_client_free_active_connection_element): implement; free an element
			of the GSList returned by nm_client_get_active_connections()



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2927 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-03 14:48:25 +00:00
Dan Williams
d7f6aa32f9 2007-10-03 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- (nm_device_802_11_wireless_update_bssid): remove
		- (get_active_ap): new function; find the AP in the scan list which
			matches the current BSSID and SSID of the wireless device
		- (nm_device_802_11_periodic_update): get current AP using
			get_active_ap() and print AP roam messages



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2926 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-03 13:36:47 +00:00
Dan Williams
39910e16fe Clean up indentation; make implicit errors really errors
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2925 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-02 13:07:25 +00:00
Dan Williams
694278a5e9 Pass correct manager
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2924 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-02 02:55:58 +00:00
Dan Williams
b7e5539b8c 2007-10-01 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting.h
		- Add a 'timestamp' option to NMSettingConnection
		- Add a UINT64 type

	* libnm-util/nm-setting.c
		- (uint64_to_gvalue): new function
		- (nm_setting_populate_from_hash, nm_setting_hash,
		   default_setting_clear_secrets): handle UINT64 type
		- con_table: add 'timestamp' member



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2923 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-02 01:50:59 +00:00
Dan Williams
ee3f96cfd9 2007-10-01 Dan Williams <dcbw@redhat.com>
* src/nm-manager.c
		- (impl_manager_activate_device): ensure the D-Bus method sends a return
			value when the connection can be activated immediately



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2922 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-02 01:12:55 +00:00
Dan Williams
84cd0661af 2007-10-01 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-device.c
		- (nm_device_class_init): actually tell glib about the carrier-changed
			signal



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2921 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-02 01:12:14 +00:00
Dan Williams
7cdada8ed2 2007-10-01 Dan Williams <dcbw@redhat.com>
* configure.in
	  src/marshallers/Makefile.am
	  src/marshallers/nm-marshal.list
	  src/marshallers/nm-marshal-main.c
		- Consolidate glib marshallers into one place

	* src/dhcp-manager/Makefile.am
	  src/dhcp-manager/nm-dhcp-manager.c
	  src/supplicant-manager/Makefile.am
	  src/supplicant-manager/nm-supplicant-manager.c
	  src/supplicant-manager/nm-supplicant-interface.c
	  src/ppp-manager/Makefile.am
	  src/ppp-manager/nm-ppp-manager.c
	  src/vpn-manager/Makefile.am
	  src/vpn-manager/nm-vpn-connection.c
	  src/Makefile.am
		- Use consolidated marshallers

	* src/dhcp-manager/nm-dhcp-marshal.list
	  src/dhcp-manager/nm-dhcp-marshal-main.c
	  src/supplicant-manager/nm-supplicant-marshal-main.c
	  src/supplicant-manager/nm-supplicant-marshal.list
	  src/nm-marshal-main.c
	  src/nm-marshal.list
	  src/ppp-manager/nm-ppp-marshal-main.c
	  src/ppp-manager/nm-ppp-marshal.list
	  src/vpn-manager/nm-vpn-marshal-main.c
	  src/vpn-manager/nm-vpn-marshal.list
		- Remove



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2920 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-01 21:26:13 +00:00
Dan Williams
b947e5449d Add files that I forgot in the last commit
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2919 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-01 18:05:17 +00:00
Dan Williams
e5b834c1f9 2007-10-01 Dan Williams <dcbw@redhat.com>
* include/NetworkManagerVPN.h
		- define VPN connection state change reason codes

	* src/vpn-manager/Makefile.am
	  src/vpn-manager/nm-vpn-marshal.list
	  src/vpn-manager/nm-vpn-marshal-main.c
		- Add marshallers for StateChanged signal

	* introspection/nm-vpn-connection.xml
		- New Banner property
		- StateChanged signal now includes a 'reason' argument

	* src/vpn-manager/nm-vpn-connection.c
	  src/vpn-manager/nm-vpn-connection.h
		- Add a "Banner" property that contains the returned VPN server login
			banner (if any); valid only in the ACTIVATED state
		- (nm_vpn_connection_set_state, nm_vpn_connection_disconnect): now takes
			a 'reason' argument and emits that reason along with the
			state-changed signal
		- Fix up calls to nm_vpn_connection_set_state() to include a reason
		- (nm_vpn_connection_ip4_config_get): save banner for later
		- (nm_vpn_connection_get_banner, get_property,
		   nm_vpn_connection_class_init): implement Banner property

	* src/vpn-manager/nm-vpn-service.c
		- (nm_vpn_service_connections_stop): take a reason argument; copy the
			connection list because elements may get added/removed from it
			while iterating over the list
		- (connection_state_changed): signal now includes the 'reason' argument

	* libnm-glib/nm-vpn-connection.c
	  libnm-glib/nm-vpn-connection.h
		- (nm_vpn_connection_get_banner): new function
		- (state_changed_proxy): handle reason argument



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2916 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-01 17:57:36 +00:00
Tambet Ingo
485bcfe571 2007-09-28 Tambet Ingo <tambet@gmail.com>
* src/nm-manager.c:
        * src/nm-manager.h:
        Implement device activation through NMManager.
        Implement "pending device activation" here - If the connection
isn't found,
        we try to wait for up to 5 seconds for the connection to be
provided.
        Add NMConnectionType argument to "connection-added" and
"connection-removed"
        signals.
        (nm_manager_get): Remove. Finally.

        * src/nm-activation-request.c: 
        * src/nm-activation-request.h: 
        Remove all the deferred activation code.

        * src/nm-device.c: Remove all the deferred activation code. Once
        * the device
        activation is started, it's started. Update the activation
virtual function
        signature.

        * src/nm-device-interface.c:
        * src/nm-device-interface.h:
        Device activation now takes only NMActRequest argument.
        Don't expose device activation directly on dbus, it's supposed
to go through
        NMManager now.

        * src/NetworkManagerPolicy.c (nm_policy_device_change_check):
        * Make the code
        a bit more compact.
        Use the new device activation methods through NMManager.

        * introspection/nm-manager-client.xml: 
        * introspection/nm-manager.xml: 
        * libnm-glib/nm-client.c:
        * libnm-glib/nm-client.h:
        Add device activation method.
        
        * libnm-glib/nm-device.c: 
        * libnm-glib/nm-device.h: 
        * introspection/nm-device.xml: 
        Remove device activation method. It's done through NMManager
now.

        * src/vpn-manager/nm-vpn-manager.c (impl_vpn_manager_connect):
        * Use the shiny
        new (nm_manager_get_device_by_path) function, get rid of our own
)find_device).



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2915 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-01 15:38:39 +00:00
Dan Williams
a3e10d7da2 2007-09-28 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-vpn-connection.c
		- (nm_vpn_connection_get_state): try to update state if the current
			state is UNKNOWN



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2914 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-29 03:59:57 +00:00
Dan Williams
6f4a7ae0aa 2007-09-27 Dan Williams <dcbw@redhat.com>
Patch from Bill Nottingham

	* src/supplicant-manager/nm-supplicant-config.c
		- (ADD_STRING_VAL): use correct length for binary blobs when sending
			data to the supplicant



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2913 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-29 03:18:48 +00:00
Jeremy Katz
fd8daa2a04 and adjust what gets substituted
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2912 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-29 00:28:33 +00:00
Chris Aillon
09fa64c92b git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2911 4912f4e0-d625-0410-9fb7-b9a5a253dbdc 2007-09-28 16:01:19 +00:00
Dan Williams
a61ffae29a Warning fixes
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2910 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 03:50:02 +00:00
Dan Williams
592f4cc94d Fix typo
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2909 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 03:43:08 +00:00
Dan Williams
1e9da36cd6 Warning fixes
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2908 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 03:21:32 +00:00