diff options
| author | dautor <karlo98.m@gmail.com> | 2024-11-17 17:20:16 +0100 |
|---|---|---|
| committer | dautor <karlo98.m@gmail.com> | 2024-11-17 20:11:23 +0100 |
| commit | ec241a43c51dc0c8355bc7def98649d23ed49f77 (patch) | |
| tree | aef428453486393e0bc9217ec1c351e2cf2b7d6b /src/base/state.h | |
| parent | 9638b621fa567555e51c9bc61351a708221fd2ee (diff) | |
Implement ng_pipe link functionality
Links are just netgraph connections by default.
To convert a link to a ng_pipe, use setcfg command.
To go back to a direct link, use clrcfg command.
Diffstat (limited to 'src/base/state.h')
| -rw-r--r-- | src/base/state.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/base/state.h b/src/base/state.h index 82db1e0..5aa29bd 100644 --- a/src/base/state.h +++ b/src/base/state.h @@ -14,12 +14,9 @@ struct char *Interface; } typedef endpoint_configuration; -NAMED_ENUM(link_type, direct, pipe, ); - struct { endpoint_configuration Peer[2]; - link_type Type; } typedef link_configuration; struct @@ -27,16 +24,7 @@ struct char *Name; link_configuration Configuration; endpoint Peer[2]; - union - { - struct - { - } direct; - struct - { - u32 ID; - } pipe; - }; + u32 PipeID; } typedef link_; struct @@ -60,8 +48,6 @@ struct link_ *Link; } typedef experiment; -int FromString_link_type(char const *, link_type *); - void Free_endpoint(endpoint *); void Free_endpoint_configuration(endpoint_configuration *); void Free_link_configuration(link_configuration *); @@ -72,7 +58,6 @@ void Free_experiment(experiment *); char *Parse_endpoint(endpoint *, ucl_object_t const *, char const *Position); char *Parse_endpoint_configuration(endpoint_configuration *, ucl_object_t const *, char const *Position); -char *Parse_link_type(link_type *, ucl_object_t const *, char const *Position); char *Parse_link_configuration(link_configuration *, ucl_object_t const *, char const *Position); char *Parse_link(link_ *, ucl_object_t const *, char const *Position); char *Parse_node_configuration(node_configuration *, ucl_object_t const *, char const *Position); |
