summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/addr_auth.h
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2017-02-21 14:45:04 +0100
committerSander Vrijders <sander.vrijders@intec.ugent.be>2017-02-21 14:45:04 +0100
commit64f2b95f622a3c2b16e4dbdc8553d506ef870a8c (patch)
treeffe86d4470e121c47fa11faf8dd5f921f1b6de1f /src/ipcpd/normal/addr_auth.h
parent91091367210ee204c4082a0da05eea3336674f19 (diff)
downloadouroboros-64f2b95f622a3c2b16e4dbdc8553d506ef870a8c.tar.gz
ouroboros-64f2b95f622a3c2b16e4dbdc8553d506ef870a8c.zip
ipcpd: normal: Change address authority policy
This changes the address authority to follow a similar approach to that of the other policies. No function pointers are passed to its user anymore.
Diffstat (limited to 'src/ipcpd/normal/addr_auth.h')
-rw-r--r--src/ipcpd/normal/addr_auth.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ipcpd/normal/addr_auth.h b/src/ipcpd/normal/addr_auth.h
index 8d67bc66..b389fa90 100644
--- a/src/ipcpd/normal/addr_auth.h
+++ b/src/ipcpd/normal/addr_auth.h
@@ -3,7 +3,8 @@
*
* Address authority
*
- * Sander Vrijders <sander.vrijders@intec.ugent.be>
+ * Sander Vrijders <sander.vrijders@intec.ugent.be>
+ * Dimitri Staessens <dimitri.staessens@intec.ugent.be>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -26,13 +27,10 @@
#include <stdint.h>
-struct addr_auth {
- enum pol_addr_auth type;
- uint64_t (* address)(void);
-};
+int addr_auth_init(enum pol_addr_auth type);
-struct addr_auth * addr_auth_create(enum pol_addr_auth type);
+int addr_auth_fini(void);
-int addr_auth_destroy(struct addr_auth * instance);
+uint64_t addr_auth_address(void);
#endif /* OUROBOROS_IPCPD_NORMAL_ADDR_AUTH_H */