summaryrefslogtreecommitdiff
path: root/src/settings/plugins/example/plugin.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix typosYuri Chornoivan2013-10-191-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710505
* core: add monitor-connection-files=false and ReloadConnectionsDan Winship2013-06-141-14/+15
| | | | | | | | | Add a "monitor-connection-files" config option, which can be set to "false" to disable automatic reloading of connections on file change. To go with this, add a new ReloadConnections method on o.fd.NM.Settings that can be used to manually reload connections, and add an nm-cli command to call it.
* settings: fix unmanaging of InfiniBand devicesDan Winship2013-06-131-12/+1
| | | | | | | | | | | | | ifcfg-rh didn't let you unmanage an InfiniBand device by hardware address because it was recording the hardware address with uppercase letters, while nm_match_spec_hwaddr() required lowercase. Fix this by making nm_match_spec_hwaddr() match case-insensitively (and remove the manual lowercasing that several other places were doing to work around this.) keyfile didn't let you unmanage an InfiniBand device by hardware address because it only accepted ARPHRD_ETHER hardware addresses. Fix that by using nm_utils_hwaddr_valid() instead.
* settings: implement ability to add connections without saving them to diskDan Williams2013-05-281-4/+6
| | | | | | | | | | | | | | | We don't always want to immediately write new connections to disk, to facilitate "runtime" or "temporary" connections where an interface's runtime config isn't backed by on-disk config. Also, just because an interface's configuration is changed doesn't necessarily mean that new configuration should be written to disk either. Add D-Bus methods for adding new connections and for updating existing connections that don't immediately save the connection to disk. Also add infrastructure to indicate to plugins that the new connection shouldn't be immediately saved if the connection was added with the new method.
* settings: don't pass config_path to NMSettings and settings pluginsDan Winship2013-04-031-5/+4
| | | | | They can just call nm_config_get() now to get the config, and nm_config_get_path() to get its path.
* keyfile: fix reading unmanaged-devices for interface nameJiří Klimeš2013-03-141-1/+1
| | | | | [keyfile] unmanaged-devices=interface-name:eth0
* core: allow marking a device unmanaged by its interface nameDan Winship2013-03-131-11/+15
| | | | | | | Virtual devices often don't have stable hardware addresses. So allow for marking a device unmanaged via its interface name instead. https://bugzilla.gnome.org/show_bug.cgi?id=693684
* all: remove more pointless NULL checksDan Winship2013-02-131-5/+3
| | | | | | | | | | | | | | GObject creation cannot normally fail, except for types that implement GInitable and take a GError in their _new() method. Some NM types override constructor() and return NULL in some cases, but these generally only happen in the case of programmer error (eg, failing to set a mandatory property), and so crashing is reasonable (and most likely inevitable anyway). So, remove all NULL checks after calls to g_object_new() and its myriad wrappers. https://bugzilla.gnome.org/show_bug.cgi?id=693678
* examples: add an example system settings pluginDan Williams2012-05-071-0/+868