Define and use constants for opcode numbers.
authorZephaniah E. Hull <warp@aehallh.com>
Sun, 15 Oct 2006 02:52:23 +0000 (19:52 -0700)
committerJamey Sharp <jamey@minilop.net>
Sun, 15 Oct 2006 02:52:23 +0000 (19:52 -0700)
commit5ec55dc9c0c51137d89dd870ede05cc3268f75ae
tree4a81976d3c3bb41ff4286f705dd90a2ee7818916
parentc1504691ec2786594e8ffc33f3962f460f041971
Define and use constants for opcode numbers.

Hard coding the opcode numbers in the function just makes it harder to figure
out what's going on, but much more to the point, not defining the opcodes in
the header makes it impossible to use the generated headers instead of the
x11proto headers in the server.

The name I settled on is very simple, for an extension by the name of xconf,
and a request by the name of list_devices, we get XCB_XCONF_LIST_DEVICES.  If
this somehow causes problems, we can probably add a _OP somewhere in there,
but.

Acked-by: Jamey Sharp <jamey@minilop.net>
Closes: #8641
src/c-client.xsl