xkb: rename XkbAddGeomOutline() to SrvXkbAddGeomOutline()
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
0df6506f75
commit
cb3a805538
|
@ -630,7 +630,7 @@ SrvXkbAddGeomColor(XkbGeometryPtr geom, char *spec, unsigned int pixel)
|
|||
}
|
||||
|
||||
XkbOutlinePtr
|
||||
XkbAddGeomOutline(XkbShapePtr shape, int sz_points)
|
||||
SrvXkbAddGeomOutline(XkbShapePtr shape, int sz_points)
|
||||
{
|
||||
XkbOutlinePtr outline;
|
||||
|
||||
|
|
|
@ -5476,7 +5476,7 @@ _CheckSetShapes(XkbGeometryPtr geom,
|
|||
if (!_XkbCheckRequestBounds(client, req, olWire, olWire + 1))
|
||||
return BadLength;
|
||||
|
||||
ol = XkbAddGeomOutline(shape, olWire->nPoints);
|
||||
ol = SrvXkbAddGeomOutline(shape, olWire->nPoints);
|
||||
if (!ol)
|
||||
return BadAlloc;
|
||||
ol->corner_radius = olWire->cornerRadius;
|
||||
|
|
|
@ -29,7 +29,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
#include "xkbstr.h"
|
||||
|
||||
#define XkbAddGeomOutline SrvXkbAddGeomOutline
|
||||
#define XkbAddGeomOverlay SrvXkbAddGeomOverlay
|
||||
#define XkbAddGeomOverlayRow SrvXkbAddGeomOverlayRow
|
||||
#define XkbAddGeomOverlayKey SrvXkbAddGeomOverlayKey
|
||||
|
@ -321,9 +320,7 @@ XkbColorPtr SrvXkbAddGeomColor(XkbGeometryPtr geom,
|
|||
char *spec,
|
||||
unsigned int pixel);
|
||||
|
||||
extern XkbOutlinePtr XkbAddGeomOutline(XkbShapePtr /* shape */ ,
|
||||
int /* sz_points */
|
||||
);
|
||||
XkbOutlinePtr SrvXkbAddGeomOutline(XkbShapePtr shape, int sz_points);
|
||||
|
||||
extern XkbShapePtr XkbAddGeomShape(XkbGeometryPtr /* geom */ ,
|
||||
Atom /* name */ ,
|
||||
|
|
|
@ -1110,7 +1110,7 @@ ReadXkmGeometry(FILE * file, XkbDescPtr xkb)
|
|||
|
||||
tmp = fread(&olWire, SIZEOF(xkmOutlineDesc), 1, file);
|
||||
nRead += tmp * SIZEOF(xkmOutlineDesc);
|
||||
ol = XkbAddGeomOutline(shape, olWire.num_points);
|
||||
ol = SrvXkbAddGeomOutline(shape, olWire.num_points);
|
||||
if (!ol) {
|
||||
_XkbLibError(_XkbErrBadAlloc, "ReadXkmGeometry", 0);
|
||||
return nRead;
|
||||
|
|
Loading…
Reference in New Issue