[Qemu-devel] [PATCH 07/19] Convert netdev client types to use an enumeration

2010-06-07 Thread Daniel P. Berrange
Declare an enumeration for all netdev client types, values matching indexes in the net_client_types array. Use the enum helpers for the string - int conversion of client types. Before: $ qemu -net type=foo,sfs qemu: -net type=foo,sfs: Parameter 'type' expects a network client type After:

Re: [Qemu-devel] [PATCH 07/19] Convert netdev client types to use an enumeration

2010-06-07 Thread Anthony Liguori
On 06/07/2010 09:42 AM, Daniel P. Berrange wrote: Declare an enumeration for all netdev client types, values matching indexes in the net_client_types array. Use the enum helpers for the string- int conversion of client types. Before: $ qemu -net type=foo,sfs qemu: -net type=foo,sfs:

Re: [Qemu-devel] [PATCH 07/19] Convert netdev client types to use an enumeration

2010-06-07 Thread Daniel P. Berrange
On Mon, Jun 07, 2010 at 10:09:02AM -0500, Anthony Liguori wrote: On 06/07/2010 09:42 AM, Daniel P. Berrange wrote: Declare an enumeration for all netdev client types, values matching indexes in the net_client_types array. Use the enum helpers for the string- int conversion of client types.