1 | /** @file
|
---|
2 | * Shared folders: Mappings header.
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2006-2010 Oracle Corporation
|
---|
7 | *
|
---|
8 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | * available from http://www.virtualbox.org. This file is free software;
|
---|
10 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | * General Public License (GPL) as published by the Free Software
|
---|
12 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
13 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
14 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | */
|
---|
16 |
|
---|
17 | #ifndef ___MAPPINGS_H
|
---|
18 | #define ___MAPPINGS_H
|
---|
19 |
|
---|
20 | #include "shfl.h"
|
---|
21 | #include <VBox/shflsvc.h>
|
---|
22 |
|
---|
23 | typedef struct
|
---|
24 | {
|
---|
25 | PSHFLSTRING pFolderName;
|
---|
26 | PSHFLSTRING pMapName;
|
---|
27 | uint32_t cMappings;
|
---|
28 | bool fValid;
|
---|
29 | bool fHostCaseSensitive;
|
---|
30 | bool fGuestCaseSensitive;
|
---|
31 | bool fWritable;
|
---|
32 | bool fAutoMount;
|
---|
33 | } MAPPING;
|
---|
34 | /** Pointer to a MAPPING structure. */
|
---|
35 | typedef MAPPING *PMAPPING;
|
---|
36 |
|
---|
37 | void vbsfMappingInit(void);
|
---|
38 |
|
---|
39 | bool vbsfMappingQuery(uint32_t iMapping, PMAPPING *pMapping);
|
---|
40 |
|
---|
41 | int vbsfMappingsAdd(PSHFLSTRING pFolderName, PSHFLSTRING pMapName, uint32_t fWritable, uint32_t fAutoMount);
|
---|
42 | int vbsfMappingsRemove(PSHFLSTRING pMapName);
|
---|
43 |
|
---|
44 | int vbsfMappingsQuery(PSHFLCLIENTDATA pClient, PSHFLMAPPING pMappings, uint32_t *pcMappings);
|
---|
45 | int vbsfMappingsQueryName(PSHFLCLIENTDATA pClient, SHFLROOT root, SHFLSTRING *pString);
|
---|
46 | int vbsfMappingsQueryWritable(PSHFLCLIENTDATA pClient, SHFLROOT root, bool *fWritable);
|
---|
47 |
|
---|
48 | int vbsfMapFolder(PSHFLCLIENTDATA pClient, PSHFLSTRING pszMapName, RTUTF16 delimiter, bool fCaseSensitive, SHFLROOT *pRoot);
|
---|
49 | int vbsfUnmapFolder(PSHFLCLIENTDATA pClient, SHFLROOT root);
|
---|
50 |
|
---|
51 | PCRTUTF16 vbsfMappingsQueryHostRoot(SHFLROOT root, uint32_t *pcbRoot);
|
---|
52 | bool vbsfIsGuestMappingCaseSensitive(SHFLROOT root);
|
---|
53 | bool vbsfIsHostMappingCaseSensitive(SHFLROOT root);
|
---|
54 |
|
---|
55 | int vbsfMappingLoaded(const PMAPPING pLoadedMapping, SHFLROOT root);
|
---|
56 | PMAPPING vbsfMappingGetByRoot(SHFLROOT root);
|
---|
57 |
|
---|
58 | #endif /* !___MAPPINGS_H */
|
---|
59 |
|
---|