Lines Matching defs:wire
51 _WriteCountedString(char *wire, char *str)
56 pLen = (CARD16 *) wire;
59 memcpy(&wire[2], str, len);
60 wire += XkbPaddedSize(len + 2);
61 return wire;
176 _WriteGeomProperties(char *wire, XkbGeometryPtr geom)
182 wire = _WriteCountedString(wire, prop->name);
183 wire = _WriteCountedString(wire, prop->value);
185 return wire;
189 _WriteGeomColors(char *wire, XkbGeometryPtr geom)
195 wire = _WriteCountedString(wire, color->spec);
197 return wire;
201 _WriteGeomShapes(char *wire, XkbGeometryPtr geom)
212 shapeWire = (xkbShapeWireDesc *) wire;
223 wire = (char *) &shapeWire[1];
229 olWire = (xkbOutlineWireDesc *) wire;
232 wire = (char *) &olWire[1];
233 ptWire = (xkbPointWireDesc *) wire;
238 wire = (char *) &ptWire[ol->num_points];
241 return wire;
245 _WriteGeomDoodads(char *wire, int num_doodads, XkbDoodadPtr doodad)
250 xkbDoodadWireDesc *doodadWire = (xkbDoodadWireDesc *) wire;
252 wire = (char *) &doodadWire[1];
270 wire = _WriteCountedString(wire, doodad->text.text);
271 wire = _WriteCountedString(wire, doodad->text.font);
281 wire = _WriteCountedString(wire, doodad->logo.logo_name);
287 return wire;
291 _WriteGeomOverlay(char *wire, XkbOverlayPtr ol)
295 xkbOverlayWireDesc *olWire = (xkbOverlayWireDesc *) wire;
299 wire = (char *) &olWire[1];
303 xkbOverlayRowWireDesc *rowWire = (xkbOverlayRowWireDesc *) wire;
307 wire = (char *) &rowWire[1];
309 xkbOverlayKeyWireDesc *keyWire = (xkbOverlayKeyWireDesc *) wire;
313 wire = (char *) &keyWire[1];
316 return wire;
320 _WriteGeomSections(char *wire, XkbGeometryPtr geom)
327 xkbSectionWireDesc *sectionWire = (xkbSectionWireDesc *) wire;
340 wire = (char *) §ionWire[1];
346 xkbRowWireDesc *rowWire = (xkbRowWireDesc *) wire;
353 wire = (char *) &rowWire[1];
357 xkbKeyWireDesc *keyWire = (xkbKeyWireDesc *) wire;
366 wire = (char *) &keyWire[row->num_keys];
371 wire = _WriteGeomDoodads(wire,
378 wire = _WriteGeomOverlay(wire, §ion->overlays[o]);
382 return wire;
386 _WriteGeomKeyAliases(char *wire, XkbGeometryPtr geom)
392 memcpy(wire, (char *) geom->key_aliases, (size_t)sz);
393 wire += sz;
395 return wire;
404 char *wire, *tbuf;
416 BufAlloc(char *, wire, sz);
423 wire = tbuf;
425 wire = _WriteCountedString(wire, geom->label_font);
427 wire = _WriteGeomProperties(wire, geom);
429 wire = _WriteGeomColors(wire, geom);
431 wire = _WriteGeomShapes(wire, geom);
433 wire = _WriteGeomSections(wire, geom);
435 wire = _WriteGeomDoodads(wire, geom->num_doodads, geom->doodads);
437 wire = _WriteGeomKeyAliases(wire, geom);