summaryrefslogtreecommitdiff
path: root/libnm-util/nm-param-spec-specialized.c
Commit message (Collapse)AuthorAgeFilesLines
* all: require glib 2.40lr/glib-2-40Lubomir Rintel2018-01-181-2/+0
| | | | | | RHEL 7.1 and Ubuntu 14.04 LTS both have this. https://bugzilla.gnome.org/show_bug.cgi?id=792323
* build: don't link against libm.soThomas Haller2017-03-231-3/+6
| | | | | | | | | There are very few places where we actually use floating point or #include <math.h>. Drop that library, although we very likely still get it as indirect dependency (e.g. on my system it is still dragged in by libsystemd.so, libudev.so and libnl-3.so).
* all: modify line separator comments to be 80 chars wideThomas Haller2016-10-031-3/+3
| | | | sed 's#^/\*\{5\}\*\+/$#/*****************************************************************************/#' $(git grep -l '\*\{5\}' | grep '\.[hc]$') -i
* all: cleanup includes and let "nm-default.h" include "config.h"Thomas Haller2016-02-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - All internal source files (except "examples", which are not internal) should include "config.h" first. As also all internal source files should include "nm-default.h", let "config.h" be included by "nm-default.h" and include "nm-default.h" as first in every source file. We already wanted to include "nm-default.h" before other headers because it might contains some fixes (like "nm-glib.h" compatibility) that is required first. - After including "nm-default.h", we optinally allow for including the corresponding header file for the source file at hand. The idea is to ensure that each header file is self contained. - Don't include "config.h" or "nm-default.h" in any header file (except "nm-sd-adapt.h"). Public headers anyway must not include these headers, and internal headers are never included after "nm-default.h", as of the first previous point. - Include all internal headers with quotes instead of angle brackets. In practice it doesn't matter, because in our public headers we must include other headers with angle brackets. As we use our public headers also to compile our interal source files, effectively the result must be the same. Still do it for consistency. - Except for <config.h> itself. Include it with angle brackets as suggested by https://www.gnu.org/software/autoconf/manual/autoconf.html#Configuration-Headers
* core: final gdbus portingDan Winship2015-08-101-0/+1
| | | | | | | | | | Port remaining bits to gdbus and remove stray dbus-glib references Drop the dbus-glib version check from configure, since nothing depends on new dbus-glib any more. Move nm-dbus-glib-types.h and nm-gvaluearray-compat.h from include/ to libnm-util/ since they are now only used by libnm-util and libnm-glib.
* all: make use of new header file "nm-default.h"Thomas Haller2015-08-051-1/+1
|
* all: rename nm-glib-compat.h to nm-glib.h, use everywhereDan Winship2015-07-241-1/+1
| | | | | | | | | | | | | | | | Rather than randomly including one or more of <glib.h>, <glib-object.h>, and <gio/gio.h> everywhere (and forgetting to include "nm-glib-compat.h" most of the time), rename nm-glib-compat.h to nm-glib.h, include <gio/gio.h> from there, and then change all .c files in NM to include "nm-glib.h" rather than including the glib headers directly. (Public headers files still have to include the real glib headers, since nm-glib.h isn't installed...) Also, remove glib includes from header files that are already including a base object header file (which must itself already include the glib headers).
* all: remove #if GLIB_CHECK_VERSION conditionals around g_type_init()Thomas Haller2015-07-121-3/+1
| | | | g_type_init() is now provided by nm-glib-compat.h as nm_g_type_init().
* all: consistently include config.hDan Winship2014-11-131-0/+2
| | | | | | | | | | | config.h should be included from every .c file, and it should be included before any other include. Fix that. (As a side effect of how I did this, this also changes us to consistently use "config.h" rather than <config.h>. To the extent that it matters [which is not much], quotes are more correct anyway, since we're talking about a file in our own build tree, not a system include.)
* libnm-util, libnm-glib: whitespace fixesDan Winship2014-07-151-14/+14
| | | | Fix indentation, kill trailing whitespace, split some long lines.
* libnm-util, libnm-glib: standardize copyright/license headersDan Winship2014-07-151-5/+2
| | | | | | | | | | | | | | | | | | - Remove list of authors from files that had them; these serve no purpose except to quickly get out of date (and were only used in libnm-util and not libnm-glib anyway). - Just say "Copyright", not "(C) Copyright" or "Copyright (C)" - Put copyright statement after the license, not before - Remove "NetworkManager - Network link manager" from the few files that contained it, and "libnm_glib -- Access network status & information from glib applications" from the many files that contained it. - Remove vim modeline from nm-device-olpc-mesh.[ch], add emacs modeline to files that were missing it.
* all: g_type_init() has been deprecated in GLib 2.35.0Jiří Klimeš2014-05-271-0/+3
| | | | | g_type_init() deprecation: https://bugzilla.gnome.org/show_bug.cgi?id=686161
* trivial: whitespace fixThomas Haller2013-11-071-1/+1
| | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
* core: cleanup freeing of glib collections of pointersThomas Haller2013-10-221-4/+2
| | | | | | | | | | | | | | | | When freeing one of the collections such as GArray, GPtrArray, GSList, etc. it is common that the items inside the connections must be freed/unrefed too. The previous code often iterated over the collection first with e.g. g_ptr_array_foreach and passing e.g. g_free as GFunc argument. For one, this has the problem, that g_free has a different signature GDestroyNotify then the expected GFunc. Moreover, this can be simplified either by setting a clear function (g_ptr_array_set_clear_func) or by passing the destroy function to the free function (g_slist_free_full). Signed-off-by: Thomas Haller <thaller@redhat.com>
* all: use G_VALUE_INIT to initialize GValue variablesJiří Klimeš2013-03-251-17/+17
| | | | | It makes the initializations more explicit. G_VALUE_INIT is available since glib 2.30, and NM now require glib >= 2.32
* libnm-util: clean up some private symbolsDan Williams2012-07-231-4/+4
| | | | | | Symbols starting with "nm" are expected to be exported, even though these are not since they're static. So don't prefix them with nm.
* core: fix deprecated usage of g_value_[get|set]_char() (bgo #662694)Dan Williams2011-10-281-6/+2
|
* build: fix glib version check for g_value_get_schar() (bgo #661271)Colin Walters2011-10-121-1/+1
| | | | | The function appeared in glib master (which was 2.31.0); it's not in glib-2-30 branch.
* build: glib 2.30.0 doesn't have g_value_get_schar yetLudwig Nussel2011-10-101-1/+1
|
* libnm-util: fix deprecated g_value_get_char() for glib 2.29.90 and laterDan Williams2011-10-031-0/+5
|
* libnm-util: rename symbol to fix export checkDan Williams2011-07-191-3/+3
| | | | | | | | | The export check looks for symbols that begin with "nm_" (except for GObject class stuff) which indicate that the symbol should be exported. If the symbols is 'l' (local) as reported by objdump that probably means we forgot to add it to the .ver file and it really should be exported. nm_gvalue_dup() shouldn't be exported though, so rename it such that it's obviously internal.
* libnm-util: fix symbol export checks to catch un-exported ones tooDan Williams2011-05-051-49/+49
| | | | | | | | | | | | | | | | | | | | | | The current check caught stuff in the .ver file that was outdated, but didn't quite get stuff that was supposed to be exported but wasn't, in some cases. Update the regex to ensure that symbols that are not exported, but that start with "nm_" (and aren't GObject boilerplate) get flagged during the check. Update internal code to return to a previous pattern of treating symbols that start with "_" internal, and expecting symbols that start with "nm_" to be exported. Also fixes cases where random glibc symbols would get flagged: 00040ff4 l O *ABS* 00000000 .hidden _GLOBAL_OFFSET_TABLE_ 00041380 l O .data 00000000 .hidden __dso_handle 000406e8 l O .dtors 00000000 .hidden __DTOR_END__ 0000fbe4 l F .text 00000000 .hidden __i686.get_pc_thunk.cx 0002f980 l F .text 00000014 .hidden __stack_chk_fail_local 0000b1e7 l F .text 00000000 .hidden __i686.get_pc_thunk.bx 00040e60 l O *ABS* 00000000 .hidden _DYNAMIC
* libnm-util: convert from old IP6 address format to newDan Williams2010-04-191-3/+15
| | | | | | | Ensure it still works correctly if something tries to set the 'addresses' property using the old GType. Also make sure that the various IP6 address comparison operations and string conversion functions handle the gateway.
* libnm-util: add IPv6 comparison functionsJirka Klimes2010-01-051-2/+205
|
* 2008-10-01 Dan Williams <dcbw@redhat.com>Dan Williams2008-10-011-5/+26
| | | | | | | | | | | | | | | Fix setting value comparison issue that caused some settings to look the same when they were really different (rh #464417) * libnm-util/nm-param-spec-specialized.c - (type_is_fixed_size): return fundamental size of the fixed type too - (nm_gvalues_compare_collection): use the fundamental fixed type size in the comparison so that the _entire_ fixed type collection gets compared rather than just the first 'len1' bytes git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4134 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* Rename private nm_* functions to _nm_*Michael Biebl2008-08-261-2/+2
| | | | git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4012 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2008-07-27 Dan Williams <dcbw@redhat.com>Dan Williams2008-07-271-1/+24
| | | | | | | | | * libnm-util/* - Relicense to LGPLv2+ git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3859 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2007-11-26 Dan Williams <dcbw@redhat.com>Dan Williams2007-11-261-2/+6
| | | | | | | | * Fix warnings so everything compiles with --enable-more-warnings git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3108 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2007-11-07 Tambet Ingo <tambet@gmail.com>Tambet Ingo2007-11-071-0/+710
Rework NMSetting structures: Move each setting to it's own file. Convert to GObject. Remove home grown setting types and use GTypes. Use GObject property introspection for hash conversion, enumerating properties, etc. * libnm-util/nm-setting-connection.[ch] * libnm-util/nm-setting-ip4-config.[ch] * libnm-util/nm-setting-ppp.[ch] * libnm-util/nm-setting-vpn.[ch] * libnm-util/nm-setting-vpn-properties.[ch] * libnm-util/nm-setting-wired.[ch] * libnm-util/nm-setting-wireless.[ch] * libnm-util/nm-setting-wireless-security.[ch] New files, each containing a setting. * libnm-util/nm-setting-template.[ch]: A template for creating * new settings. To use it, just replace 'template' with the new setting name, and you're half-way done. * libnm-util/nm-setting.c: Convert to GObject and use GObject introspection instead of internal types and tables. * libnm-util/nm-connection.c: Adapt the new NMSetting work. * libnm-util/nm-param-spec-specialized.[ch]: Implement. Handles GValue types defined by dbus-glib for composed types like collections, structures and maps. * src/*: The API of NMSetting and NMConnection changed a bit: * Getting a setting from connection takes the setting type now. Also, since the settings are in multiple files, include relevant settings. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3068 4912f4e0-d625-0410-9fb7-b9a5a253dbdc