summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/transport.h
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-06-19 13:42:37 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-06-27 17:24:10 +0000
commite971bc9bab2d1be9e129caa585448bb81dc6541f (patch)
tree5911a1dfb5905c6169d6798b2b1dca21e84c6862 /src/vnet/session/transport.h
parent706079c92abe2c218da15c13d2c933914af18d18 (diff)
session: Add transport vft protocol options
Type: refactor Change-Id: I4e0afc206e4871596c2ed8a6ca00914a379f1526 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/session/transport.h')
-rw-r--r--src/vnet/session/transport.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/vnet/session/transport.h b/src/vnet/session/transport.h
index fadb02d6710..978e3f072b1 100644
--- a/src/vnet/session/transport.h
+++ b/src/vnet/session/transport.h
@@ -19,6 +19,12 @@
#include <vnet/vnet.h>
#include <vnet/session/transport_types.h>
+typedef struct _transport_options_t
+{
+ transport_tx_fn_type_t tx_type;
+ transport_service_type_t service_type;
+} transport_options_t;
+
/*
* Transport protocol virtual function table
*/
@@ -74,8 +80,7 @@ typedef struct _transport_proto_vft
/*
* Properties
*/
- transport_tx_fn_type_t tx_type;
- transport_service_type_t service_type;
+ transport_options_t transport_options;
} transport_proto_vft_t;
/* *INDENT-ON* */