xkb: rename XkbAddGeomDoodad() to SrvXkbAddGeomDoodad()
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
2a4410a655
commit
329a4e3b57
|
|
@ -747,7 +747,7 @@ XkbAddGeomSection(XkbGeometryPtr geom,
|
|||
}
|
||||
|
||||
XkbDoodadPtr
|
||||
XkbAddGeomDoodad(XkbGeometryPtr geom, XkbSectionPtr section, Atom name)
|
||||
SrvXkbAddGeomDoodad(XkbGeometryPtr geom, XkbSectionPtr section, Atom name)
|
||||
{
|
||||
XkbDoodadPtr old, doodad;
|
||||
register int i, nDoodads;
|
||||
|
|
|
|||
|
|
@ -5179,7 +5179,7 @@ _CheckSetDoodad(char **wire_inout, xkbSetGeometryReq *req,
|
|||
swaps(&any.angle);
|
||||
}
|
||||
CHK_ATOM_ONLY(dWire->any.name);
|
||||
doodad = XkbAddGeomDoodad(geom, section, any.name);
|
||||
doodad = SrvXkbAddGeomDoodad(geom, section, any.name);
|
||||
if (!doodad)
|
||||
return BadAlloc;
|
||||
doodad->any.type = dWire->any.type;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
#include "xkbstr.h"
|
||||
|
||||
#define XkbAddGeomDoodad SrvXkbAddGeomDoodad
|
||||
#define XkbAddGeomKey SrvXkbAddGeomKey
|
||||
#define XkbAddGeomOutline SrvXkbAddGeomOutline
|
||||
#define XkbAddGeomOverlay SrvXkbAddGeomOverlay
|
||||
|
|
@ -362,10 +361,9 @@ extern XkbOverlayKeyPtr XkbAddGeomOverlayKey(XkbOverlayPtr /* overlay */ ,
|
|||
char * /* under */
|
||||
);
|
||||
|
||||
extern XkbDoodadPtr XkbAddGeomDoodad(XkbGeometryPtr /* geom */ ,
|
||||
XkbSectionPtr /* section */ ,
|
||||
Atom /* name */
|
||||
);
|
||||
XkbDoodadPtr SrvXkbAddGeomDoodad(XkbGeometryPtr geom,
|
||||
XkbSectionPtr section,
|
||||
Atom name);
|
||||
|
||||
extern void
|
||||
XkbFreeGeomKeyAliases(XkbGeometryPtr /* geom */ ,
|
||||
|
|
|
|||
|
|
@ -868,7 +868,7 @@ ReadXkmGeomDoodad(FILE * file, XkbGeometryPtr geom, XkbSectionPtr section)
|
|||
nRead += XkmGetCountedString(file, buf, 100);
|
||||
tmp = fread(&doodadWire, SIZEOF(xkmDoodadDesc), 1, file);
|
||||
nRead += SIZEOF(xkmDoodadDesc) * tmp;
|
||||
doodad = XkbAddGeomDoodad(geom, section, XkbInternAtom(buf, FALSE));
|
||||
doodad = SrvXkbAddGeomDoodad(geom, section, XkbInternAtom(buf, FALSE));
|
||||
if (!doodad)
|
||||
return nRead;
|
||||
doodad->any.type = doodadWire.any.type;
|
||||
|
|
|
|||
Loading…
Reference in New Issue