Lines Matching defs:lib
92 XIDeviceInfo *lib = &info[i];
98 lib->deviceid = wire->deviceid;
99 lib->use = wire->use;
100 lib->attachment = wire->attachment;
101 lib->enabled = wire->enabled;
109 lib->name = Xcalloc(wire->name_len + 1, 1);
110 if (lib->name == NULL)
112 strncpy(lib->name, ptr, wire->name_len);
113 lib->name[wire->name_len] = '\0';
117 lib->classes = Xmalloc(sz);
118 if (lib->classes == NULL)
120 Xfree(lib->name);
123 ptr += copy_classes(lib, (xXIAnyInfo*)ptr, &nclasses);
125 lib->num_classes = nclasses;