summaryrefslogtreecommitdiff
path: root/Xext/syncsrv.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-03-12 14:07:44 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-03-22 11:33:21 +1000
commite21ffff4761d2b75815391c6947adcba425ab11e (patch)
treea380a7de93aa1c6824d8b33ab54e570dc0f60b54 /Xext/syncsrv.h
parent5910f2df58beaae2187438fef0b62c29a563e853 (diff)
Xext: typedef QueryValue and BracketValue prototypes
No functional changes, just for readability Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Bryce Harrington <bryce@canonical.com>
Diffstat (limited to 'Xext/syncsrv.h')
-rw-r--r--Xext/syncsrv.h34
1 files changed, 12 insertions, 22 deletions
diff --git a/Xext/syncsrv.h b/Xext/syncsrv.h
index b0464b304..1afaf5fa3 100644
--- a/Xext/syncsrv.h
+++ b/Xext/syncsrv.h
@@ -65,19 +65,22 @@ typedef enum {
XSyncCounterUnrestricted
} SyncCounterType;
+typedef void (*SyncSystemCounterQueryValue)(pointer counter,
+ CARD64 *value_return
+ );
+typedef void (*SyncSystemCounterBracketValues)(pointer counter,
+ CARD64 *pbracket_less,
+ CARD64 *pbracket_greater
+ );
+
typedef struct _SysCounterInfo {
const char *name;
CARD64 resolution;
CARD64 bracket_greater;
CARD64 bracket_less;
SyncCounterType counterType; /* how can this counter change */
- void (*QueryValue) (pointer /*pCounter */ ,
- CARD64 * /*freshvalue */
- );
- void (*BracketValues) (pointer /*pCounter */ ,
- CARD64 * /*lessthan */ ,
- CARD64 * /*greaterthan */
- );
+ SyncSystemCounterQueryValue QueryValue;
+ SyncSystemCounterBracketValues BracketValues;
} SysCounterInfo;
typedef struct _SyncAlarmClientList {
@@ -118,21 +121,8 @@ extern pointer SyncCreateSystemCounter(const char * /* name */ ,
CARD64 /* resolution */ ,
SyncCounterType
/* change characterization */ ,
- void (* /*QueryValue */ )(
- pointer
- /* pCounter */
- ,
- CARD64 * /* pValue_return */ ), /* XXX prototype */
- void (* /*BracketValues */ )(
- pointer
- /* pCounter */
- ,
- CARD64 *
- /* pbracket_less */
- ,
- CARD64 *
- /* pbracket_greater */
- )
+ SyncSystemCounterQueryValue QueryValue,
+ SyncSystemCounterBracketValues BracketValues
);
extern void SyncChangeCounter(SyncCounter * /* pCounter */ ,