Pointer arguments to NX set methods should be const

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4049 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-10-16 22:22:49 +00:00
parent 12fd3df1b1
commit 11969d86c2
8 changed files with 11 additions and 11 deletions

View File

@ -84,7 +84,7 @@
*
****************************************************************************/
int nx_setposition(NXWINDOW hwnd, FAR struct nxgl_point_s *pos)
int nx_setposition(NXWINDOW hwnd, FAR const struct nxgl_point_s *pos)
{
FAR struct nxbe_window_s *wnd = (FAR struct nxbe_window_s *)hwnd;
struct nxsvrmsg_setposition_s outmsg;

View File

@ -70,7 +70,7 @@
****************************************************************************/
/****************************************************************************
* Name: nx_setsize`
* Name: nx_setsize
*
* Description:
* Set the size of the selected window
@ -84,7 +84,7 @@
*
****************************************************************************/
int nx_setsize(NXWINDOW hwnd, FAR struct nxgl_size_s *size)
int nx_setsize(NXWINDOW hwnd, FAR const struct nxgl_size_s *size)
{
FAR struct nxbe_window_s *wnd = (FAR struct nxbe_window_s *)hwnd;
struct nxsvrmsg_setsize_s outmsg;

View File

@ -84,7 +84,7 @@
*
****************************************************************************/
int nx_setposition(NXWINDOW hwnd, FAR struct nxgl_point_s *pos)
int nx_setposition(NXWINDOW hwnd, FAR const struct nxgl_point_s *pos)
{
#ifdef CONFIG_DEBUG
if (!hwnd || !pos)

View File

@ -84,7 +84,7 @@
*
****************************************************************************/
int nx_setsize(NXWINDOW hwnd, FAR struct nxgl_size_s *size)
int nx_setsize(NXWINDOW hwnd, FAR const struct nxgl_size_s *size)
{
#ifdef CONFIG_DEBUG
if (!hwnd || !size)

View File

@ -90,7 +90,7 @@
*
****************************************************************************/
int nxtk_setposition(NXTKWINDOW hfwnd, FAR struct nxgl_point_s *pos)
int nxtk_setposition(NXTKWINDOW hfwnd, FAR const struct nxgl_point_s *pos)
{
FAR struct nxtk_framedwindow_s *fwnd = (FAR struct nxtk_framedwindow_s *)hfwnd;
struct nxgl_point_s offset;

View File

@ -90,7 +90,7 @@
*
****************************************************************************/
int nxtk_setsize(NXTKWINDOW hfwnd, FAR struct nxgl_size_s *size)
int nxtk_setsize(NXTKWINDOW hfwnd, FAR const struct nxgl_size_s *size)
{
FAR struct nxtk_framedwindow_s *fwnd = (FAR struct nxtk_framedwindow_s *)hfwnd;
struct nxgl_size_s newsize;

View File

@ -523,7 +523,7 @@ EXTERN int nx_getposition(NXWINDOW hwnd);
*
****************************************************************************/
EXTERN int nx_setposition(NXWINDOW hwnd, FAR struct nxgl_point_s *pos);
EXTERN int nx_setposition(NXWINDOW hwnd, FAR const struct nxgl_point_s *pos);
/****************************************************************************
* Name: nx_setsize
@ -540,7 +540,7 @@ EXTERN int nx_setposition(NXWINDOW hwnd, FAR struct nxgl_point_s *pos);
*
****************************************************************************/
EXTERN int nx_setsize(NXWINDOW hwnd, FAR struct nxgl_size_s *size);
EXTERN int nx_setsize(NXWINDOW hwnd, FAR const struct nxgl_size_s *size);
/****************************************************************************
* Name: nx_raise

View File

@ -144,7 +144,7 @@ EXTERN int nxtk_getposition(NXTKWINDOW hfwnd);
*
****************************************************************************/
EXTERN int nxtk_setposition(NXTKWINDOW hfwnd, FAR struct nxgl_point_s *pos);
EXTERN int nxtk_setposition(NXTKWINDOW hfwnd, FAR const struct nxgl_point_s *pos);
/****************************************************************************
* Name: nxtk_setsize
@ -163,7 +163,7 @@ EXTERN int nxtk_setposition(NXTKWINDOW hfwnd, FAR struct nxgl_point_s *pos);
*
****************************************************************************/
EXTERN int nxtk_setsize(NXTKWINDOW hfwnd, FAR struct nxgl_size_s *size);
EXTERN int nxtk_setsize(NXTKWINDOW hfwnd, FAR const struct nxgl_size_s *size);
/****************************************************************************
* Name: nxtk_raise