dix: unexport and document CountBits()
Not used by any drivers/modules, so no need to keep it exported. Also adding a bit of documentation. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
37b7ea8f8a
commit
f8eae88dc7
|
|
@ -364,4 +364,13 @@ int InputThreadRegisterDev(int fd,
|
|||
|
||||
int InputThreadUnregisterDev(int fd);
|
||||
|
||||
/*
|
||||
* @brief count the bits set in the given bitmask
|
||||
*
|
||||
* @param mask pointer to bitmask
|
||||
* @param len size of bitmask in bits (may span multiple bytes)
|
||||
* @return number of bits set in the given bitmask
|
||||
*/
|
||||
int CountBits(const uint8_t * mask, int len);
|
||||
|
||||
#endif /* _XSERVER_INPUT_PRIV_H */
|
||||
|
|
|
|||
|
|
@ -63,7 +63,6 @@ extern _X_EXPORT void AssignTypeAndName(DeviceIntPtr dev,
|
|||
#define BitIsOn(ptr, bit) (!!(((const BYTE *) (ptr))[(bit)>>3] & (1 << ((bit) & 7))))
|
||||
#define SetBit(ptr, bit) (((BYTE *) (ptr))[(bit)>>3] |= (1 << ((bit) & 7)))
|
||||
#define ClearBit(ptr, bit) (((BYTE *)(ptr))[(bit)>>3] &= ~(1 << ((bit) & 7)))
|
||||
extern _X_EXPORT int CountBits(const uint8_t * mask, int len);
|
||||
|
||||
#define SameClient(obj,client) \
|
||||
(CLIENT_BITS((obj)->resource) == (client)->clientAsMask)
|
||||
|
|
|
|||
Loading…
Reference in New Issue