[dahdi-commits] russell: linux/trunk r4682 - in /linux/trunk: drivers/dahdi/ drivers/dahdi/xp...
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Sun Aug 3 11:25:16 CDT 2008
Author: russell
Date: Sun Aug 3 11:25:15 2008
New Revision: 4682
URL: http://svn.digium.com/view/dahdi?view=rev&rev=4682
Log:
Get rid of dahdi_rxsig_t typedef
Modified:
linux/trunk/drivers/dahdi/dahdi-base.c
linux/trunk/drivers/dahdi/xpp/card_fxo.c
linux/trunk/drivers/dahdi/xpp/dahdi_debug.h
linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c
linux/trunk/include/dahdi/kernel.h
Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=4682&r1=4681&r2=4682
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Sun Aug 3 11:25:15 2008
@@ -6131,7 +6131,7 @@
}
}
-static void __dahdi_hooksig_pvt(struct dahdi_chan *chan, dahdi_rxsig_t rxsig)
+static void __dahdi_hooksig_pvt(struct dahdi_chan *chan, enum dahdi_rxsig rxsig)
{
/* State machines for receive hookstate transitions
@@ -6304,7 +6304,7 @@
}
}
-void dahdi_hooksig(struct dahdi_chan *chan, dahdi_rxsig_t rxsig)
+void dahdi_hooksig(struct dahdi_chan *chan, enum dahdi_rxsig rxsig)
{
/* skip if no change */
unsigned long flags;
Modified: linux/trunk/drivers/dahdi/xpp/card_fxo.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/xpp/card_fxo.c?view=diff&rev=4682&r1=4681&r2=4682
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/card_fxo.c (original)
+++ linux/trunk/drivers/dahdi/xpp/card_fxo.c Sun Aug 3 11:25:15 2008
@@ -257,7 +257,7 @@
static void update_dahdi_ring(xpd_t *xpd, int pos, bool on)
{
- dahdi_rxsig_t rxsig;
+ enum dahdi_rxsig rxsig;
BUG_ON(!xpd);
if(on) {
Modified: linux/trunk/drivers/dahdi/xpp/dahdi_debug.h
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/xpp/dahdi_debug.h?view=diff&rev=4682&r1=4681&r2=4682
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/dahdi_debug.h (original)
+++ linux/trunk/drivers/dahdi/xpp/dahdi_debug.h Sun Aug 3 11:25:15 2008
@@ -92,7 +92,7 @@
void dump_poll(int debug, const char *msg, int poll);
-static inline char *rxsig2str(dahdi_rxsig_t sig)
+static inline char *rxsig2str(enum dahdi_rxsig sig)
{
switch(sig) {
case DAHDI_RXSIG_ONHOOK: return "ONHOOK";
Modified: linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c?view=diff&rev=4682&r1=4681&r2=4682
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c (original)
+++ linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c Sun Aug 3 11:25:15 2008
@@ -540,7 +540,7 @@
void update_line_status(xpd_t *xpd, int pos, bool to_offhook)
{
- dahdi_rxsig_t rxsig;
+ enum dahdi_rxsig rxsig;
BUG_ON(!xpd);
if(to_offhook) {
Modified: linux/trunk/include/dahdi/kernel.h
URL: http://svn.digium.com/view/dahdi/linux/trunk/include/dahdi/kernel.h?view=diff&rev=4682&r1=4681&r2=4682
==============================================================================
--- linux/trunk/include/dahdi/kernel.h (original)
+++ linux/trunk/include/dahdi/kernel.h Sun Aug 3 11:25:15 2008
@@ -427,13 +427,13 @@
DAHDI_TXSIG_TOTAL,
};
-typedef enum {
+enum dahdi_rxsig {
DAHDI_RXSIG_ONHOOK,
DAHDI_RXSIG_OFFHOOK,
DAHDI_RXSIG_START,
DAHDI_RXSIG_RING,
DAHDI_RXSIG_INITIAL
-} dahdi_rxsig_t;
+};
/* Span flags */
#define DAHDI_FLAG_REGISTERED (1 << 0)
@@ -720,7 +720,7 @@
void dahdi_rbsbits(struct dahdi_chan *chan, int bits);
/*! \brief Tell DAHDI abou changes in received signalling */
-void dahdi_hooksig(struct dahdi_chan *chan, dahdi_rxsig_t rxsig);
+void dahdi_hooksig(struct dahdi_chan *chan, enum dahdi_rxsig rxsig);
/*! \brief Queue an event on a channel */
void dahdi_qevent_nolock(struct dahdi_chan *chan, int event);
More information about the dahdi-commits
mailing list