diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-03 00:28:08 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-03 00:28:08 +0000 |
commit | 7fd6913bff0fb65c045056eb4e4a9465c11c93f5 (patch) | |
tree | 4d5404e3bcb8fc38340b44a7560cc9600e6fadfe /nuttx/include | |
parent | 6ff43387ff4056aef74626ec80615cb9055cdf6f (diff) | |
download | px4-nuttx-7fd6913bff0fb65c045056eb4e4a9465c11c93f5.tar.gz px4-nuttx-7fd6913bff0fb65c045056eb4e4a9465c11c93f5.tar.bz2 px4-nuttx-7fd6913bff0fb65c045056eb4e4a9465c11c93f5.zip |
For consistency, all close function return int
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1398 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/nxtk.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/nuttx/include/nuttx/nxtk.h b/nuttx/include/nuttx/nxtk.h index c8e81a140..4a6d9d5cd 100644 --- a/nuttx/include/nuttx/nxtk.h +++ b/nuttx/include/nuttx/nxtk.h @@ -108,12 +108,11 @@ EXTERN NXTKWINDOW nxtk_openwindow(NXHANDLE handle, * hfwnd - The handle returned by nxtk_openwindow * * Return: - * Success: A non-NULL handle used with subsequent NXTK window accesses - * Failure: NULL is returned and errno is set appropriately + * OK on success; ERROR on failure with errno set appropriately * ****************************************************************************/ -EXTERN void nxtk_closewindow(NXTKWINDOW hfwnd); +EXTERN int nxtk_closewindow(NXTKWINDOW hfwnd); /**************************************************************************** * Name: nxtk_getposition @@ -309,11 +308,11 @@ EXTERN NXTKTOOLBAR nxtk_opentoolbar(NXTKWINDOW hfwnd, nxgl_coord_t height, * htb - The toolbar handle returned by nxtk_opentoolbar * * Return: - * None + * OK on success; ERROR on failure with errno set appropriately * ****************************************************************************/ -EXTERN void nxtk_closetoolbar(NXTKTOOLBAR htb); +EXTERN int nxtk_closetoolbar(NXTKTOOLBAR htb); /**************************************************************************** * Name: nxtk_filltoolbar |