summaryrefslogtreecommitdiff
path: root/src/nm-config.h
Commit message (Collapse)AuthorAgeFilesLines
...
* config: add macros NM_CONFIG_GET_DATA and NM_CONFIG_GET_DATA_ORIGThomas Haller2015-07-021-0/+4
|
* config: add nm_config_keyfile_set_string_list() utils functionThomas Haller2015-07-021-0/+5
|
* config: add NM_CONFIG_KEYFILE_LIST_SEPARATOR defineThomas Haller2015-07-021-0/+2
|
* config: change examples for command line arguments to system defaultThomas Haller2015-07-021-0/+1
|
* config: pass signals to nm_config_reload()Thomas Haller2015-06-251-1/+1
| | | | | | | Also react on SIGUSR1 and SIGUSR2, beside SIGHUP. Only for SIGHUP actually reload the configuration from disc. For the other signals only emit a config-changed signal.
* config: publish nm_config_keyfile_get_boolean() utility functionThomas Haller2015-06-051-0/+4
|
* connectivity: use default on missing connectivity.interval configThomas Haller2015-05-191-0/+2
| | | | | | | | | Manual page claims that a missing configuration option for connectivity interval means "300". That was not the case for a long time (never?). https://bugzilla.gnome.org/show_bug.cgi?id=723350 Based-on-patch-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
* config: make ignore-carrier option reloadableThomas Haller2015-05-051-2/+0
| | | | | | | | Only move the ignore-carrier option from NMConfig to NMConfigData. The ignore-carrier option is still immutable after startup. https://bugzilla.gnome.org/show_bug.cgi?id=748050
* config: move dns mode configuration to NMConfigDataLubomir Rintel2015-02-251-1/+0
| | | | | This will make is possible for the NMDnsManager to watch for configuration changes.
* core: unify parsing of device specs using nm_match_spec_split()Thomas Haller2015-02-241-0/+1
| | | | | | | | | | | | There are three configuration options that contain device specs: 'main.ignore-carrier', 'main.no-auto-default', and 'keyfile.unmanaged-devices'. Unify the parsing of them by splitting the device spec with nm_match_spec_split(). This changes behavior for parsing of these properties. Also get rid of logging warnings when parsing 'keyfile.unmanaged-devices'.
* config: use flags argument in config-changed signal instead of a hash tableth/rh1066697_reload_configThomas Haller2015-02-031-5/+2
|
* config: move no-auto-default to NMConfigDataThomas Haller2015-02-031-3/+4
| | | | | | | | With this change, NMConfig is really immutable and all modifyable parts migrated to NMConfigData. Another advantage is that components can now subscribe to NMConfig changes to pickup changes to no-auto-default.
* config: move keyfile values to NMConfigDataThomas Haller2015-02-031-2/+1
|
* config: move main_file and description to NMConfigDataThomas Haller2015-02-031-2/+1
| | | | | Every reload might change the main_file and description. Move those properties to NMConfigData.
* config: refactor to inject NMConfigCmdLineOptions to NMConfig constructorThomas Haller2015-02-031-0/+3
|
* config: refactor nm_config_new() by extracting function read_entire_config()Thomas Haller2015-02-031-0/+2
|
* config/trivial: rename variables for configuration fileThomas Haller2015-02-031-2/+2
| | | | | The name "nm_conf_path" and cli.config_path" were not consistent. Rename them both to "config_main_file".
* config: implement reloading of connectivity parametersThomas Haller2015-02-031-0/+2
|
* config: add support for reloading of configurationThomas Haller2015-02-031-0/+7
| | | | | | | | | | No actual reloading is yet implemented. Later we will decide on specific configuration parameters where we support reloading. They must be then implemented one-by-one. Some configuration parameters can be set via command line. If a parameter is set from command line, the original value from command line will still be preserved after reloading.
* config: use NMConfigData in NMConfigThomas Haller2015-02-031-3/+3
|
* config: add nm_config_setup() to initialize config singletonThomas Haller2015-02-031-2/+9
| | | | | | | | | Make nm_config_new() usable without accessing static/singleton data. nm_config_setup() is now used to initialize the singleton. Still, you must not call nm_config_get() before calling nm_config_setup() or after freeing the provided singleton instance.
* config: forward declare NMConfig in nm-types.hThomas Haller2015-02-031-2/+2
|
* core: add option to quit when startup is complete (rh #863515) (rh #1083683)Dan Williams2014-11-071-0/+1
| | | | | | | | | | Cloud setups often have a never-changing setup and since every cycle counts, they don't really want a management process running in the background after network setup is complete. Since it's likely a VM, it's not like links are going to go up/down very often. Add a new "configure-quit=true/false" config option which, when set to true, will quit NetworkManager after startup and initial configuration is complete.
* auth: rework polkit autorization to use DBUS interface directlyThomas Haller2014-09-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This makes NetworkManager independent of <polkit/polkit.h> development headers and libpolkit-gobject-1.so library. Instead communicate directly with polkit using its DBUS interface. PolicyKit support is now always compiled in. You can control polkit authorization with the configuration option [main] auth-polkit=yes|no If the configure option is omitted, a build time default value is used. This default value can be set with the configure option --enable-polkit. This commit adds a new class NMAuthManager that reimplements the relevant DBUS client parts. It takes source code from the polkit library. https://bugzilla.gnome.org/show_bug.cgi?id=734146 Signed-off-by: Thomas Haller <thaller@redhat.com>
* all: fix up multiple-include-guard definesDan Winship2014-08-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Previously, src/nm-ip4-config.h, libnm/nm-ip4-config.h, and libnm-glib/nm-ip4-config.h all used "NM_IP4_CONFIG_H" as an include guard, which meant that nm-test-utils.h could not tell which of them was being included (and so, eg, if you tried to include nm-ip4-config.h in a libnm test, it would fail to compile because nm-test-utils.h was referring to symbols in src/nm-ip4-config.h). Fix this by changing the include guards in the non-API-stable parts of the tree: - libnm-glib/nm-ip4-config.h remains NM_IP4_CONFIG_H - libnm/nm-ip4-config.h now uses __NM_IP4_CONFIG_H__ - src/nm-ip4-config.h now uses __NETWORKMANAGER_IP4_CONFIG_H__ And likewise for all other headers. The two non-"nm"-prefixed headers, libnm/NetworkManager.h and src/NetworkManagerUtils.h are now __NETWORKMANAGER_H__ and __NETWORKMANAGER_UTILS_H__ respectively, which, while not entirely consistent with the general scheme, do still mostly make sense in isolation.
* core: merge src/config, src/logging, src/posix-signals into src/Dan Winship2014-07-301-0/+78
| | | | | | | | | Some subdirectories of src/ encapsulate large chunks of functionality, but src/config/, src/logging/, and src/posix-signals/ are really only separated out because they used to be built into separate sub-libraries that were needed either for test programs, or to prevent circular dependencies. Since this is no longer relevant, simplify things by moving their files back into the main source directory.
* config: move NMConfig into its own subdirectory/libraryDan Winship2013-04-031-77/+0
| | | | | Also, remove the unused NMConfigError, and add a config-parsing test program.
* config: convert NMConfig to objectThomas Bechtold2013-03-111-3/+21
|
* Fix names of error enum valuesDan Winship2012-03-121-1/+1
| | | | | | | | | | | | | | When NM was registering all of its enum types by hand, it was using NamesLikeThis rather than the default names-like-this for the "nick" values. When we switched to using glib-mkenums, this resulted in dbus-glib using different strings for the D-Bus error names, causing compatibility problems. Fix this by using glib-mkenums annotations to manually fix all the enum values back to what they were before. (This can't be done in a more automated way, because the old names aren't 100% consistent. Eg, "UNKNOWN" frequently becomes "UnknownError" rather than just "Unknown".)
* core: add internet connectivity checkThomas Bechtold2012-02-271-0/+6
| | | | | | | | * use libsoup to compare a http response from a given uri with a given response (use g_str_has_prefix () to compare) * do periodically check the connectivity. Check interval is configurable * check connectivity when device state change from/to NM_DEVICE_STATE_ACTIVATED
* Use glib-mkenums to generate enum typesDan Winship2012-02-151-2/+0
| | | | | | | | | | | | | | | | | | | Rather than generating enum classes by hand (and complaining in each file that "this should really be standard"), use glib-mkenums. Unfortunately, we need a very new version of glib-mkenums in order to deal with NM's naming conventions and to fix a few other bugs, so just import that into the source tree temporarily. Also, to simplify the use of glib-mkenums, import Makefile.glib from https://bugzilla.gnome.org/654395. To avoid having to run glib-mkenums for every subdirectory of src/, add a new "generated" directory, and put the generated enums files there. Finally, use Makefile.glib for marshallers too, and generate separate ones for libnm-glib and NetworkManager.
* core: split out config file handlingDan Williams2011-09-271-0/+55
Make config file stuff somewhat clearer and easier to understand, and possibly easier to extend later.