network: introduce manager_serialize()/deserialize()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 1 Nov 2024 21:03:09 +0000 (06:03 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Nov 2024 01:21:55 +0000 (10:21 +0900)
commitc321d332e3b2478d4d1d6faf71fd4639016e180d
treeac4380a8b3371dcc7c90fed80d683e72fffbaaf2
parent9466fe014f6083825ed819fe17bf98f72baa3af9
network: introduce manager_serialize()/deserialize()

Currently, only configuration sources and providers of addresses and
routes are serialized/deserialized.
This should mostly not change behavior, as dynamic (except for DHCPv4)
configurations will be dropped before stopping networkd, and for DHCPv4
protocol, we have already had another logic to handle DHCPv4
configurations.
Preparation for later commits.
src/network/meson.build
src/network/networkd-json.c
src/network/networkd-json.h
src/network/networkd-manager.c
src/network/networkd-manager.h
src/network/networkd-serialize.c [new file with mode: 0644]
src/network/networkd-serialize.h [new file with mode: 0644]
src/network/networkd.c