OSDN Git Service

7ff7ab2429159f9ca19dac25e329cd8356c5c720
[hos/hos-v4a.git] / aplfw / system / file / sysvol_removedevice.c
1 /** 
2  *  Hyper Operating System  Application Framework
3  *
4  * @file  sysvol.h
5  * @brief %jp{システムボリューム}
6  *
7  * Copyright (C) 2006-2007 by Project HOS
8  * http://sourceforge.jp/projects/hos/
9  */
10
11 #include <string.h>
12 #include "sysvol_local.h"
13
14
15 /* システムボリュームに登録されたデバイスを取り外し */
16 FILE_ERR SysVol_RemoveDevice(HANDLE hSysVol, const char *pszName)
17 {
18         C_SYSVOL                *self;
19         
20         self = (C_SYSVOL *)hSysVol;
21         
22         /* 登録解除 */
23         if ( Assoc_Remove(&self->asDevice, pszName) != ASSOC_ERR_OK )
24         {
25                 return FILE_ERR_NG;
26         }
27         
28         return FILE_ERR_OK;
29 }
30
31
32 /* end of file */