aboutsummaryrefslogtreecommitdiff
path: root/src/network.cpp
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-10 21:32:45 -0400
committerDeterminant <[email protected]>2019-06-10 21:32:45 -0400
commit299d1a3cf7f7ab2465dccc87dde578044c9b040b (patch)
treeaaf7d58d929fdc564b94dccc6a22576d58bf822f /src/network.cpp
parent66c711cf653b082ae07e1119417dcb3461039c80 (diff)
...
Diffstat (limited to 'src/network.cpp')
-rw-r--r--src/network.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network.cpp b/src/network.cpp
index c14531c..673cc24 100644
--- a/src/network.cpp
+++ b/src/network.cpp
@@ -54,6 +54,10 @@ void msgnetwork_reg_conn_handler(msgnetwork_t *self,
void msgnetwork_start(msgnetwork_t *self) { self->start(); }
+void msgnetwork_terminate(msgnetwork_t *self, const msgnetwork_conn_t *conn) {
+ self->terminate(*conn);
+}
+
msgnetwork_t *msgnetwork_conn_get_net(const msgnetwork_conn_t *conn) {
return (*conn)->get_net();
}