diff options
Diffstat (limited to 'accel-pptpd/ppp/ppp_notify.c')
-rw-r--r-- | accel-pptpd/ppp/ppp_notify.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/accel-pptpd/ppp/ppp_notify.c b/accel-pptpd/ppp/ppp_notify.c index 94ceb6d2..ad9fd1fc 100644 --- a/accel-pptpd/ppp/ppp_notify.c +++ b/accel-pptpd/ppp/ppp_notify.c @@ -12,6 +12,16 @@ void __export ppp_unregister_notified(struct ppp_notified_t *n) list_del(&n->entry); } +void ppp_notify_starting(struct ppp_t *ppp) +{ + struct ppp_notified_t *n; + + list_for_each_entry(n, ¬ified_list, entry) { + if (n->starting) + n->starting(n, ppp); + } +} + void ppp_notify_started(struct ppp_t *ppp) { struct ppp_notified_t *n; @@ -32,3 +42,13 @@ void ppp_notify_finished(struct ppp_t *ppp) } } +void ppp_notify_finishing(struct ppp_t *ppp) +{ + struct ppp_notified_t *n; + + list_for_each_entry(n, ¬ified_list, entry) { + if (n->finishing) + n->finishing(n, ppp); + } +} + |