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:
parent
151853df0d
commit
7292c263ef
@ -1020,6 +1020,8 @@ void xpp_span_assigned(struct dahdi_span *span)
|
|||||||
span->alarms &= ~DAHDI_ALARM_NOTOPEN;
|
span->alarms &= ~DAHDI_ALARM_NOTOPEN;
|
||||||
dahdi_alarm_notify(&phonedev->span);
|
dahdi_alarm_notify(&phonedev->span);
|
||||||
}
|
}
|
||||||
|
if (PHONE_METHOD(span_assigned, xpd))
|
||||||
|
CALL_PHONE_METHOD(span_assigned, xpd);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(xpp_span_assigned);
|
EXPORT_SYMBOL(xpp_span_assigned);
|
||||||
|
|
||||||
|
@ -295,6 +295,7 @@ struct phoneops {
|
|||||||
int (*card_open) (xpd_t *xpd, lineno_t pos);
|
int (*card_open) (xpd_t *xpd, lineno_t pos);
|
||||||
int (*card_close) (xpd_t *xpd, lineno_t pos);
|
int (*card_close) (xpd_t *xpd, lineno_t pos);
|
||||||
int (*card_state) (xpd_t *xpd, bool on);
|
int (*card_state) (xpd_t *xpd, bool on);
|
||||||
|
int (*span_assigned) (xpd_t *xpd);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct xops {
|
struct xops {
|
||||||
|
Loading…
Reference in New Issue
Block a user