Minor clean-up of typing from last commit

This commit is contained in:
Gregory Nutt 2013-12-29 08:19:02 -06:00
parent 715177d861
commit 808ebb18a9
8 changed files with 21 additions and 23 deletions

View File

@ -83,14 +83,14 @@
* inheritance: The caller's window structure may include extensions that
* are not visible to NX.
*
* NOTE: wnd must have been allocated using kmalloc() (or related allocators)
* NOTE: hwnd must have been allocated using kmalloc() (or related allocators)
* Once provided to nx_constructwindow() that memory is owned and managed
* by NX. On certain error conditions or when the window is closed, NX will
* free the window.
*
* Input Parameters:
* handle - The handle returned by nx_connect
* wnd - The pre-allocated window structure.
* hwnd - The pre-allocated window structure.
* cb - Callbacks used to process window events
* arg - User provided value that will be returned with NX callbacks.
*
@ -100,16 +100,17 @@
*
****************************************************************************/
int nx_constructwindow(NXHANDLE handle, FAR struct nxbe_window_s *wnd,
int nx_constructwindow(NXHANDLE handle, NXWINDOW wnd,
FAR const struct nx_callback_s *cb, FAR void *arg)
{
FAR struct nxfe_state_s *fe = (FAR struct nxfe_state_s *)handle;
FAR struct nxbe_window_s *wnd = (FAR struct nxbe_window_s *)hwnd;
FAR struct nxbe_state_s *be = &fe->be;
#ifdef CONFIG_DEBUG
if (!wnd)
{
errno = EINVAL;
set_errno(EINVAL);
return ERROR;
}
@ -149,4 +150,3 @@ int nx_constructwindow(NXHANDLE handle, FAR struct nxbe_window_s *wnd,
return OK;
}

View File

@ -114,7 +114,7 @@ NXWINDOW nx_openwindow(NXHANDLE handle, FAR const struct nx_callback_s *cb,
/* Then let nx_constructwindow do the rest */
ret = nx_constructwindow(handle, wnd, cb, arg);
ret = nx_constructwindow(handle, (NXWINDOW)wnd, cb, arg);
if (ret < 0)
{
/* An error occurred, the window has been freed */
@ -126,4 +126,3 @@ NXWINDOW nx_openwindow(NXHANDLE handle, FAR const struct nx_callback_s *cb,
return (NXWINDOW)wnd;
}

View File

@ -59,8 +59,8 @@
/* Server state structure ***************************************************/
/* This the server 'front-end' state structure. It is really the same
* as the back-end state, but we wrap the back-end state so that we can add
/* This the 'front-end' state structure. It is really the same as the
* the back-end state, but we wrap the back-end state so that we can add
* things to the structure in the future
*/

View File

@ -937,7 +937,7 @@ void nx_redrawreq(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect);
*
* Input Parameters:
* handle - The handle returned by nx_connect
* wnd - The pre-allocated window structure.
* hwnd - The pre-allocated window structure.
* cb - Callbacks used to process window events
* arg - User provided value that will be returned with NX callbacks.
*
@ -947,8 +947,7 @@ void nx_redrawreq(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect);
*
****************************************************************************/
struct nxbe_window_s; /* Forward reference */
int nx_constructwindow(NXHANDLE handle, FAR struct nxbe_window_s *wnd,
int nx_constructwindow(NXHANDLE handle, NXWINDOW hwnd,
FAR const struct nx_callback_s *cb, FAR void *arg);
#undef EXTERN

View File

@ -84,14 +84,14 @@
* inheritance: The caller's window structure may include extensions that
* are not visible to NX.
*
* NOTE: wnd must have been allocated using kmalloc() (or related allocators)
* Once provided to nx_constructwindow() that memory is owned and managed
* by NX. On certain error conditions or when the window is closed, NX will
* free the window.
* NOTE: hwnd must have been allocated using a user-space allocator that
* permits user access to the window. Once provided to nx_constructwindow()
* that memory is owned and managed by NX. On certain error conditions or
* when the window is closed, NX will free the window.
*
* Input Parameters:
* handle - The handle returned by nx_connect
* wnd - The pre-allocated window structure.
* hwnd - The pre-allocated window structure.
* cb - Callbacks used to process window events
* arg - User provided value that will be returned with NX callbacks.
*
@ -101,10 +101,11 @@
*
****************************************************************************/
int nx_constructwindow(NXHANDLE handle, FAR struct nxbe_window_s *wnd,
int nx_constructwindow(NXHANDLE handle, NXWINDOW hwnd,
FAR const struct nx_callback_s *cb, FAR void *arg)
{
FAR struct nxfe_conn_s *conn = (FAR struct nxfe_conn_s *)handle;
FAR struct nxbe_window_s *wnd = (FAR struct nxbe_window_s *)hwnd;
struct nxsvrmsg_openwindow_s outmsg;
#ifdef CONFIG_DEBUG

View File

@ -80,7 +80,7 @@
*
* Input Parameters:
* handle - The handle returned by nx_connect
* cb - Callbacks used to process windo events
* cb - Callbacks used to process window events
* arg - User provided value that will be returned with NX callbacks.
*
* Return:
@ -114,7 +114,7 @@ NXWINDOW nx_openwindow(NXHANDLE handle, FAR const struct nx_callback_s *cb,
/* Then let nx_constructwindow do the rest */
ret = nx_constructwindow(handle, wnd, cb, arg);
ret = nx_constructwindow(handle, (NXWINDOW)wnd, cb, arg);
if (ret < 0)
{
/* An error occurred, the window has been freed */

View File

@ -146,7 +146,7 @@ NXTKWINDOW nxtk_openwindow(NXHANDLE handle,
/* Then let nx_constructwindow do the rest */
ret = nx_constructwindow(handle, &fwnd->wnd, &g_nxtkcb, NULL);
ret = nx_constructwindow(handle, (NXWINDOW)&fwnd->wnd, &g_nxtkcb, NULL);
if (ret < 0)
{
/* An error occurred, the window has been freed */
@ -158,4 +158,3 @@ NXTKWINDOW nxtk_openwindow(NXHANDLE handle,
return (NXTKWINDOW)fwnd;
}

View File

@ -30,7 +30,7 @@
"mkdir","sys/stat.h","CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)","int","FAR const char*","mode_t"
"mkfifo","sys/stat.h","CONFIG_NFILE_DESCRIPTORS > 0","int","FAR const char*","mode_t"
"mmap","sys/mman.h","CONFIG_NFILE_DESCRIPTORS > 0","FAR void*","FAR void*","size_t","int","int","int","off_t"
"mount","sys/mount.h","CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)","int","const char*","const char*","const char*","unsigned long","const void*"
"mount","sys/mount.h","CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_READABLE)","int","const char*","const char*","const char*","unsigned long","const void*"
"mq_close","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","mqd_t"
"mq_notify","mqueue.h","!defined(CONFIG_DISABLE_SIGNALS) && !defined(CONFIG_DISABLE_MQUEUE)","int","mqd_t","const struct sigevent*"
"mq_open","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","mqd_t","const char*","int","..."

Can't render this file because it has a wrong number of fields in line 2.