Lines Matching refs:wire
48 _WriteCountedString(char *wire, char *str)
53 pLen = (CARD16 *) wire;
56 memcpy(&wire[2], str, len);
57 wire += XkbPaddedSize(len + 2);
58 return wire;
173 _WriteGeomProperties(char *wire, XkbGeometryPtr geom)
179 wire = _WriteCountedString(wire, prop->name);
180 wire = _WriteCountedString(wire, prop->value);
182 return wire;
186 _WriteGeomColors(char *wire, XkbGeometryPtr geom)
192 wire = _WriteCountedString(wire, color->spec);
194 return wire;
198 _WriteGeomShapes(char *wire, XkbGeometryPtr geom)
209 shapeWire = (xkbShapeWireDesc *) wire;
220 wire = (char *) &shapeWire[1];
226 olWire = (xkbOutlineWireDesc *) wire;
229 wire = (char *) &olWire[1];
230 ptWire = (xkbPointWireDesc *) wire;
235 wire = (char *) &ptWire[ol->num_points];
238 return wire;
242 _WriteGeomDoodads(char *wire, int num_doodads, XkbDoodadPtr doodad)
247 xkbDoodadWireDesc *doodadWire = (xkbDoodadWireDesc *) wire;
249 wire = (char *) &doodadWire[1];
267 wire = _WriteCountedString(wire, doodad->text.text);
268 wire = _WriteCountedString(wire, doodad->text.font);
278 wire = _WriteCountedString(wire, doodad->logo.logo_name);
284 return wire;
288 _WriteGeomOverlay(char *wire, XkbOverlayPtr ol)
292 xkbOverlayWireDesc *olWire = (xkbOverlayWireDesc *) wire;
296 wire = (char *) &olWire[1];
300 xkbOverlayRowWireDesc *rowWire = (xkbOverlayRowWireDesc *) wire;
304 wire = (char *) &rowWire[1];
306 xkbOverlayKeyWireDesc *keyWire = (xkbOverlayKeyWireDesc *) wire;
310 wire = (char *) &keyWire[1];
313 return wire;
317 _WriteGeomSections(char *wire, XkbGeometryPtr geom)
324 xkbSectionWireDesc *sectionWire = (xkbSectionWireDesc *) wire;
337 wire = (char *) §ionWire[1];
343 xkbRowWireDesc *rowWire = (xkbRowWireDesc *) wire;
350 wire = (char *) &rowWire[1];
354 xkbKeyWireDesc *keyWire = (xkbKeyWireDesc *) wire;
363 wire = (char *) &keyWire[row->num_keys];
368 wire = _WriteGeomDoodads(wire,
375 wire = _WriteGeomOverlay(wire, §ion->overlays[o]);
379 return wire;
383 _WriteGeomKeyAliases(char *wire, XkbGeometryPtr geom)
389 memcpy(wire, (char *) geom->key_aliases, (size_t)sz);
390 wire += sz;
392 return wire;
401 char *wire, *tbuf;
413 BufAlloc(char *, wire, sz);
420 wire = tbuf;
422 wire = _WriteCountedString(wire, geom->label_font);
424 wire = _WriteGeomProperties(wire, geom);
426 wire = _WriteGeomColors(wire, geom);
428 wire = _WriteGeomShapes(wire, geom);
430 wire = _WriteGeomSections(wire, geom);
432 wire = _WriteGeomDoodads(wire, geom->num_doodads, geom->doodads);
434 wire = _WriteGeomKeyAliases(wire, geom);