[PATCH 11/14] doc: Kiss K&R good bye, with love.
Cyril Brulebois
kibi at debian.org
Sun Jun 5 17:25:09 PDT 2011
Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
doc/Xinput.xml | 129 ++++++++++++++++++++++++++++++-------------------------
1 files changed, 70 insertions(+), 59 deletions(-)
diff --git a/doc/Xinput.xml b/doc/Xinput.xml
index d41ddfc..f35b9be 100644
--- a/doc/Xinput.xml
+++ b/doc/Xinput.xml
@@ -289,9 +289,7 @@ shown below.
<para>
<!-- .LP -->
<literallayout class="monospaced">
-Bool extproc (dev, mode)
- DeviceIntPtr dev;
- int mode;
+Bool extproc (DeviceIntPtr dev, int mode)
{
LocalDevice *localdev = (LocalDevice *) dev->devicePrivate;
@@ -459,10 +457,11 @@ Its parameters are:
<!-- .LP -->
<literallayout class="monospaced">
Bool
-InitKeyClassDeviceStruct(dev, pKeySyms, pModifiers)
- DeviceIntPtr dev;
- KeySymsPtr pKeySyms;
- CARD8 pModifiers[];
+InitKeyClassDeviceStruct(
+ DeviceIntPtr dev,
+ KeySymsPtr pKeySyms,
+ CARD8 pModifiers[]
+);
</literallayout>
</para>
<para>
@@ -486,10 +485,11 @@ allocated. Its parameters are:
<!-- .LP -->
<literallayout class="monospaced">
Bool
-InitButtonClassDeviceStruct(dev, numButtons, map)
- register DeviceIntPtr dev;
- int numButtons;
- CARD8 *map;
+InitButtonClassDeviceStruct(
+ register DeviceIntPtr dev,
+ int numButtons,
+ CARD8 *map
+);
</literallayout>
</para>
<para>
@@ -514,12 +514,13 @@ the ValuatorClassRec could not be allocated. Its parameters are:
<!-- .LP -->
<literallayout class="monospaced">
Bool
-InitValuatorClassDeviceStruct(dev, numAxes, motionProc, numMotionEvents, mode)
- DeviceIntPtr dev;
- int (*motionProc)();
- int numAxes;
- int numMotionEvents;
- int mode;
+InitValuatorClassDeviceStruct(
+ DeviceIntPtr dev,
+ int numAxes,
+ int (*motionProc)(),
+ int numMotionEvents,
+ int mode
+);
</literallayout>
</para>
<para>
@@ -548,12 +549,13 @@ resolution of the device in counts per meter. If the device reports
relative motion, 0 should be reported as the minimum and maximum values.
InitValuatorAxisStruct has the following parameters:
<literallayout class="monospaced">
-InitValuatorAxisStruct(dev, axnum, minval, maxval, resolution)
- DeviceIntPtr dev;
- int axnum;
- int minval;
- int maxval;
- int resolution;
+InitValuatorAxisStruct(
+ DeviceIntPtr dev,
+ int axnum,
+ int minval,
+ int maxval,
+ int resolution
+);
</literallayout>
</para>
<para>
@@ -573,8 +575,9 @@ pointer to the device, and returns FALSE if the allocation fails.
It has the following parameter:
<literallayout class="monospaced">
Bool
-InitFocusClassDeviceStruct(dev)
- DeviceIntPtr dev;
+InitFocusClassDeviceStruct(
+ DeviceIntPtr dev
+);
</literallayout>
</para>
<para>
@@ -595,8 +598,9 @@ It is passed a pointer to the device, and returns FALSE if the allocation fails.
It has the following parameter:
<literallayout class="monospaced">
Bool
-InitProximityClassDeviceStruct(dev)
- DeviceIntPtr dev;
+InitProximityClassDeviceStruct(
+ DeviceIntPtr dev
+);
</literallayout>
</para>
</sect3>
@@ -617,10 +621,11 @@ and a pointer to the device control procedure.
It returns FALSE if the allocation fails, and has the following parameters:
<literallayout class="monospaced">
Bool
-InitKbdFeedbackClassDeviceStruct(dev, bellProc, controlProc)
- DeviceIntPtr dev;
- void (*bellProc)();
- void (*controlProc)();
+InitKbdFeedbackClassDeviceStruct(
+ DeviceIntPtr dev,
+ void (*bellProc)(),
+ void (*controlProc)()
+);
</literallayout>
The DIX entry point InitKeyboardDeviceStruct calls this routine for the
core X keyboard. It must be called explicitly for extension devices
@@ -640,9 +645,10 @@ and a pointer to the device control procedure.
It returns FALSE if the allocation fails, and has the following parameters:
<literallayout class="monospaced">
Bool
-InitPtrFeedbackClassDeviceStruct(dev, controlProc)
- DeviceIntPtr dev;
- void (*controlProc)();
+InitPtrFeedbackClassDeviceStruct(
+ DeviceIntPtr dev,
+ void (*controlProc)()
+);
</literallayout>
</para>
<para>
@@ -663,9 +669,10 @@ and a pointer to the device control procedure.
It returns FALSE if the allocation fails, and has the following parameters:
<literallayout class="monospaced">
Bool
-InitLedFeedbackClassDeviceStruct(dev, controlProc)
- DeviceIntPtr dev;
- void (*controlProc)();
+InitLedFeedbackClassDeviceStruct(
+ DeviceIntPtr dev,
+ void (*controlProc)()
+);
</literallayout>
</para>
<para>
@@ -685,10 +692,11 @@ and a pointer to the device control procedure.
It returns FALSE if the allocation fails, and has the following parameters:
<literallayout class="monospaced">
Bool
-InitBellFeedbackClassDeviceStruct(dev, bellProc, controlProc)
- DeviceIntPtr dev;
- void (*bellProc)();
- void (*controlProc)();
+InitBellFeedbackClassDeviceStruct(
+ DeviceIntPtr dev,
+ void (*bellProc)(),
+ void (*controlProc)()
+);
</literallayout>
</para>
</sect4>
@@ -704,13 +712,13 @@ and a pointer to the device control procedure.
It returns FALSE if the allocation fails, and has the following parameters:
<literallayout class="monospaced">
Bool
-InitStringFeedbackClassDeviceStruct(dev, controlProc, max_symbols,
- num_symbols_supported, symbols)
- DeviceIntPtr dev;
- void (*controlProc)();
- int max_symbols;
- int num_symbols_supported;
- KeySym *symbols;
+InitStringFeedbackClassDeviceStruct(
+ DeviceIntPtr dev,
+ void (*controlProc)(),
+ int max_symbols,
+ int num_symbols_supported,
+ KeySym *symbols
+);
</literallayout>
</para>
</sect4>
@@ -727,9 +735,10 @@ and a pointer to the device control procedure.
It returns FALSE if the allocation fails, and has the following parameters:
<literallayout class="monospaced">
Bool
-InitIntegerFeedbackClassDeviceStruct(dev, controlProc)
- DeviceIntPtr dev;
- void (*controlProc)();
+InitIntegerFeedbackClassDeviceStruct(
+ DeviceIntPtr dev,
+ void (*controlProc)()
+);
</literallayout>
</para>
</sect4>
@@ -743,10 +752,11 @@ The device name and type can be initialized by calling AssignTypeAndName
with the following parameters:
<literallayout class="monospaced">
void
-AssignTypeAndName(dev, type, name)
- DeviceIntPtr dev;
- Atom type;
- char *name;
+AssignTypeAndName(
+ DeviceIntPtr dev,
+ Atom type,
+ char *name
+);
</literallayout>
</para>
<para>
@@ -756,10 +766,11 @@ The device type can be obtained by calling MakeAtom with one of the names
defined for input devices. MakeAtom has the following parameters:
<literallayout class="monospaced">
Atom
-MakeAtom(name, len, makeit)
- char *name;
- int len;
- Bool makeit;
+MakeAtom(
+ char *name,
+ int len,
+ Bool makeit
+);
</literallayout>
</para>
<para>
--
1.7.5.3
More information about the xorg-devel
mailing list