xkb: rename XkbAddGeomColor() to SrvXkbAddGeomColor()
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
12f4832d82
commit
2a4410a655
|
@ -603,7 +603,7 @@ SrvXkbAddGeomKeyAlias(XkbGeometryPtr geom, char *aliasStr, char *realStr)
|
|||
}
|
||||
|
||||
XkbColorPtr
|
||||
XkbAddGeomColor(XkbGeometryPtr geom, char *spec, unsigned int pixel)
|
||||
SrvXkbAddGeomColor(XkbGeometryPtr geom, char *spec, unsigned int pixel)
|
||||
{
|
||||
register int i;
|
||||
register XkbColorPtr color;
|
||||
|
|
|
@ -5570,7 +5570,7 @@ _CheckSetGeom(XkbGeometryPtr geom, xkbSetGeometryReq * req, ClientPtr client)
|
|||
status = _GetCountedString(&wire, client, &name);
|
||||
if (status != Success)
|
||||
return status;
|
||||
if (!XkbAddGeomColor(geom, name, geom->num_colors)) {
|
||||
if (!SrvXkbAddGeomColor(geom, name, geom->num_colors)) {
|
||||
free(name);
|
||||
return BadAlloc;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
#include "xkbstr.h"
|
||||
|
||||
#define XkbAddGeomColor SrvXkbAddGeomColor
|
||||
#define XkbAddGeomDoodad SrvXkbAddGeomDoodad
|
||||
#define XkbAddGeomKey SrvXkbAddGeomKey
|
||||
#define XkbAddGeomOutline SrvXkbAddGeomOutline
|
||||
|
@ -320,10 +319,9 @@ XkbKeyAliasPtr SrvXkbAddGeomKeyAlias(XkbGeometryPtr geom,
|
|||
char *alias,
|
||||
char *real);
|
||||
|
||||
extern XkbColorPtr XkbAddGeomColor(XkbGeometryPtr /* geom */ ,
|
||||
char * /* spec */ ,
|
||||
unsigned int /* pixel */
|
||||
);
|
||||
XkbColorPtr SrvXkbAddGeomColor(XkbGeometryPtr geom,
|
||||
char *spec,
|
||||
unsigned int pixel);
|
||||
|
||||
extern XkbOutlinePtr XkbAddGeomOutline(XkbShapePtr /* shape */ ,
|
||||
int /* sz_points */
|
||||
|
|
|
@ -1077,7 +1077,7 @@ ReadXkmGeometry(FILE * file, XkbDescPtr xkb)
|
|||
if (wireGeom.num_colors > 0) {
|
||||
for (i = 0; i < wireGeom.num_colors; i++) {
|
||||
nRead += XkmGetCountedString(file, buf, 100);
|
||||
if (XkbAddGeomColor(geom, buf, i) == NULL) {
|
||||
if (SrvXkbAddGeomColor(geom, buf, i) == NULL) {
|
||||
_XkbLibError(_XkbErrBadAlloc, "ReadXkmGeometry", 0);
|
||||
return nRead;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue