summaryrefslogtreecommitdiff
path: root/accel-pptpd/ppp/ppp.c
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/ppp/ppp.c
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/ppp/ppp.c')
-rw-r--r--accel-pptpd/ppp/ppp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/accel-pptpd/ppp/ppp.c b/accel-pptpd/ppp/ppp.c
index 1e2ed86..8f385e7 100644
--- a/accel-pptpd/ppp/ppp.c
+++ b/accel-pptpd/ppp/ppp.c
@@ -14,6 +14,7 @@
#include "triton.h"
+#include "events.h"
#include "ppp.h"
#include "ppp_fsm.h"
#include "log.h"
@@ -157,7 +158,7 @@ int __export establish_ppp(struct ppp_t *ppp)
log_debug("ppp established\n");
- ppp_notify_starting(ppp);
+ triton_event_fire(EV_PPP_STARTING, ppp);
start_first_layer(ppp);
return 0;
@@ -190,7 +191,7 @@ static void destablish_ppp(struct ppp_t *ppp)
log_debug("ppp destablished\n");
- ppp_notify_finished(ppp);
+ triton_event_fire(EV_PPP_FINISHED, ppp);
ppp->ctrl->finished(ppp);
}
@@ -324,7 +325,7 @@ void __export ppp_layer_started(struct ppp_t *ppp, struct ppp_layer_data_t *d)
if (n->entry.next==&ppp->layers)
{
ppp->ctrl->started(ppp);
- ppp_notify_started(ppp);
+ triton_event_fire(EV_PPP_STARTED, ppp);
}else
{
n=list_entry(n->entry.next,typeof(*n),entry);
@@ -366,7 +367,7 @@ void __export ppp_terminate(struct ppp_t *ppp, int hard)
log_debug("ppp_terminate\n");
- ppp_notify_finishing(ppp);
+ triton_event_fire(EV_PPP_FINISHING, ppp);
if (hard) {
destablish_ppp(ppp);