summaryrefslogtreecommitdiff
path: root/accel-pptpd/triton
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-09-10 12:49:35 +0400
committerKozlov Dmitry <dima@server>2010-09-10 12:49:35 +0400
commitd0c060a39d3bf6f675666a1400b533511e24a26c (patch)
tree32d9bcd1c5cc094b868c037dcca55ce97373b1b7 /accel-pptpd/triton
parentc471cd62571f654b92bad0bd9f431927758f4d45 (diff)
downloadaccel-ppp-d0c060a39d3bf6f675666a1400b533511e24a26c.tar.gz
accel-ppp-d0c060a39d3bf6f675666a1400b533511e24a26c.zip
switching to use triton events instead of ppp_notify
Diffstat (limited to 'accel-pptpd/triton')
-rw-r--r--accel-pptpd/triton/event.c4
-rw-r--r--accel-pptpd/triton/triton.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/accel-pptpd/triton/event.c b/accel-pptpd/triton/event.c
index 17483ec7..442543f2 100644
--- a/accel-pptpd/triton/event.c
+++ b/accel-pptpd/triton/event.c
@@ -26,7 +26,7 @@ int event_init(void)
return 0;
}
-int triton_event_register_handler(int ev_id, triton_event_func func)
+int __export triton_event_register_handler(int ev_id, triton_event_func func)
{
struct _triton_event_t *ev;
struct event_handler_t *h;
@@ -85,7 +85,7 @@ int triton_event_register_handler(int ev_id, triton_event_func func)
return -1;
}*/
-void triton_event_fire(int ev_id, void *arg)
+void __export triton_event_fire(int ev_id, void *arg)
{
struct _triton_event_t *ev;
struct event_handler_t *h;
diff --git a/accel-pptpd/triton/triton.c b/accel-pptpd/triton/triton.c
index 742d4936..8b25f039 100644
--- a/accel-pptpd/triton/triton.c
+++ b/accel-pptpd/triton/triton.c
@@ -313,6 +313,9 @@ int __export triton_init(const char *conf_file, const char *mod_sect)
if (timer_init())
return -1;
+ if (event_init())
+ return -1;
+
if (load_modules(mod_sect))
return -1;