diff options
author | Keith Packard <keithp@keithp.com> | 2012-03-21 12:55:09 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-03-21 13:54:42 -0700 |
commit | 9838b7032ea9792bec21af424c53c07078636d21 (patch) | |
tree | b72d0827dac50f0f3b8eab29b3b7639546d735d7 /composite/compint.h | |
parent | 75199129c603fc8567185ac31866c9518193cb78 (diff) |
Introduce a consistent coding style
This is strictly the application of the script 'x-indent-all.sh'
from util/modular. Compared to the patch that Daniel posted in
January, I've added a few indent flags:
-bap
-psl
-T PrivatePtr
-T pmWait
-T _XFUNCPROTOBEGIN
-T _XFUNCPROTOEND
-T _X_EXPORT
The typedefs were needed to make the output of sdksyms.sh match the
previous output, otherwise, the code is formatted badly enough that
sdksyms.sh generates incorrect output.
The generated code was compared with the previous version and found to
be essentially identical -- "assert" line numbers and BUILD_TIME were
the only differences found.
The comparison was done with this script:
dir1=$1
dir2=$2
for dir in $dir1 $dir2; do
(cd $dir && find . -name '*.o' | while read file; do
dir=`dirname $file`
base=`basename $file .o`
dump=$dir/$base.dump
objdump -d $file > $dump
done)
done
find $dir1 -name '*.dump' | while read dump; do
otherdump=`echo $dump | sed "s;$dir1;$dir2;"`
diff -u $dump $otherdump
done
Signed-off-by: Keith Packard <keithp@keithp.com>
Acked-by: Daniel Stone <daniel@fooishbar.org>
Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'composite/compint.h')
-rw-r--r-- | composite/compint.h | 195 |
1 files changed, 100 insertions, 95 deletions
diff --git a/composite/compint.h b/composite/compint.h index bb5335d70..6c4272e5b 100644 --- a/composite/compint.h +++ b/composite/compint.h @@ -80,29 +80,29 @@ */ typedef struct _CompClientWindow { - struct _CompClientWindow *next; - XID id; - int update; -} CompClientWindowRec, *CompClientWindowPtr; + struct _CompClientWindow *next; + XID id; + int update; +} CompClientWindowRec, *CompClientWindowPtr; typedef struct _CompWindow { - RegionRec borderClip; - DamagePtr damage; /* for automatic update mode */ - Bool damageRegistered; - Bool damaged; - int update; - CompClientWindowPtr clients; - int oldx; - int oldy; - PixmapPtr pOldPixmap; - int borderClipX, borderClipY; + RegionRec borderClip; + DamagePtr damage; /* for automatic update mode */ + Bool damageRegistered; + Bool damaged; + int update; + CompClientWindowPtr clients; + int oldx; + int oldy; + PixmapPtr pOldPixmap; + int borderClipX, borderClipY; } CompWindowRec, *CompWindowPtr; #define COMP_ORIGIN_INVALID 0x80000000 typedef struct _CompSubwindows { - int update; - CompClientWindowPtr clients; + int update; + CompClientWindowPtr clients; } CompSubwindowsRec, *CompSubwindowsPtr; #ifndef COMP_INCLUDE_RGB24_VISUAL @@ -112,64 +112,67 @@ typedef struct _CompSubwindows { typedef struct _CompOverlayClientRec *CompOverlayClientPtr; typedef struct _CompOverlayClientRec { - CompOverlayClientPtr pNext; - ClientPtr pClient; - ScreenPtr pScreen; - XID resource; + CompOverlayClientPtr pNext; + ClientPtr pClient; + ScreenPtr pScreen; + XID resource; } CompOverlayClientRec; typedef struct _CompScreen { - PositionWindowProcPtr PositionWindow; - CopyWindowProcPtr CopyWindow; - CreateWindowProcPtr CreateWindow; - DestroyWindowProcPtr DestroyWindow; - RealizeWindowProcPtr RealizeWindow; - UnrealizeWindowProcPtr UnrealizeWindow; - ClipNotifyProcPtr ClipNotify; + PositionWindowProcPtr PositionWindow; + CopyWindowProcPtr CopyWindow; + CreateWindowProcPtr CreateWindow; + DestroyWindowProcPtr DestroyWindow; + RealizeWindowProcPtr RealizeWindow; + UnrealizeWindowProcPtr UnrealizeWindow; + ClipNotifyProcPtr ClipNotify; /* * Called from ConfigureWindow, these * three track changes to the offscreen storage * geometry */ - ConfigNotifyProcPtr ConfigNotify; - MoveWindowProcPtr MoveWindow; - ResizeWindowProcPtr ResizeWindow; - ChangeBorderWidthProcPtr ChangeBorderWidth; + ConfigNotifyProcPtr ConfigNotify; + MoveWindowProcPtr MoveWindow; + ResizeWindowProcPtr ResizeWindow; + ChangeBorderWidthProcPtr ChangeBorderWidth; /* * Reparenting has an effect on Subwindows redirect */ - ReparentWindowProcPtr ReparentWindow; - + ReparentWindowProcPtr ReparentWindow; + /* * Colormaps for new visuals better not get installed */ - InstallColormapProcPtr InstallColormap; + InstallColormapProcPtr InstallColormap; /* * Fake backing store via automatic redirection */ ChangeWindowAttributesProcPtr ChangeWindowAttributes; - ScreenBlockHandlerProcPtr BlockHandler; - CloseScreenProcPtr CloseScreen; - int numAlternateVisuals; - VisualID *alternateVisuals; - - WindowPtr pOverlayWin; - Window overlayWid; - CompOverlayClientPtr pOverlayClients; - - GetImageProcPtr GetImage; - SourceValidateProcPtr SourceValidate; + ScreenBlockHandlerProcPtr BlockHandler; + CloseScreenProcPtr CloseScreen; + int numAlternateVisuals; + VisualID *alternateVisuals; + + WindowPtr pOverlayWin; + Window overlayWid; + CompOverlayClientPtr pOverlayClients; + + GetImageProcPtr GetImage; + SourceValidateProcPtr SourceValidate; } CompScreenRec, *CompScreenPtr; extern DevPrivateKeyRec CompScreenPrivateKeyRec; + #define CompScreenPrivateKey (&CompScreenPrivateKeyRec) extern DevPrivateKeyRec CompWindowPrivateKeyRec; + #define CompWindowPrivateKey (&CompWindowPrivateKeyRec) extern DevPrivateKeyRec CompSubwindowsPrivateKeyRec; + #define CompSubwindowsPrivateKey (&CompSubwindowsPrivateKeyRec) #define GetCompScreen(s) ((CompScreenPtr) \ @@ -179,83 +182,84 @@ extern DevPrivateKeyRec CompSubwindowsPrivateKeyRec; #define GetCompSubwindows(w) ((CompSubwindowsPtr) \ dixLookupPrivate(&(w)->devPrivates, CompSubwindowsPrivateKey)) -extern RESTYPE CompositeClientWindowType; -extern RESTYPE CompositeClientSubwindowsType; -extern RESTYPE CompositeClientOverlayType; +extern RESTYPE CompositeClientWindowType; +extern RESTYPE CompositeClientSubwindowsType; +extern RESTYPE CompositeClientOverlayType; /* * compalloc.c */ Bool -compRedirectWindow (ClientPtr pClient, WindowPtr pWin, int update); + compRedirectWindow(ClientPtr pClient, WindowPtr pWin, int update); void -compFreeClientWindow (WindowPtr pWin, XID id); + compFreeClientWindow(WindowPtr pWin, XID id); int -compUnredirectWindow (ClientPtr pClient, WindowPtr pWin, int update); + compUnredirectWindow(ClientPtr pClient, WindowPtr pWin, int update); int -compRedirectSubwindows (ClientPtr pClient, WindowPtr pWin, int update); + compRedirectSubwindows(ClientPtr pClient, WindowPtr pWin, int update); void -compFreeClientSubwindows (WindowPtr pWin, XID id); + compFreeClientSubwindows(WindowPtr pWin, XID id); int -compUnredirectSubwindows (ClientPtr pClient, WindowPtr pWin, int update); + compUnredirectSubwindows(ClientPtr pClient, WindowPtr pWin, int update); int -compRedirectOneSubwindow (WindowPtr pParent, WindowPtr pWin); + compRedirectOneSubwindow(WindowPtr pParent, WindowPtr pWin); int -compUnredirectOneSubwindow (WindowPtr pParent, WindowPtr pWin); + compUnredirectOneSubwindow(WindowPtr pParent, WindowPtr pWin); Bool -compAllocPixmap (WindowPtr pWin); + compAllocPixmap(WindowPtr pWin); void -compSetParentPixmap (WindowPtr pWin); + compSetParentPixmap(WindowPtr pWin); void -compRestoreWindow (WindowPtr pWin, PixmapPtr pPixmap); + compRestoreWindow(WindowPtr pWin, PixmapPtr pPixmap); Bool -compReallocPixmap (WindowPtr pWin, int x, int y, - unsigned int w, unsigned int h, int bw); + +compReallocPixmap(WindowPtr pWin, int x, int y, + unsigned int w, unsigned int h, int bw); /* * compext.c */ void -CompositeExtensionInit (void); + CompositeExtensionInit(void); /* * compinit.c */ Bool -compScreenInit (ScreenPtr pScreen); + compScreenInit(ScreenPtr pScreen); /* * compoverlay.c */ void -compFreeOverlayClient (CompOverlayClientPtr pOcToDel); + compFreeOverlayClient(CompOverlayClientPtr pOcToDel); CompOverlayClientPtr -compFindOverlayClient (ScreenPtr pScreen, ClientPtr pClient); - +compFindOverlayClient(ScreenPtr pScreen, ClientPtr pClient); + CompOverlayClientPtr -compCreateOverlayClient (ScreenPtr pScreen, ClientPtr pClient); +compCreateOverlayClient(ScreenPtr pScreen, ClientPtr pClient); Bool -compCreateOverlayWindow (ScreenPtr pScreen); + compCreateOverlayWindow(ScreenPtr pScreen); void -compDestroyOverlayWindow (ScreenPtr pScreen); + compDestroyOverlayWindow(ScreenPtr pScreen); /* * compwindow.c @@ -263,74 +267,75 @@ compDestroyOverlayWindow (ScreenPtr pScreen); #ifdef COMPOSITE_DEBUG void -compCheckTree (ScreenPtr pScreen); + compCheckTree(ScreenPtr pScreen); #else #define compCheckTree(s) #endif -PictFormatPtr -compWindowFormat (WindowPtr pWin); +PictFormatPtr compWindowFormat(WindowPtr pWin); void -compSetPixmap (WindowPtr pWin, PixmapPtr pPixmap); + compSetPixmap(WindowPtr pWin, PixmapPtr pPixmap); Bool -compCheckRedirect (WindowPtr pWin); + compCheckRedirect(WindowPtr pWin); Bool -compPositionWindow (WindowPtr pWin, int x, int y); + compPositionWindow(WindowPtr pWin, int x, int y); Bool -compRealizeWindow (WindowPtr pWin); + compRealizeWindow(WindowPtr pWin); Bool -compUnrealizeWindow (WindowPtr pWin); + compUnrealizeWindow(WindowPtr pWin); void -compClipNotify (WindowPtr pWin, int dx, int dy); + compClipNotify(WindowPtr pWin, int dx, int dy); void -compMoveWindow (WindowPtr pWin, int x, int y, WindowPtr pSib, VTKind kind); + compMoveWindow(WindowPtr pWin, int x, int y, WindowPtr pSib, VTKind kind); void -compResizeWindow (WindowPtr pWin, int x, int y, - unsigned int w, unsigned int h, WindowPtr pSib); + +compResizeWindow(WindowPtr pWin, int x, int y, + unsigned int w, unsigned int h, WindowPtr pSib); void -compChangeBorderWidth (WindowPtr pWin, unsigned int border_width); + compChangeBorderWidth(WindowPtr pWin, unsigned int border_width); void -compReparentWindow (WindowPtr pWin, WindowPtr pPriorParent); + compReparentWindow(WindowPtr pWin, WindowPtr pPriorParent); Bool -compCreateWindow (WindowPtr pWin); + compCreateWindow(WindowPtr pWin); Bool -compDestroyWindow (WindowPtr pWin); + compDestroyWindow(WindowPtr pWin); void -compSetRedirectBorderClip (WindowPtr pWin, RegionPtr pRegion); + compSetRedirectBorderClip(WindowPtr pWin, RegionPtr pRegion); RegionPtr -compGetRedirectBorderClip (WindowPtr pWin); + compGetRedirectBorderClip(WindowPtr pWin); void -compCopyWindow (WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc); + compCopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc); void -compPaintChildrenToWindow (WindowPtr pWin); + compPaintChildrenToWindow(WindowPtr pWin); WindowPtr -CompositeRealChildHead (WindowPtr pWin); + CompositeRealChildHead(WindowPtr pWin); int -DeleteWindowNoInputDevices(pointer value, XID wid); + DeleteWindowNoInputDevices(pointer value, XID wid); int + compConfigNotify(WindowPtr pWin, int x, int y, int w, int h, - int bw, WindowPtr pSib); + int bw, WindowPtr pSib); -void PanoramiXCompositeInit (void); -void PanoramiXCompositeReset (void); +void PanoramiXCompositeInit(void); +void PanoramiXCompositeReset(void); -#endif /* _COMPINT_H_ */ +#endif /* _COMPINT_H_ */ |