NXBE: function pointers should have CODE qualifier

This commit is contained in:
Gregory Nutt 2016-04-14 16:34:05 -06:00
parent aa34429222
commit 16666fdb84
2 changed files with 21 additions and 33 deletions

View File

@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* graphics/nxbe/nxbe.h * graphics/nxbe/nxbe.h
* *
* Copyright (C) 2008-2011, 2013 Gregory Nutt. All rights reserved. * Copyright (C) 2008-2011, 2013, 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -75,27 +75,27 @@ struct nxbe_plane_s
{ {
/* Raster operation callbacks for this bits-per-pixel value */ /* Raster operation callbacks for this bits-per-pixel value */
void (*setpixel)(FAR NX_PLANEINFOTYPE *pinfo, CODE void (*setpixel)(FAR NX_PLANEINFOTYPE *pinfo,
FAR const struct nxgl_point_s *pos, FAR const struct nxgl_point_s *pos,
nxgl_mxpixel_t color);
void (*fillrectangle)(FAR NX_PLANEINFOTYPE *pinfo,
FAR const struct nxgl_rect_s *rect,
nxgl_mxpixel_t color); nxgl_mxpixel_t color);
void (*getrectangle)(FAR NX_PLANEINFOTYPE *pinfo, CODE void (*fillrectangle)(FAR NX_PLANEINFOTYPE *pinfo,
FAR const struct nxgl_rect_s *rect, FAR const struct nxgl_rect_s *rect,
FAR void *dest, unsigned int deststride); nxgl_mxpixel_t color);
void (*filltrapezoid)(FAR NX_PLANEINFOTYPE *pinfo, CODE void (*getrectangle)(FAR NX_PLANEINFOTYPE *pinfo,
FAR const struct nxgl_trapezoid_s *trap, FAR const struct nxgl_rect_s *rect,
FAR const struct nxgl_rect_s *bounds, FAR void *dest, unsigned int deststride);
nxgl_mxpixel_t color); CODE void (*filltrapezoid)(FAR NX_PLANEINFOTYPE *pinfo,
void (*moverectangle)(FAR NX_PLANEINFOTYPE *pinfo, FAR const struct nxgl_trapezoid_s *trap,
FAR const struct nxgl_rect_s *rect, FAR const struct nxgl_rect_s *bounds,
FAR struct nxgl_point_s *offset); nxgl_mxpixel_t color);
void (*copyrectangle)(FAR NX_PLANEINFOTYPE *pinfo, CODE void (*moverectangle)(FAR NX_PLANEINFOTYPE *pinfo,
FAR const struct nxgl_rect_s *dest, FAR const struct nxgl_rect_s *rect,
FAR const void *src, FAR struct nxgl_point_s *offset);
FAR const struct nxgl_point_s *origin, CODE void (*copyrectangle)(FAR NX_PLANEINFOTYPE *pinfo,
unsigned int srcstride); FAR const struct nxgl_rect_s *dest,
FAR const void *src,
FAR const struct nxgl_point_s *origin,
unsigned int srcstride);
/* Framebuffer plane info describing destination video plane */ /* Framebuffer plane info describing destination video plane */

View File

@ -53,10 +53,6 @@
# define CONFIG_NX_BGCOLOR 0 # define CONFIG_NX_BGCOLOR 0
#endif #endif
/****************************************************************************
* Private Types
****************************************************************************/
/**************************************************************************** /****************************************************************************
* Private Data * Private Data
****************************************************************************/ ****************************************************************************/
@ -70,14 +66,6 @@ static const nxgl_mxpixel_t g_bgcolor[CONFIG_NX_NPLANES] =
#endif #endif
}; };
/****************************************************************************
* Public Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/