Commit Graph

8762 Commits

Author SHA1 Message Date
Dan Williams
54918e32e4 libnm-util: add nm_connection_diff()
Returns a list of keys that differ between the settings in each
connection.  nm_connection_compare() can't do that.
2011-02-22 23:36:43 -06:00
Jiří Klimeš
5444a35693 dns: fix up updating resolv.conf (rh #672282) 2011-02-22 18:30:29 +01:00
Dan Williams
efd80ab4bc docs: ensure dbus spec can be copied to html dir (bgo #642853) 2011-02-21 18:26:55 -06:00
Giovanni Campagna
e77acd43b6 libnm-glib: more GObject introspection fixes (bgo #181415)
Fix some annotations and add the necessary ones for new functions.
2011-02-21 18:11:21 -06:00
Giovanni Campagna
3b57350dd6 libnm-glib: add signal documentation for NMRemoteConnection 2011-02-21 18:08:41 -06:00
Dan Williams
8bc774fe16 libnm-util: remove VPNIterFunc backwards compat define 2011-02-21 18:04:49 -06:00
Dan Williams
a096d3a676 build: allow disabling PPP support at build time
Pass --enable-ppp=no and pppd headers won't be required, and the
pppd plugin won't be built.  Here's to you, Gentoo!
2011-02-21 17:48:08 -06:00
Dan Williams
b712274e86 core: fix dbus-glib crash on shutdown with systemd
It's really dbus-glib's fault, but the problem seems to be that when
short-lived D-Bus calls are made (with dbus_g_proxy_call_no_reply)
and the service is activated, then quits immediately like the
dispatcher does, there's not enough time for internal dbus-glib
housekeeping.  The GetNameOwner call that's kicked off when the
DBusGProxy is created hasn't returned by the time the proxy is
being unrefed, so the proxy doesn't end up on the
unassociated_proxies list.  But when the proxy is destroyed, and
it destroys it's DBusGProxyManager, the manager expects that
the proxy is on unassociated_proxies.  Thus the crash.

I'm not entirely sure why we hit this only at shutdown with
systemd; it could be that systemd is killing the bus daemon at
the same time as we're running the dispatcher and that's why the
GetNameOwner call doesn't complete.

Work around all this by expecting a message return, which works fine
during normal operation, but on shutdown allows us to avoid urefing
the proxy until everything in dbus-glib has been handled, which at
shutdown time really just means leaking it.  But then we exit, so
it's cleaned up anyway.
2011-02-21 17:18:41 -06:00
Jiří Klimeš
106afbae50 cli: libnm-glib now uses enums for wired and WiFi capabilities 2011-02-21 16:38:02 +01:00
Jiří Klimeš
6982337f2f cli: use libnm-glib's nm_device_get_device_type() to get device type
And implement device_type_to_string() to convert the type to a string.
2011-02-21 16:28:51 +01:00
Jiří Klimeš
40b14e3c46 cli: libnm-glib now uses enums for NMAccessPoint flags accessors 2011-02-21 15:41:12 +01:00
Dan Williams
56e19a7895 docs: fix migration TOC to include individual sections
We don't need to nest as deeply and we want the individual migration
bullet points to be top-level sections anyway.
2011-02-18 15:02:25 -06:00
Dan Williams
10c57a0562 docs: add in-progress section on migrating to NM 0.9 2011-02-18 14:58:03 -06:00
Dan Williams
dd12571eb8 docs: explain secrets flags in settings specification 2011-02-18 14:07:11 -06:00
Dan Williams
b1c1f0c359 docs: don't wordwrap setting keys or types in setting specification 2011-02-18 12:56:41 -06:00
Dan Williams
fe5d59bc87 libnm-glib: nm_device_wifi_get_capabilities() should return NMDeviceWifiCapabilities 2011-02-18 12:01:46 -06:00
Dan Williams
7a00376b30 libnm-glib: nm_device_get_capabilities() should return NMDeviceCapabilities 2011-02-18 11:59:27 -06:00
Dan Williams
5c8d27b07b libnm-glib: add nm_device_get_device_type() 2011-02-18 11:57:13 -06:00
Dan Williams
24c429e29e libnm-glib: return enums for NMAccessPoint flags accessors 2011-02-18 11:42:55 -06:00
Richard Hughes
e765fce2b4 test: don't crash libnm-glib if there are no devices for an active connection 2011-02-18 11:31:45 -06:00
Richard Hughes
0b8dd709b0 test: don't crash libnm-glib-test if there aren't any APs 2011-02-18 11:30:36 -06:00
Dan Williams
6ef8a6d12d docs: convert settings specification to docbook 2011-02-18 11:25:48 -06:00
Dan Williams
65e6f27276 libnm-util: fix description of bluetooth setting type property
DUN certainly is supported these days...
2011-02-18 11:23:21 -06:00
Dan Williams
1574112e62 libnm-util: clarify WiMAX network-name property description 2011-02-16 22:39:38 -06:00
Dan Williams
d4b3bde755 docs: add WiMAX setting to settings spec 2011-02-16 22:36:44 -06:00
Dan Williams
0a3a4222af docs: fix distcheck 2011-02-16 16:39:43 -06:00
Dan Williams
8b2a274660 examples: fix distcheck 2011-02-16 16:36:22 -06:00
Dan Williams
a90a7f7dd2 docs: create new master NM documentation module 2011-02-16 16:24:16 -06:00
Dan Williams
c17721b360 libnm-glib: allow manual processing of properties changed events
Mostly for handling the GetAll response.
2011-02-16 15:04:39 -06:00
Dan Williams
ccfc034a0d libnm-glib: make _nm_object_cache_get() return a referenced object 2011-02-16 15:04:39 -06:00
Jiří Klimeš
a9a30eb08c cli: compare nmcli and NM versions
nmcli gets NM version and compares it with its own and complains
when they differ. This is to indicate that the results are not reliable,
because the API could differ. '--nocheck' switches the checks off.
2011-02-16 17:36:50 +01:00
Jiří Klimeš
25ae47598c cli: add VERSION field to 'nmcli nm' command 2011-02-16 14:43:15 +01:00
Jiří Klimeš
e7d2eb43f7 libnm-glib: add code to get "Version" property 2011-02-16 14:34:19 +01:00
Dan Williams
11a68133c4 api: add NM_STATE_CONNECTED back to make life easier
alias for NM_STATE_CONNECTED_GLOBAL
2011-02-15 16:55:42 -06:00
Dan Williams
47bc080af8 settings: fix connection removed signal for default wired connection
Somewhat confusingly named signals...
2011-02-15 12:27:52 -06:00
Dan Williams
745c262568 Revert "core: don't trap SIGINT"
This reverts commit 3a47e57f68.

Forgot Ctl+C does SIGINT, which we use a ton when developing.  Oops!
2011-02-15 12:24:05 -06:00
Dan Williams
74f25416fe examples: add an example for adding a new connection with libnm-glib 2011-02-15 12:23:05 -06:00
Dan Williams
98d5da84aa examples: rename add-connection-glib 2011-02-15 12:09:25 -06:00
Dan Williams
ab3816ee21 examples: fix up add-connection-glib for recent API changes
AddConnection returns the object path of the new connection.
2011-02-15 12:06:13 -06:00
Dan Williams
9d79387966 ifnet: clean up after tests by removing generated files 2011-02-15 12:04:42 -06:00
Dan Williams
5bcb0832e5 settings: move system-settings/plugins => src/settings/plugins 2011-02-15 11:55:34 -06:00
Dan Williams
3a47e57f68 core: don't trap SIGINT
Let debuggers handle it like they're supposed to.
2011-02-15 11:35:56 -06:00
Jiří Klimeš
d6905a8d66 libnm-glib: add GError parameter to _nm_object_get_... functions
It allows us to get the error back and have control over printing
the error.
2011-02-15 17:34:11 +01:00
Dan Williams
ec115ed442 api: add additional NM daemon states
DISCONNECTING: the only active network connection is now being disconnected
LOCAL, SITE, GLOBAL: one-stop items for level of connectivity, which
we'll use to show when we think we're actually connected to the internet
or behind a captive portal or something
2011-02-14 17:55:27 -06:00
Dan Williams
a661f78890 api: remove deprecated methods and signals
sleep, wake, StateChange, all deprecated in 0.8, are now removed.

sleep & wake are replaced with the Sleep() method, while
StateChange is replaced with the StateChanged signal which has
the same arguments.
2011-02-14 17:33:16 -06:00
Dan Williams
85e87bd509 api: update version and copyright info 2011-02-14 17:32:35 -06:00
Dan Williams
7971227011 api: add two more device states (IP_CHECK and DEACTIVATING)
We'll use IP_CHECK for detecting whether we're behind a captive
portal or on a network that does not have access to the Internet.
We'll probably run some variety of plugins during this stage to
help detect this, and possibly handle it for us (auto-login to
captive portal for example).

DEACTIVATING will be used for tearing down network shares or
cleanly closing network sessions when we're able to clean up
an activation.  ie, "pre-down" for Debian.
2011-02-14 17:09:36 -06:00
Dan Williams
915dd85d23 api: update device types to match NetworkManager.h 2011-02-14 16:37:50 -06:00
Dan Williams
54164f475b api: clean up NetworkManager.h
Make things enums, and explicitly enumerate the device types so we
don't have the same API breakage again as we did with the auto-merge
of the wimax code.
2011-02-14 16:37:50 -06:00
Dan Williams
5beb18ad09 api: fix API break due to WiMAX merge
Yeah, we broke API with 0.9, but this one was just pointless.
2011-02-14 16:37:50 -06:00