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/graphics/nxtk | |
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/graphics/nxtk')
-rw-r--r-- | nuttx/graphics/nxtk/nxtk_closetoolbar.c | 5 | ||||
-rw-r--r-- | nuttx/graphics/nxtk/nxtk_closewindow.c | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/graphics/nxtk/nxtk_closetoolbar.c b/nuttx/graphics/nxtk/nxtk_closetoolbar.c index 22decf804..2cd44dfc3 100644 --- a/nuttx/graphics/nxtk/nxtk_closetoolbar.c +++ b/nuttx/graphics/nxtk/nxtk_closetoolbar.c @@ -84,11 +84,11 @@ * htb - The toolbar handle returned by nxtk_opentoolbar * * Return: - * None + * OK on success; ERROR on failure with errno set appropriately * ****************************************************************************/ -void nxtk_closetoolbar(NXTKTOOLBAR htb) +int nxtk_closetoolbar(NXTKTOOLBAR htb) { FAR struct nxtk_framedwindow_s *fwnd = (FAR struct nxtk_framedwindow_s *)htb; @@ -107,5 +107,6 @@ void nxtk_closetoolbar(NXTKTOOLBAR htb) */ nxfe_redrawreq(&fwnd->wnd, &fwnd->wnd.bounds); + return OK; } diff --git a/nuttx/graphics/nxtk/nxtk_closewindow.c b/nuttx/graphics/nxtk/nxtk_closewindow.c index e97c3fccf..edc9e457d 100644 --- a/nuttx/graphics/nxtk/nxtk_closewindow.c +++ b/nuttx/graphics/nxtk/nxtk_closewindow.c @@ -84,13 +84,12 @@ * 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 * ****************************************************************************/ -void nxtk_closewindow(NXTKWINDOW hfwnd) +int nxtk_closewindow(NXTKWINDOW hfwnd) { - nx_closewindow((NXWINDOW)hfwnd); + return nx_closewindow((NXWINDOW)hfwnd); } |