summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-05-21 15:29:20 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-05-31 14:56:48 +1000
commitbe7119851d8f61a9bfd00c5869d7419e0655e822 (patch)
tree2b028c96b84dfd52f99372fed9d25e45be62fe40
parent1a184805c1ff2f8dabcb78bd0a5be139b085fa7c (diff)
Rearrange header to show functions that must be implemented first
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/synaptics.h75
1 files changed, 38 insertions, 37 deletions
diff --git a/src/synaptics.h b/src/synaptics.h
index e361380..fcfb877 100644
--- a/src/synaptics.h
+++ b/src/synaptics.h
@@ -33,6 +33,44 @@
void SynapticsMsg(SynapticsPrivate *priv, enum MessageType type, const char *format, ...);
/**
+ * Return the current time in milliseconds.
+ * Implemented-by: frontend
+ */
+unsigned int SynapticsGetCurrentMillis(void);
+
+/**
+ * Post a button event of the given type.
+ * Implemented-by: frontend
+ */
+void SynapticsButtonEvent(SynapticsPrivate *priv, int button, enum ButtonEventType press);
+
+/**
+ * Post a motion event.
+ * Implemented-by: frontend
+ */
+void SynapticsMotionEvent(SynapticsPrivate *priv, int x, int y);
+
+/**
+ * Post a scroll event.
+ * Implemented-by: frontend
+ */
+void SynapticsScrollEvent(SynapticsPrivate *priv, VMask *mask);
+
+/**
+ * Post a touch event for the given touchid of the given type.
+ * Implemented-by: frontend
+ */
+void SynapticsTouchEvent(SynapticsPrivate *priv, unsigned int touchid,
+ enum TouchEventType type, VMask *mask);
+
+/**
+ * Set a timer to be called delay milliseconds after now. That timer should
+ * call the SynapticsTimerFunc when it fires.
+ * Implemented-by: frontend
+ */
+void SynapticsSetTimer(SynapticsPrivate *priv, unsigned int now, unsigned int delay);
+
+/**
* Initialises the driver-internal structs. Must be the first call to the
* driver core, subsequent calls must use the memory region returned.
* Implemented by: core
@@ -77,12 +115,6 @@ int SynapticsDisableDevice(SynapticsPrivate *priv, int fd);
*/
void SynapticsCloseDevice(SynapticsPrivate *priv);
/**
- * Set a timer to be called delay milliseconds after now. That timer should
- * call the SynapticsTimerFunc when it fires.
- * Implemented-by: frontend
- */
-void SynapticsSetTimer(SynapticsPrivate *priv, unsigned int now, unsigned int delay);
-/**
* Finish any device-specifi initialization, once the hardware has been
* queried and all non-default parameters have been set.
* Implemented-by: core
@@ -113,37 +145,6 @@ SynapticsGetDeviceProtocolOps(SynapticsPrivate *priv,
*/
unsigned int SynapticsTimerFunc(SynapticsPrivate *priv, unsigned int now);
-/**
- * Return the current time in milliseconds.
- * Implemented-by: frontend
- */
-unsigned int SynapticsGetCurrentMillis(void);
-
-/**
- * Post a button event of the given type.
- * Implemented-by: frontend
- */
-void SynapticsButtonEvent(SynapticsPrivate *priv, int button, enum ButtonEventType press);
-
-/**
- * Post a motion event.
- * Implemented-by: frontend
- */
-void SynapticsMotionEvent(SynapticsPrivate *priv, int x, int y);
-
-/**
- * Post a scroll event.
- * Implemented-by: frontend
- */
-void SynapticsScrollEvent(SynapticsPrivate *priv, VMask *mask);
-
-/**
- * Post a touch event for the given touchid of the given type.
- * Implemented-by: frontend
- */
-void SynapticsTouchEvent(SynapticsPrivate *priv, unsigned int touchid,
- enum TouchEventType type, VMask *mask);
-
extern VMask *vmask_new(int num_valuators);
extern void vmask_free(VMask **mask);
extern void vmask_set_range(VMask *mask,