kdbus.h: Use #defines rather than an enum for ioctl definition
authorDaniel Mack <daniel@zonque.org>
Fri, 31 Oct 2014 08:03:16 +0000 (09:03 +0100)
committerDaniel Mack <daniel@zonque.org>
Fri, 31 Oct 2014 08:03:16 +0000 (09:03 +0100)
commitf198a45e3242a4825e1e720c0637a151a6ef5e0d
tree5e6e68b9012a23c1bb80fc4aae4ab0d91737a7e3
parentda021e6ecc808e94ef391f8358b5801b283b7220
kdbus.h: Use #defines rather than an enum for ioctl definition

Arnd Bergmann writes:

I think in general, using enum is great, but for ioctl command numbers,
we probably want to have defines so the user space implementation can
use #ifdef to see if the kernel version that it is being built for
knows a particular command.

[...]

which might in fact help some tools that try to do automated parsing
of header files to find ioctl commands.

Signed-off-by: Daniel Mack <daniel@zonque.org>
kdbus.h