summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/dt.h
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2017-05-23 13:38:03 +0200
committerdimitri staessens <[email protected]>2017-05-24 11:23:07 +0200
commit3d887b172c37c4418c6173048e6a317eb0c36e57 (patch)
treee251a93bb3f573fc5010b3be418fbfaa876c9c7c /src/ipcpd/normal/dt.h
parent78c9a10950ee93f90d83ab727b1d1d3430e2effa (diff)
downloadouroboros-3d887b172c37c4418c6173048e6a317eb0c36e57.tar.gz
ouroboros-3d887b172c37c4418c6173048e6a317eb0c36e57.zip
ipcpd: Allow registering protocol machines with DT
Other protocol machines now have to register on top of the DT AE. This allows multiple instances of the same protocol machine and avoids preallocating fds for each protocol machine instance.
Diffstat (limited to 'src/ipcpd/normal/dt.h')
-rw-r--r--src/ipcpd/normal/dt.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ipcpd/normal/dt.h b/src/ipcpd/normal/dt.h
index 52760154..0e1a8cc3 100644
--- a/src/ipcpd/normal/dt.h
+++ b/src/ipcpd/normal/dt.h
@@ -37,9 +37,12 @@ int dt_start(void);
void dt_stop(void);
+int dt_reg_ae(void * ae,
+ int (* func)(void * ae, struct shm_du_buff * sdb));
+
int dt_write_sdu(uint64_t dst_addr,
qoscube_t qc,
- int np1_fd,
+ int res_fd,
struct shm_du_buff * sdb);
#endif /* OUROBOROS_IPCPD_NORMAL_DT_H */