Home | History | Annotate | Download | only in dix

Lines Matching defs:privates

58 #include "privates.h"
107 /* extension privates */
130 typedef Bool (*FixupFunc) (PrivatePtr *privates, int offset, unsigned bytes);
135 dixReallocPrivates(PrivatePtr *privates, int old_offset, unsigned bytes)
139 new_privates = realloc(*privates, old_offset + bytes);
143 *privates = new_privates;
148 dixMovePrivates(PrivatePtr *privates, int new_offset, unsigned bytes)
150 memmove((char *) *privates + bytes, *privates, new_offset - bytes);
151 memset(*privates, '\0', bytes);
169 /* Screen privates can contain screen-specific private keys
178 /* Moving means everyone shifts up in the privates by 'bytes' amount,
187 /* Walk the privates list, being careful as the
196 * is contained within the allocation. Privates
364 /* Move all existing keys up in the privates space to make
435 * Initialize privates by zeroing them
438 _dixInitPrivates(PrivatePtr *privates, void *addr, DevPrivateType type)
447 *privates = addr;
453 * Clean up privates
456 _dixFiniPrivates(PrivatePtr privates, DevPrivateType type)
464 * Allocate new object with privates.
475 PrivatePtr privates;
490 privates = (PrivatePtr) (((char *) object) + baseSize);
493 _dixInitPrivates(devPrivates, privates, type);
499 * Allocate privates separately from containing object.
503 dixAllocatePrivates(PrivatePtr *privates, DevPrivateType type)
521 _dixInitPrivates(privates, p, type);
528 * Free an object that has privates
534 _dixFreeObjectWithPrivates(void *object, PrivatePtr privates,
537 _dixFiniPrivates(privates, type);
542 * Called to free screen or client privates
545 dixFreePrivates(PrivatePtr privates, DevPrivateType type)
547 _dixFiniPrivates(privates, type);
549 free(privates);
553 * Return size of privates for the specified type
596 * Screen-specific privates
640 /* Clean up screen-specific privates before CloseScreen */
655 /* Initialize screen-specific privates in AddScreen */
665 /* Initialize screen-specific privates in AddScreen */
667 _dixInitScreenPrivates(ScreenPtr pScreen, PrivatePtr *privates, void *addr, DevPrivateType type)
684 *privates = addr;
698 PrivatePtr privates;
718 privates = (PrivatePtr) (((char *) object) + baseSize);
721 _dixInitScreenPrivates(pScreen, devPrivates, privates, type);