[Spice-devel] [PATCH] protocol: use packed-start/end to pack structures

2011-04-11 Thread Christophe Fergeau
spice-protocol comes with 2 headers to handle structure packing, but controller_prot.h and foreign_menu_prot were both using their own preprocessor definitions to handle packing. It's better to have structure packing macros centralized since how it's done varies between compilers, so it may need

Re: [Spice-devel] [PATCH] protocol: use packed-start/end to pack structures

2011-04-11 Thread Christophe Fergeau
On Mon, Apr 11, 2011 at 01:18:27PM +0200, Christophe Fergeau wrote: spice-protocol comes with 2 headers to handle structure packing, but controller_prot.h and foreign_menu_prot were both using their own preprocessor definitions to handle packing. It's better to have structure packing macros

Re: [Spice-devel] [PATCH] protocol: use packed-start/end to pack structures

2011-04-11 Thread Alon Levy
On Mon, Apr 11, 2011 at 01:18:27PM +0200, Christophe Fergeau wrote: spice-protocol comes with 2 headers to handle structure packing, but controller_prot.h and foreign_menu_prot were both using their own preprocessor definitions to handle packing. It's better to have structure packing macros