diff options
author | Grant Erickson <gerickson@nuovations.com> | 2023-12-06 11:00:46 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2023-12-08 01:55:44 +0100 |
commit | a30137030c670b503c7b5aa5398aa80c3d405135 (patch) | |
tree | 35b922e5da9ed41e14d037976a10fad11e3e756b | |
parent | f41bc16eafa34e2922d2201a6fbcb0d633fd8613 (diff) | |
download | connman-a30137030c670b503c7b5aa5398aa80c3d405135.tar.gz |
connection: Document 'gateway_config_ops'.
This adds documentation to the 'gateway_config_ops' structure and its
instantiation in 'gateway_config'.
-rw-r--r-- | src/connection.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c index 2022a6472..8d2ac801c 100644 --- a/src/connection.c +++ b/src/connection.c @@ -163,6 +163,10 @@ enum gateway_config_type { CONNMAN_GATEWAY_CONFIG_TYPE_LOW_PRIORITY_DEFAULT = 2 }; +/** + * Gateway configuration function pointers for IP configuration + * type-specific route set/clear/add/delete operations. + */ struct gateway_config_ops { bool (*compare_subnet)(int index, const char *address); @@ -214,6 +218,11 @@ struct gateway_config { * See #gateway_config_type. */ enum gateway_config_type type; + + /** + * A pointer to immutable function pointers for route + * set/clear/add/delete operations. + */ const struct gateway_config_ops *ops; char *gateway; |