[Asterisk-Dev] Patching flags to bitfield structs

Andrew Thompson asteriskuser at aktzero.com
Thu Jan 20 10:57:04 MST 2005


Rob Gagnon wrote:

 >
 > Kevin wrote
 >
 >>  "...chan_sip would be the best candidate for conversion to 
bitfield-based flags, instead of macro-based flags"
 >>
 >
 > but the macros are there to manipulate the bitfields.  What am I missing?


The macros, unless I'm mistaken, are there to manipulate the bits in a 
single int named flags.

What they are talking about now, is putting all the variables that the 
flags were were supposed to represent back in as defined variables, but 
this time, using the variablename:X format to specify how many bits the 
variable should take up.

 >> No, the point of my response was that chan_sip would be the best 
candidate for conversion to bitfield-based flags, instead of macro-based 
flags.


I also have been looking through references to "flags" for making sure 
that they were all using unsigned int's, as mentioned before.

I am now confused as to what direction flags are going.

-- 
Andrew Thompson
http://aktzero.com/
http://dev.asteriskdocs.org/



More information about the asterisk-dev mailing list