summaryrefslogtreecommitdiff
path: root/fsdev/qemu-fsdev.c
diff options
context:
space:
mode:
authorJinhyung Choi <jinhyung2.choi@samsung.com>2014-10-15 18:37:01 +0900
committerJinhyung Choi <jinhyung2.choi@samsung.com>2014-10-15 18:40:44 +0900
commit6e30565ab04874128649002bddf6a2edba9b0c74 (patch)
tree4a0957ad0fcf7e214533ae240497903b682a3ec3 /fsdev/qemu-fsdev.c
parent26e49f0dd682d4acc5ee3c58217f7b9a9bde1eaf (diff)
downloadqemu-6e30565ab04874128649002bddf6a2edba9b0c74.tar.gz
qemu-6e30565ab04874128649002bddf6a2edba9b0c74.tar.bz2
qemu-6e30565ab04874128649002bddf6a2edba9b0c74.zip
hds: added "Host Directory Sharing" feature
Change-Id: I362464b392c41709590756383cca8fc4fdbcd1a6 Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
Diffstat (limited to 'fsdev/qemu-fsdev.c')
-rw-r--r--fsdev/qemu-fsdev.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c
index b54adceb40..42cff153c1 100644
--- a/fsdev/qemu-fsdev.c
+++ b/fsdev/qemu-fsdev.c
@@ -101,3 +101,20 @@ FsDriverEntry *get_fsdev_fsentry(char *id)
}
return NULL;
}
+
+void qemu_fsdev_remove(const char * const id)
+{
+ if (id) {
+ struct FsDriverListEntry *fsle;
+
+ QTAILQ_FOREACH(fsle, &fsdriver_entries, next) {
+ if (strcmp(fsle->fse.fsdev_id, id) == 0) {
+ QTAILQ_REMOVE(&fsdriver_entries, fsle, next);
+ g_free(fsle->fse.fsdev_id);
+ g_free(fsle);
+ break;
+ }
+ }
+ }
+}
+