Lines Matching refs:prop
58 RRDestroyOutputProperty(RRPropertyPtr prop) in RRDestroyOutputProperty() argument
60 free(prop->valid_values); in RRDestroyOutputProperty()
61 free(prop->current.data); in RRDestroyOutputProperty()
62 free(prop->pending.data); in RRDestroyOutputProperty()
63 free(prop); in RRDestroyOutputProperty()
67 RRDeleteProperty(RROutputRec * output, RRPropertyRec * prop) in RRDeleteProperty() argument
74 .atom = prop->propertyName, in RRDeleteProperty()
80 RRDestroyOutputProperty(prop); in RRDeleteProperty()
86 RRPropertyPtr prop, next; in RRDeleteAllOutputProperties() local
88 for (prop = output->properties; prop; prop = next) { in RRDeleteAllOutputProperties()
89 next = prop->next; in RRDeleteAllOutputProperties()
90 RRDeleteProperty(output, prop); in RRDeleteAllOutputProperties()
106 RRPropertyPtr prop; in RRCreateOutputProperty() local
108 prop = (RRPropertyPtr) malloc(sizeof(RRPropertyRec)); in RRCreateOutputProperty()
109 if (!prop) in RRCreateOutputProperty()
111 prop->next = NULL; in RRCreateOutputProperty()
112 prop->propertyName = property; in RRCreateOutputProperty()
113 prop->is_pending = FALSE; in RRCreateOutputProperty()
114 prop->range = FALSE; in RRCreateOutputProperty()
115 prop->immutable = FALSE; in RRCreateOutputProperty()
116 prop->num_valid = 0; in RRCreateOutputProperty()
117 prop->valid_values = NULL; in RRCreateOutputProperty()
118 RRInitOutputPropertyValue(&prop->current); in RRCreateOutputProperty()
119 RRInitOutputPropertyValue(&prop->pending); in RRCreateOutputProperty()
120 return prop; in RRCreateOutputProperty()
126 RRPropertyRec *prop, **prev; in RRDeleteOutputProperty() local
128 for (prev = &output->properties; (prop = *prev); prev = &(prop->next)) in RRDeleteOutputProperty()
129 if (prop->propertyName == property) { in RRDeleteOutputProperty()
130 *prev = prop->next; in RRDeleteOutputProperty()
131 RRDeleteProperty(output, prop); in RRDeleteOutputProperty()
164 RRPropertyPtr prop; in RRChangeOutputProperty() local
175 prop = RRQueryOutputProperty(output, property); in RRChangeOutputProperty()
176 if (!prop) { /* just add to list */ in RRChangeOutputProperty()
177 prop = RRCreateOutputProperty(property); in RRChangeOutputProperty()
178 if (!prop) in RRChangeOutputProperty()
183 if (pending && prop->is_pending) in RRChangeOutputProperty()
184 prop_value = &prop->pending; in RRChangeOutputProperty()
186 prop_value = &prop->current; in RRChangeOutputProperty()
209 RRDestroyOutputProperty(prop); in RRChangeOutputProperty()
240 prop->propertyName, &new_value)) { in RRChangeOutputProperty()
243 RRDestroyOutputProperty(prop); in RRChangeOutputProperty()
255 prop->next = output->properties; in RRChangeOutputProperty()
256 output->properties = prop; in RRChangeOutputProperty()
259 if (pending && prop->is_pending) in RRChangeOutputProperty()
262 if (!(pending && prop->is_pending)) in RRChangeOutputProperty()
263 RRNoticePropertyChange(output, prop->propertyName, prop_value); in RRChangeOutputProperty()
271 .atom = prop->propertyName, in RRChangeOutputProperty()
322 RRPropertyPtr prop; in RRQueryOutputProperty() local
324 for (prop = output->properties; prop; prop = prop->next) in RRQueryOutputProperty()
325 if (prop->propertyName == property) in RRQueryOutputProperty()
326 return prop; in RRQueryOutputProperty()
333 RRPropertyPtr prop = RRQueryOutputProperty(output, property); in RRGetOutputProperty() local
336 if (!prop) in RRGetOutputProperty()
338 if (pending && prop->is_pending) in RRGetOutputProperty()
339 return &prop->pending; in RRGetOutputProperty()
345 prop->propertyName); in RRGetOutputProperty()
347 return &prop->current; in RRGetOutputProperty()
356 RRPropertyPtr prop = RRQueryOutputProperty(output, property); in RRConfigureOutputProperty() local
360 if (!prop) { in RRConfigureOutputProperty()
361 prop = RRCreateOutputProperty(property); in RRConfigureOutputProperty()
362 if (!prop) in RRConfigureOutputProperty()
366 else if (prop->immutable && !immutable) in RRConfigureOutputProperty()
374 RRDestroyOutputProperty(prop); in RRConfigureOutputProperty()
381 RRDestroyOutputProperty(prop); in RRConfigureOutputProperty()
391 if (prop->is_pending && !pending) { in RRConfigureOutputProperty()
392 free(prop->pending.data); in RRConfigureOutputProperty()
393 RRInitOutputPropertyValue(&prop->pending); in RRConfigureOutputProperty()
396 prop->is_pending = pending; in RRConfigureOutputProperty()
397 prop->range = range; in RRConfigureOutputProperty()
398 prop->immutable = immutable; in RRConfigureOutputProperty()
399 prop->num_valid = num_values; in RRConfigureOutputProperty()
400 free(prop->valid_values); in RRConfigureOutputProperty()
401 prop->valid_values = new_values; in RRConfigureOutputProperty()
404 prop->next = output->properties; in RRConfigureOutputProperty()
405 output->properties = prop; in RRConfigureOutputProperty()
419 RRPropertyPtr prop; in ProcRRListOutputProperties() local
425 for (prop = output->properties; prop; prop = prop->next) in ProcRRListOutputProperties()
447 for (prop = output->properties; prop; prop = prop->next) in ProcRRListOutputProperties()
448 *temppAtoms++ = prop->propertyName; in ProcRRListOutputProperties()
463 RRPropertyPtr prop; in ProcRRQueryOutputProperty() local
470 prop = RRQueryOutputProperty(output, stuff->property); in ProcRRQueryOutputProperty()
471 if (!prop) in ProcRRQueryOutputProperty()
474 if (prop->num_valid) { in ProcRRQueryOutputProperty()
475 extra = xallocarray(prop->num_valid, sizeof(INT32)); in ProcRRQueryOutputProperty()
483 .length = prop->num_valid, in ProcRRQueryOutputProperty()
484 .pending = prop->is_pending, in ProcRRQueryOutputProperty()
485 .range = prop->range, in ProcRRQueryOutputProperty()
486 .immutable = prop->immutable in ProcRRQueryOutputProperty()
494 if (prop->num_valid) { in ProcRRQueryOutputProperty()
495 memcpy(extra, prop->valid_values, prop->num_valid * sizeof(INT32)); in ProcRRQueryOutputProperty()
497 WriteSwappedDataToClient(client, prop->num_valid * sizeof(INT32), in ProcRRQueryOutputProperty()
582 RRPropertyPtr prop; in ProcRRDeleteOutputProperty() local
596 prop = RRQueryOutputProperty(output, stuff->property); in ProcRRDeleteOutputProperty()
597 if (!prop) { in ProcRRDeleteOutputProperty()
602 if (prop->immutable) { in ProcRRDeleteOutputProperty()
615 RRPropertyPtr prop, *prev; in ProcRRGetOutputProperty() local
641 for (prev = &output->properties; (prop = *prev); prev = &prop->next) in ProcRRGetOutputProperty()
642 if (prop->propertyName == stuff->property) in ProcRRGetOutputProperty()
649 if (!prop) { in ProcRRGetOutputProperty()
666 if (prop->immutable && stuff->delete) in ProcRRGetOutputProperty()
730 .atom = prop->propertyName, in ProcRRGetOutputProperty()
762 *prev = prop->next; in ProcRRGetOutputProperty()
763 RRDestroyOutputProperty(prop); in ProcRRGetOutputProperty()