1 | /** @file
|
---|
2 | * Shared folders: Mappings header.
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
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 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
17 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
18 | * additional information or have any questions.
|
---|
19 | */
|
---|
20 |
|
---|
21 | #ifndef ___MAPPINGS_H
|
---|
22 | #define ___MAPPINGS_H
|
---|
23 |
|
---|
24 | #include "shfl.h"
|
---|
25 | #include <VBox/shflsvc.h>
|
---|
26 |
|
---|
27 | typedef struct
|
---|
28 | {
|
---|
29 | PSHFLSTRING pFolderName;
|
---|
30 | PSHFLSTRING pMapName;
|
---|
31 | uint32_t cMappings;
|
---|
32 | bool fValid;
|
---|
33 | bool fHostCaseSensitive;
|
---|
34 | bool fGuestCaseSensitive;
|
---|
35 | bool fWritable;
|
---|
36 | } MAPPING, *PMAPPING;
|
---|
37 |
|
---|
38 | extern MAPPING FolderMapping[SHFL_MAX_MAPPINGS];
|
---|
39 |
|
---|
40 | bool vbsfMappingQuery(uint32_t iMapping, PMAPPING *pMapping);
|
---|
41 |
|
---|
42 | int vbsfMappingsAdd (PSHFLSTRING pFolderName, PSHFLSTRING pMapName, uint32_t fWritable);
|
---|
43 | int vbsfMappingsRemove (PSHFLSTRING pMapName);
|
---|
44 |
|
---|
45 | int vbsfMappingsQuery (SHFLCLIENTDATA *pClient, SHFLMAPPING *pMappings, uint32_t *pcMappings);
|
---|
46 | int vbsfMappingsQueryName (SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLSTRING *pString);
|
---|
47 | int vbsfMappingsQueryWritable (SHFLCLIENTDATA *pClient, SHFLROOT root, bool *fWritable);
|
---|
48 |
|
---|
49 | int vbsfMapFolder (SHFLCLIENTDATA *pClient, PSHFLSTRING pszMapName, RTUTF16 delimiter, bool fCaseSensitive, SHFLROOT *pRoot);
|
---|
50 | int vbsfUnmapFolder (SHFLCLIENTDATA *pClient, SHFLROOT root);
|
---|
51 |
|
---|
52 | PCRTUTF16 vbsfMappingsQueryHostRoot (SHFLROOT root, uint32_t *pcbRoot);
|
---|
53 | bool vbsfIsGuestMappingCaseSensitive (SHFLROOT root);
|
---|
54 | bool vbsfIsHostMappingCaseSensitive (SHFLROOT root);
|
---|
55 |
|
---|
56 | #endif /* !___MAPPINGS_H */
|
---|
57 |
|
---|