xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0 of 4] libxl: Add enumeration type to IDL
@ 2011-03-24 14:09 Ian Campbell
  2011-03-24 14:09 ` [PATCH 1 of 4] libxl: typedef libxl_action_on_shutdown Ian Campbell
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Ian Campbell @ 2011-03-24 14:09 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Campbell


As part of this I namespace some enum values, firstly within the
LIBXL_ namespace (which is clearly a good idea) but secondly to
namespace the values to within their respective typename, which is
less clearly of benefit. It makes the IDL for enumerations somewhat
cleaner but I'm not totally wedded to it -- opinions welcome.

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0 of 4] [V2] libxl: Add enumeration type to IDL
@ 2011-03-31 11:38 Ian Campbell
  2011-03-31 11:38 ` [PATCH 2 of 4] libxl: move all enum values into the libxl namespace Ian Campbell
  0 siblings, 1 reply; 7+ messages in thread
From: Ian Campbell @ 2011-03-31 11:38 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Campbell

As part of this I namespace some enum values, firstly within the
LIBXL_ namespace (which is clearly a good idea) but secondly to
namespace the values to within their respective typename, which is
less clearly of benefit. It makes the IDL for enumerations somewhat
cleaner but I'm not totally wedded to it -- opinions welcome.

Changes since first version:

  - Use typedef enum FOO { } FOO idiom which allows existing users of
    "enum FOO xxx;" to continue working.

  - Add libxl_compat.h which defines the old names in an attempt to
    retain API (but not ABI) compatibility. By default all previous
    APIs will be exposed. Not sure if it makes more sense to require
    users to specify which they want.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-03-31 18:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-24 14:09 [PATCH 0 of 4] libxl: Add enumeration type to IDL Ian Campbell
2011-03-24 14:09 ` [PATCH 1 of 4] libxl: typedef libxl_action_on_shutdown Ian Campbell
2011-03-24 14:09 ` [PATCH 2 of 4] libxl: move all enum values into the libxl namespace Ian Campbell
2011-03-24 14:09 ` [PATCH 3 of 4] libxl: namespace enum values within their type Ian Campbell
2011-03-24 14:09 ` [PATCH 4 of 4] libxl: add an Enumeration type to the IDL, use it for all enums Ian Campbell
  -- strict thread matches above, loose matches on Subject: below --
2011-03-31 11:38 [PATCH 0 of 4] [V2] libxl: Add enumeration type to IDL Ian Campbell
2011-03-31 11:38 ` [PATCH 2 of 4] libxl: move all enum values into the libxl namespace Ian Campbell
2011-03-31 18:40   ` Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).