xpp: add xpd method span_assigned

Add an phone device XPD method called 'span_assigned' that gets
called when the XPD's span is assigned.

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
Tzafrir Cohen 2017-06-20 14:39:34 +03:00
parent 151853df0d
commit 7292c263ef
2 changed files with 3 additions and 0 deletions

View File

@ -1020,6 +1020,8 @@ void xpp_span_assigned(struct dahdi_span *span)
span->alarms &= ~DAHDI_ALARM_NOTOPEN;
dahdi_alarm_notify(&phonedev->span);
}
if (PHONE_METHOD(span_assigned, xpd))
CALL_PHONE_METHOD(span_assigned, xpd);
}
EXPORT_SYMBOL(xpp_span_assigned);

View File

@ -295,6 +295,7 @@ struct phoneops {
int (*card_open) (xpd_t *xpd, lineno_t pos);
int (*card_close) (xpd_t *xpd, lineno_t pos);
int (*card_state) (xpd_t *xpd, bool on);
int (*span_assigned) (xpd_t *xpd);
};
struct xops {