diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-19 17:24:04 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-19 17:24:04 +0930 |
commit | 0ca7d78aeb8035ef52c1415170e1257493d789fd (patch) | |
tree | d5872e6198da083d7d75e0bfc2a285703df3e6d8 | |
parent | 87ebfbc56abe16de6f84f559728a40f63d44006a (diff) |
Change parameter names for QueryVersion/QueryExtension.
Simply to clarify the inner workings of the lib and that these parameters are
treated as return values only.
X.Org Bug 14511 <http://bugs.freedesktop.org/show_bug.cgi?id=14511>
-rw-r--r-- | include/X11/extensions/Xdamage.h | 8 | ||||
-rw-r--r-- | src/Xdamage.c | 16 |
2 files changed, 14 insertions, 10 deletions
diff --git a/include/X11/extensions/Xdamage.h b/include/X11/extensions/Xdamage.h index b55da38..5ec636d 100644 --- a/include/X11/extensions/Xdamage.h +++ b/include/X11/extensions/Xdamage.h @@ -49,11 +49,13 @@ typedef struct { _XFUNCPROTOBEGIN -Bool XDamageQueryExtension (Display *dpy, int *event_basep, int *error_basep); +Bool XDamageQueryExtension (Display *dpy, + int *event_base_return, + int *error_base_return); Status XDamageQueryVersion (Display *dpy, - int *major_versionp, - int *minor_versionp); + int *major_version_return, + int *minor_version_return); Damage XDamageCreate (Display *dpy, Drawable drawable, int level); diff --git a/src/Xdamage.c b/src/Xdamage.c index c699a15..a3966d6 100644 --- a/src/Xdamage.c +++ b/src/Xdamage.c @@ -282,14 +282,16 @@ XDamageEventToWire(Display *dpy, XEvent *event, xEvent *wire) } Bool -XDamageQueryExtension (Display *dpy, int *event_basep, int *error_basep) +XDamageQueryExtension (Display *dpy, + int *event_base_return, + int *error_base_return) { XDamageExtDisplayInfo *info = XDamageFindDisplay (dpy); if (XDamageHasExtension(info)) { - *event_basep = info->codes->first_event; - *error_basep = info->codes->first_error; + *event_base_return = info->codes->first_event; + *error_base_return = info->codes->first_error; return True; } else @@ -298,15 +300,15 @@ XDamageQueryExtension (Display *dpy, int *event_basep, int *error_basep) Status XDamageQueryVersion (Display *dpy, - int *major_versionp, - int *minor_versionp) + int *major_version_return, + int *minor_version_return) { XDamageExtDisplayInfo *info = XDamageFindDisplay (dpy); XDamageCheckExtension (dpy, info, 0); - *major_versionp = info->major_version; - *minor_versionp = info->minor_version; + *major_version_return = info->major_version; + *minor_version_return = info->minor_version; return 1; } |