typedef struct _XSyncSystemCounter
{
char *name;
XSyncCounter counter;
XSyncValue resolution;
}
XSyncSystemCounter;
typedef struct
{
XSyncCounter counter;
XSyncValueType value_type;
XSyncValue wait_value;
XSyncTestType test_type;
}
XSyncTrigger;
typedef struct
{
XSyncTrigger trigger;
XSyncValue event_threshold;
}
XSyncWaitCondition;
typedef struct
{
XSyncTrigger trigger;
XSyncValue delta;
int events;
XSyncAlarmState state;
}
XSyncAlarmAttributes;
typedef XID XSyncCounter;
typedef XID XSyncAlarm;
typedef struct _XSyncValue
{
int hi;
unsigned int lo;
}
XSyncValue;
typedef enum
{
XSyncAbsolute,
XSyncRelative
}
XSyncValueType;
typedef enum
{
XSyncPositiveTransition,
XSyncNegativeTransition,
XSyncPositiveComparison,
XSyncNegativeComparison
}
XSyncTestType;
typedef enum
{
XSyncAlarmActive,
XSyncAlarmInactive,
XSyncAlarmDestroyed
}
XSyncAlarmState; |