OSDN Git Service

(none)
[hos/hos-v4a.git] / aplfw / volume / dev / devvol.h
1 /** 
2  *  Hyper Operating System  Application Framework
3  *
4  * @file  devvol.h
5  * @brief %jp{デバイスドライバをファイルとして管理するボリューム}
6  *
7  * Copyright (C) 2006-2007 by Project HOS
8  * http://sourceforge.jp/projects/hos/
9  */
10
11
12 #ifndef __HOS__devvol_h__
13 #define __HOS__devvol_h__
14
15
16 #include "system/file/file.h"
17 #include "system/file/volumeobj.h"
18
19
20 #define DEVVOL_MAX_DEVICE               16
21
22 /* デバイス情報 */
23 struct c_drvobj;
24 typedef struct t_devvol_devinf
25 {
26         char                    szName[FILE_MAX_NAME];                  /* デバイス名 */
27         struct c_drvobj *pDrvObj;                                               /* デバイスドライバへの参照 */
28 } T_DEVVOL_DEVINF;
29
30
31 /*  */
32 typedef struct c_devvol
33 {
34         C_VOLUMEOBJ             VolumeObj;              /* ボリュームオブジェクトを継承 */
35         
36         T_DEVVOL_DEVINF DevTable[DEVVOL_MAX_DEVICE];
37 } C_DEVVOL;
38
39
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43
44 void     DevVol_Create(C_DEVVOL *self);
45 FILE_ERR DevVol_AddDevice(C_DEVVOL *self, const char *pszName, struct c_drvobj *pDrvObj);
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif  /* __HOS__devdir_h__ */
52
53
54
55 /* end of file */