summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-08-27 10:19:54 +0200
committerThomas Haller <thaller@redhat.com>2021-08-31 16:34:02 +0200
commit92ba45727b69ec3a83c6f4a7568443eee94bef82 (patch)
tree4c8334ae90384e9efccb0d6333b16548b852e52d
parentca2b02bf987b23fdc633809bde12fe68cc0656fb (diff)
downloadNetworkManager-92ba45727b69ec3a83c6f4a7568443eee94bef82.tar.gz
platform/trivial: code style fix for NMPCacheIdType enum
-rw-r--r--src/libnm-platform/nmp-object.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/libnm-platform/nmp-object.h b/src/libnm-platform/nmp-object.h
index 021829db4b..83714c9835 100644
--- a/src/libnm-platform/nmp-object.h
+++ b/src/libnm-platform/nmp-object.h
@@ -120,10 +120,10 @@ typedef enum { /*< skip >*/
* the index NMP_CACHE_ID_TYPE_OBJECT_BY_IFINDEX with
* matching v4/v6 and ifindex -- or maybe not at all if it isn't visible.
* */
-typedef enum { /*< skip >*/
- NMP_CACHE_ID_TYPE_NONE,
+typedef enum {
+ NMP_CACHE_ID_TYPE_NONE,
- /* all the objects of a certain type.
+ /* all the objects of a certain type.
*
* This index is special. It is the only one that contains *all* object.
* Other indexes may consider some object as non "partitionable", hence
@@ -136,20 +136,20 @@ typedef enum { /*< skip >*/
* expose all links, even invisible ones. For addresses/routes, this
* distinction doesn't exist, as all addresses/routes that are alive
* are visible as well. */
- NMP_CACHE_ID_TYPE_OBJECT_TYPE,
+ NMP_CACHE_ID_TYPE_OBJECT_TYPE,
- /* index for the link objects by ifname. */
- NMP_CACHE_ID_TYPE_LINK_BY_IFNAME,
+ /* index for the link objects by ifname. */
+ NMP_CACHE_ID_TYPE_LINK_BY_IFNAME,
- /* indices for the visible default-routes, ignoring ifindex.
+ /* indices for the visible default-routes, ignoring ifindex.
* This index only contains two partitions: all visible default-routes,
* separate for IPv4 and IPv6. */
- NMP_CACHE_ID_TYPE_DEFAULT_ROUTES,
+ NMP_CACHE_ID_TYPE_DEFAULT_ROUTES,
- /* all the objects that have an ifindex (by object-type) for an ifindex. */
- NMP_CACHE_ID_TYPE_OBJECT_BY_IFINDEX,
+ /* all the objects that have an ifindex (by object-type) for an ifindex. */
+ NMP_CACHE_ID_TYPE_OBJECT_BY_IFINDEX,
- /* Consider all the destination fields of a route, that is, the ID without the ifindex
+ /* Consider all the destination fields of a route, that is, the ID without the ifindex
* and gateway (meaning: network/plen,metric).
* The reason for this is that `ip route change` can replace an existing route
* and modify its ifindex/gateway. Effectively, that means it deletes an existing
@@ -157,15 +157,15 @@ typedef enum { /*< skip >*/
* sends one RTM_NEWADDR notification without notifying about the deletion. We detect
* that by having this index to contain overlapping routes which require special
* cache-resync. */
- NMP_CACHE_ID_TYPE_ROUTES_BY_WEAK_ID,
+ NMP_CACHE_ID_TYPE_ROUTES_BY_WEAK_ID,
- /* a filter for objects that track an explicit address family.
+ /* a filter for objects that track an explicit address family.
*
* Note that currently on NMPObjectRoutingRule is indexed by this filter. */
- NMP_CACHE_ID_TYPE_OBJECT_BY_ADDR_FAMILY,
+ NMP_CACHE_ID_TYPE_OBJECT_BY_ADDR_FAMILY,
- __NMP_CACHE_ID_TYPE_MAX,
- NMP_CACHE_ID_TYPE_MAX = __NMP_CACHE_ID_TYPE_MAX - 1,
+ __NMP_CACHE_ID_TYPE_MAX,
+ NMP_CACHE_ID_TYPE_MAX = __NMP_CACHE_ID_TYPE_MAX - 1,
} NMPCacheIdType;
typedef struct {