OSDN Git Service

media: Replace transport->in_use flag with state
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Fri, 7 Sep 2012 15:20:28 +0000 (17:20 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 14 Sep 2012 12:09:17 +0000 (15:09 +0300)
commit209500b9924c4d227edaecf934d6de8a65def37c
tree7449613dda78b9ff55c0e550b5d02cca30f87833
parent869c3c5167c599c9481b3716fa7e1da18fd0710b
media: Replace transport->in_use flag with state

Refactor the code to use a enum type to represent the transport state.
This should scale better when additional states need to be represented.

A helper function has been added to help track the mapping between the
enum type and the old in_use flag.
audio/transport.c