mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-07 22:05:25 +00:00
- use symbolic constants and macros to play with the debug flag
on the frame counters. Document it in the header file. - provide a single exit point for a function; - mark XXX some unclear parts of the code. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -403,9 +403,13 @@ struct ast_channel {
|
||||
unsigned long insmpl;
|
||||
unsigned long outsmpl;
|
||||
|
||||
/* Frames in/out counters */
|
||||
/* Frames in/out counters. The high bit is a debug mask, so
|
||||
* the counter is only in the remaining bits
|
||||
*/
|
||||
unsigned int fin;
|
||||
unsigned int fout;
|
||||
#define DEBUGCHAN_FLAG 0x80000000
|
||||
#define FRAMECOUNT_INC(x) ( ((x) & DEBUGCHAN_FLAG) | ((x++) & ~DEBUGCHAN_FLAG) )
|
||||
|
||||
/* Why is the channel hanged up */
|
||||
int hangupcause;
|
||||
|
Reference in New Issue
Block a user