diff options
author | jji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-30 06:14:35 +0000 |
---|---|---|
committer | jji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-30 06:14:35 +0000 |
commit | 7492c63d423201cbabc00c343cc25269bb1254c1 (patch) | |
tree | d93889cc23d790f1d14cf66da4a898125be7c39d /UnixPkg/Sec/UgaX11.c | |
parent | ba31c2e08e5c3925b4c21b454ee7ee2c7366657c (diff) | |
download | edk2-platforms-7492c63d423201cbabc00c343cc25269bb1254c1.tar.xz |
Patch to remove STATIC modifier. This is on longer recommended by EFI Framework coding style. All duplicated symbols has been renamed accordingly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6301 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg/Sec/UgaX11.c')
-rw-r--r-- | UnixPkg/Sec/UgaX11.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/UnixPkg/Sec/UgaX11.c b/UnixPkg/Sec/UgaX11.c index dee18c292f..a3c152dac3 100644 --- a/UnixPkg/Sec/UgaX11.c +++ b/UnixPkg/Sec/UgaX11.c @@ -66,10 +66,10 @@ typedef struct EFI_INPUT_KEY keys[NBR_KEYS]; } UGA_IO_PRIVATE; -static void +void HandleEvents(UGA_IO_PRIVATE *drv); -static void +void fill_shift_mask (struct uga_drv_shift_mask *sm, unsigned long mask) { sm->shift = 0; @@ -87,7 +87,7 @@ fill_shift_mask (struct uga_drv_shift_mask *sm, unsigned long mask) sm->csize = 8 - sm->size; } -static int +int TryCreateShmImage(UGA_IO_PRIVATE *drv) { drv->image = XShmCreateImage (drv->display, drv->visual, @@ -139,7 +139,6 @@ TryCreateShmImage(UGA_IO_PRIVATE *drv) return 1; } -static EFI_STATUS UgaClose (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo) { @@ -163,7 +162,6 @@ UgaClose (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo) return EFI_SUCCESS; } -static EFI_STATUS UgaSize(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, UINT32 Width, UINT32 Height) { @@ -220,7 +218,7 @@ UgaSize(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, UINT32 Width, UINT32 Height) return EFI_SUCCESS; } -static void +void handleKeyEvent(UGA_IO_PRIVATE *drv, XEvent *ev) { KeySym keysym; @@ -270,7 +268,7 @@ handleKeyEvent(UGA_IO_PRIVATE *drv, XEvent *ev) drv->key_count++; } -static void +void Redraw(UGA_IO_PRIVATE *drv, UINTN X, UINTN Y, UINTN Width, UINTN Height) { if (drv->use_shm) @@ -282,7 +280,7 @@ Redraw(UGA_IO_PRIVATE *drv, UINTN X, UINTN Y, UINTN Width, UINTN Height) XFlush(drv->display); } -static void +void HandleEvent(UGA_IO_PRIVATE *drv, XEvent *ev) { switch (ev->type) @@ -313,7 +311,7 @@ HandleEvent(UGA_IO_PRIVATE *drv, XEvent *ev) } } -static void +void HandleEvents(UGA_IO_PRIVATE *drv) { while (XPending(drv->display) != 0) @@ -325,7 +323,6 @@ HandleEvents(UGA_IO_PRIVATE *drv) } } -static unsigned long UgaPixelToColor (UGA_IO_PRIVATE *drv, EFI_UGA_PIXEL pixel) { @@ -334,7 +331,6 @@ UgaPixelToColor (UGA_IO_PRIVATE *drv, EFI_UGA_PIXEL pixel) | ((pixel.Blue >> drv->b.csize) << drv->b.shift); } -static EFI_UGA_PIXEL UgaColorToPixel (UGA_IO_PRIVATE *drv, unsigned long val) { @@ -349,7 +345,6 @@ UgaColorToPixel (UGA_IO_PRIVATE *drv, unsigned long val) return res; } -static EFI_STATUS UgaCheckKey(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo) { @@ -364,7 +359,6 @@ UgaCheckKey(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo) } } -static EFI_STATUS UgaGetKey(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, EFI_INPUT_KEY *key) { |