diff options
author | Peter Hutterer <peter.hutterer@redhat.com> | 2008-09-18 16:12:02 +0930 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-09-26 13:32:07 +0930 |
commit | 22e90472681ebc7bdd28f82bbf2753a5b259e931 (patch) | |
tree | 79f0ca4d8478b1c0ef8c7ec69dc3ddfda64be82e /include/exevents.h | |
parent | 1e24e7b9df3d02350c7ea18e9379e87fe4d00026 (diff) |
Xi: allow Set/GetProperties to return a status, and honour this status code.
If a property handler now bails out, return the error code to the caller. This
allows to be slightly more specific with the errors.
Diffstat (limited to 'include/exevents.h')
-rw-r--r-- | include/exevents.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/exevents.h b/include/exevents.h index e137fef03..c3a2ad610 100644 --- a/include/exevents.h +++ b/include/exevents.h @@ -216,19 +216,19 @@ extern int XIChangeDeviceProperty( Bool /* sendevent*/ ); -extern XIPropertyValuePtr XIGetDeviceProperty( +extern int XIGetDeviceProperty( DeviceIntPtr /* dev */, - Atom /* property */ + Atom /* property */, + XIPropertyValuePtr* /* value */ ); - extern long XIRegisterPropertyHandler( DeviceIntPtr dev, - Bool (*SetProperty) (DeviceIntPtr dev, - Atom property, - XIPropertyValuePtr prop), - Bool (*GetProperty) (DeviceIntPtr dev, - Atom property) + int (*SetProperty) (DeviceIntPtr dev, + Atom property, + XIPropertyValuePtr prop), + int (*GetProperty) (DeviceIntPtr dev, + Atom property) ); extern void XIUnRegisterPropertyHandler( |