~ubuntu-branches/ubuntu/natty/libxi/natty-201011191114

« back to all changes in this revision

Viewing changes to src/XGetVers.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-11-21 18:39:28 UTC
  • mfrom: (1.1.10 upstream) (0.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20091121183928-ek2jwqx3rmhv3zjz
Tags: 2:1.3-1
* Bump Standards-Version to 3.8.3.
* Add build-deps on xmlto and asciidoc to build the manpages.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Xorg: XGetVers.c,v 1.4 2001/02/09 02:03:50 xorgcvs Exp $ */
2
 
 
3
1
/************************************************************
4
2
 
5
3
Copyright 1989, 1998  The Open Group
45
43
SOFTWARE.
46
44
 
47
45
********************************************************/
48
 
/* $XFree86: xc/lib/Xi/XGetVers.c,v 3.6 2003/07/08 15:39:47 tsi Exp $ */
49
46
 
50
47
/***********************************************************************
51
48
 *
75
72
    return (ext);
76
73
}
77
74
 
78
 
XExtensionVersion *
79
 
_XiGetExtensionVersion(register Display * dpy, _Xconst char *name, XExtDisplayInfo *info)
 
75
_X_HIDDEN XExtensionVersion *
 
76
_XiGetExtensionVersion(register Display * dpy, _Xconst char *name,
 
77
                       XExtDisplayInfo *info)
80
78
{
81
79
    xGetExtensionVersionReq *req;
82
80
    xGetExtensionVersionReply rep;
88
86
    GetReq(GetExtensionVersion, req);
89
87
    req->reqType = info->codes->major_opcode;
90
88
    req->ReqType = X_GetExtensionVersion;
91
 
    req->nbytes = name ? strlen(name) : 0;
 
89
    req->nbytes = strlen(name);
92
90
    req->length += (unsigned)(req->nbytes + 3) >> 2;
93
91
    _XSend(dpy, name, (long)req->nbytes);
94
92