Xext: XGE: change function definition to have return value on separate line.
This seems to be the common style in most parts of the server.
This commit is contained in:
parent
d0890c40b9
commit
cc13f87cd8
22
Xext/geext.c
22
Xext/geext.c
|
@ -64,7 +64,8 @@ static void SGEGenericEvent(xEvent* from, xEvent* to);
|
||||||
/* request handlers */
|
/* request handlers */
|
||||||
/************************************************************/
|
/************************************************************/
|
||||||
|
|
||||||
static int ProcGEQueryVersion(ClientPtr client)
|
static int
|
||||||
|
ProcGEQueryVersion(ClientPtr client)
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
GEClientInfoPtr pGEClient = GEGetClient(client);
|
GEClientInfoPtr pGEClient = GEGetClient(client);
|
||||||
|
@ -160,7 +161,8 @@ SProcGEDispatch(ClientPtr client)
|
||||||
* We alloc a simple struct to store the client's major/minor version. Can be
|
* We alloc a simple struct to store the client's major/minor version. Can be
|
||||||
* used in the furture for versioning support.
|
* used in the furture for versioning support.
|
||||||
*/
|
*/
|
||||||
static void GEClientCallback(CallbackListPtr *list,
|
static void
|
||||||
|
GEClientCallback(CallbackListPtr *list,
|
||||||
pointer closure,
|
pointer closure,
|
||||||
pointer data)
|
pointer data)
|
||||||
{
|
{
|
||||||
|
@ -256,12 +258,11 @@ GEExtensionInit(void)
|
||||||
* @param ev_fill Called for an event before delivery. The extension now has
|
* @param ev_fill Called for an event before delivery. The extension now has
|
||||||
* the chance to fill in necessary fields for the event.
|
* the chance to fill in necessary fields for the event.
|
||||||
*/
|
*/
|
||||||
void GERegisterExtension(
|
void
|
||||||
int extension,
|
GERegisterExtension(int extension,
|
||||||
void (*ev_swap)(xGenericEvent* from, xGenericEvent* to),
|
void (*ev_swap)(xGenericEvent* from, xGenericEvent* to),
|
||||||
void (*ev_fill)(xGenericEvent* ev, DeviceIntPtr pDev,
|
void (*ev_fill)(xGenericEvent* ev, DeviceIntPtr pDev,
|
||||||
WindowPtr pWin, GrabPtr pGrab)
|
WindowPtr pWin, GrabPtr pGrab))
|
||||||
)
|
|
||||||
{
|
{
|
||||||
if ((extension & 0x7F) >= MAXEXTENSIONS)
|
if ((extension & 0x7F) >= MAXEXTENSIONS)
|
||||||
FatalError("GE: extension > MAXEXTENSIONS. This should not happen.\n");
|
FatalError("GE: extension > MAXEXTENSIONS. This should not happen.\n");
|
||||||
|
@ -275,7 +276,8 @@ void GERegisterExtension(
|
||||||
/* Sets type and extension field for a generic event. This is just an
|
/* Sets type and extension field for a generic event. This is just an
|
||||||
* auxiliary function, extensions could do it manually too.
|
* auxiliary function, extensions could do it manually too.
|
||||||
*/
|
*/
|
||||||
void GEInitEvent(xGenericEvent* ev, int extension)
|
void
|
||||||
|
GEInitEvent(xGenericEvent* ev, int extension)
|
||||||
{
|
{
|
||||||
ev->type = GenericEvent;
|
ev->type = GenericEvent;
|
||||||
ev->extension = extension;
|
ev->extension = extension;
|
||||||
|
@ -312,7 +314,8 @@ GERecalculateWinMask(WindowPtr pWin)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set generic event mask for given window. */
|
/* Set generic event mask for given window. */
|
||||||
void GEWindowSetMask(ClientPtr pClient, DeviceIntPtr pDev,
|
void
|
||||||
|
GEWindowSetMask(ClientPtr pClient, DeviceIntPtr pDev,
|
||||||
WindowPtr pWin, int extension, Mask mask)
|
WindowPtr pWin, int extension, Mask mask)
|
||||||
{
|
{
|
||||||
GenericMaskPtr cli;
|
GenericMaskPtr cli;
|
||||||
|
@ -397,7 +400,8 @@ void GEWindowSetMask(ClientPtr pClient, DeviceIntPtr pDev,
|
||||||
* @param extension Extension ID
|
* @param extension Extension ID
|
||||||
* @param mask Event mask
|
* @param mask Event mask
|
||||||
*/
|
*/
|
||||||
BOOL GEDeviceMaskIsSet(WindowPtr pWin, DeviceIntPtr pDev,
|
BOOL
|
||||||
|
GEDeviceMaskIsSet(WindowPtr pWin, DeviceIntPtr pDev,
|
||||||
int extension, Mask mask)
|
int extension, Mask mask)
|
||||||
{
|
{
|
||||||
GenericMaskPtr gemask;
|
GenericMaskPtr gemask;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user