[Asterisk-Dev] ast_flags question
Kevin P. Fleming
kpfleming at starnetworks.us
Sat Jan 8 16:22:35 MST 2005
Andrew Kohlsmith wrote:
> It's certainly not too late to change the flags bits again.
It's getting close though, they are spreading around the code like
wildfire right now.
Please add your voices on IRC or open a bug in Mantis to get some
community input on this topic before it's too late, if you think it's
worthwhile. I do, but I cannot do it alone :-)
A really good example would be converting chan_sip to this model...
Declare
struct sip_flags {
int alreadygone:1;
int needdestroy:1;
int novideo:1;
...
}
struct sip_peer {
...
struct sip_flags flags;
};
I suspect much of the code in chan_sip that deals with these flags would
be much less cumbersome and easier to read using this model.
More information about the asterisk-dev
mailing list