xkb: rename XkbAllocGeometry() to SrvXkbAllocGeometry()
Instead of doing dirty preprocessor trick, directly rename the function itself. (the renaming itself is necessary since libX11 has the same symbol) Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
9bcc5de027
commit
e90440d683
|
|
@ -496,7 +496,7 @@ _XkbGeomAlloc(void **old,
|
|||
(n),sizeof(XkbOverlayKeyRec))
|
||||
|
||||
Status
|
||||
XkbAllocGeometry(XkbDescPtr xkb, XkbGeometrySizesPtr sizes)
|
||||
SrvXkbAllocGeometry(XkbDescPtr xkb, XkbGeometrySizesPtr sizes)
|
||||
{
|
||||
XkbGeometryPtr geom;
|
||||
Status rtrn;
|
||||
|
|
|
|||
|
|
@ -5627,7 +5627,7 @@ _XkbSetGeometry(ClientPtr client, DeviceIntPtr dev, xkbSetGeometryReq * stuff)
|
|||
sizes.num_sections = stuff->nSections;
|
||||
sizes.num_doodads = stuff->nDoodads;
|
||||
sizes.num_key_aliases = stuff->nKeyAliases;
|
||||
if ((status = XkbAllocGeometry(xkb, &sizes)) != Success) {
|
||||
if ((status = SrvXkbAllocGeometry(xkb, &sizes)) != Success) {
|
||||
xkb->geom = old;
|
||||
return status;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
#include "xkbstr.h"
|
||||
|
||||
#define XkbAllocGeometry SrvXkbAllocGeometry
|
||||
#define XkbFreeGeomKeyAliases SrvXkbFreeGeomKeyAliases
|
||||
#define XkbFreeGeomColors SrvXkbFreeGeomColors
|
||||
#define XkbFreeGeomDoodads SrvXkbFreeGeomDoodads
|
||||
|
|
@ -504,9 +503,7 @@ extern Status XkbAllocGeomKeys(XkbRowPtr /* row */ ,
|
|||
int /* nKeys */
|
||||
);
|
||||
|
||||
extern Status XkbAllocGeometry(XkbDescPtr /* xkb */ ,
|
||||
XkbGeometrySizesPtr /* sizes */
|
||||
);
|
||||
Status SrvXkbAllocGeometry(XkbDescPtr xkb, XkbGeometrySizesPtr sizes);
|
||||
|
||||
extern Bool
|
||||
XkbComputeShapeTop(XkbShapePtr /* shape */ ,
|
||||
|
|
|
|||
|
|
@ -1052,7 +1052,7 @@ ReadXkmGeometry(FILE * file, XkbDescPtr xkb)
|
|||
sizes.num_sections = wireGeom.num_sections;
|
||||
sizes.num_doodads = wireGeom.num_doodads;
|
||||
sizes.num_key_aliases = wireGeom.num_key_aliases;
|
||||
if (XkbAllocGeometry(xkb, &sizes) != Success) {
|
||||
if (SrvXkbAllocGeometry(xkb, &sizes) != Success) {
|
||||
_XkbLibError(_XkbErrBadAlloc, "ReadXkmGeometry", 0);
|
||||
return nRead;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue