diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-05-09 11:26:31 +0200 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-05-09 11:26:31 +0200 |
commit | 3e2cd52a6ae2345a44f39761beb5315a45832d95 (patch) | |
tree | 14f55c9fd58003faed83a3d47756a46d97c09322 /hicn-light/src/hicn/io/ioOperations.c | |
parent | c8e6bdf4282c34fd3199cdeec42895cbbc05d9c1 (diff) |
[HICN-192] Add interface to administratively set a connection up and down
Change-Id: I8d00262fd8601328a50d0e2a6bef952031246818
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/io/ioOperations.c')
-rw-r--r-- | hicn-light/src/hicn/io/ioOperations.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/io/ioOperations.c b/hicn-light/src/hicn/io/ioOperations.c index a9b763448..5693f86c5 100644 --- a/hicn-light/src/hicn/io/ioOperations.c +++ b/hicn-light/src/hicn/io/ioOperations.c @@ -66,3 +66,20 @@ Ticks ioOperations_SendProbe(IoOperations *ops, unsigned probeType, uint8_t *message) { return ops->sendProbe(ops, probeType, message); } + + +connection_state_t ioOperations_GetState(const IoOperations *ops) { + return ops->getState(ops); +} + +void ioOperations_SetState(IoOperations *ops, connection_state_t state) { + ops->setState(ops, state); +} + +connection_state_t ioOperations_GetAdminState(const IoOperations *ops) { + return ops->getAdminState(ops); +} + +void ioOperations_SetAdminState(IoOperations *ops, connection_state_t admin_state) { + ops->setAdminState(ops, admin_state); +} |