OSDN Git Service

(none)
[hos/hos-v4a.git] / aplfw / system / handle / handle_close.c
1 /** 
2  *  Hyper Operating System  Application Framework
3  *
4  * @file  handle.h
5  * @brief %jp{ハンドルオブジェクト}
6  *
7  * Copyright (C) 2006 by Project HOS
8  * http://sourceforge.jp/projects/hos/
9  */
10
11
12 #include <stdio.h>
13 #include "handle.h"
14 #include "handleobj.h"
15 #include "system/sysapi/sysapi.h"
16
17
18 /* ハンドルを閉じる */
19 void Handle_Close(HANDLE handle)
20 {
21         C_HANDLEOBJ *pHandleObj;
22         
23         /* 有効チェック */
24         if ( handle == HANDLE_NULL )
25         {
26                 return;
27         }
28         
29         /* ハンドル変換 */
30         pHandleObj = (C_HANDLEOBJ *)handle;
31
32         /* クローズ処理 */
33         if ( pHandleObj->pMethods->pfncClose != NULL )
34         {
35                 pHandleObj->pMethods->pfncClose(handle);
36         }
37 }
38
39
40 /* end of file */