summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/dahdi_debug.h
diff options
context:
space:
mode:
authorRussell Bryant <russell@digium.com>2008-08-03 15:42:46 +0000
committerRussell Bryant <russell@digium.com>2008-08-03 15:42:46 +0000
commitd727c90888f32c7a554874dae821c47d5157ff3f (patch)
tree295a3ecde4aed3fb7e28470efa4ec8c9f1e85187 /drivers/dahdi/xpp/dahdi_debug.h
parenta0be35cf7c6045e18857d7af87aac398cc150b55 (diff)
Rework the table of signalling bits for signalling types and hook states
in dahdi_rbs_sethook() to a much more readable and less error prone format. In passing, get rid of the dahdi_txsig_t typedef, and fix uses of it throughout the tree. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4679 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/dahdi_debug.h')
-rw-r--r--drivers/dahdi/xpp/dahdi_debug.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dahdi/xpp/dahdi_debug.h b/drivers/dahdi/xpp/dahdi_debug.h
index 753fa1a..a2cd242 100644
--- a/drivers/dahdi/xpp/dahdi_debug.h
+++ b/drivers/dahdi/xpp/dahdi_debug.h
@@ -104,13 +104,14 @@ static inline char *rxsig2str(dahdi_rxsig_t sig)
return "Unknown rxsig";
}
-static inline char *txsig2str(dahdi_txsig_t sig)
+static inline char *txsig2str(enum dahdi_txsig sig)
{
switch(sig) {
case DAHDI_TXSIG_ONHOOK: return "TXSIG_ONHOOK";
case DAHDI_TXSIG_OFFHOOK: return "TXSIG_OFFHOOK";
case DAHDI_TXSIG_START: return "TXSIG_START";
case DAHDI_TXSIG_KEWL: return "TXSIG_KEWL"; /* Drop battery if possible */
+ case DAHDI_TXSIG_TOTAL: break;
}
return "Unknown txsig";
}