VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedFolders/mappings.h@ 31002

最後變更 在這個檔案從31002是 31002,由 vboxsync 提交於 15 年 前

First support for auto-mounted Shared Folders (Windows only yet).

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.9 KB
 
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.alldomusa.eu.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
23typedef 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, *PMAPPING;
34
35void vbsfMappingInit(void);
36
37bool vbsfMappingQuery(uint32_t iMapping, PMAPPING *pMapping);
38
39int vbsfMappingsAdd(PSHFLSTRING pFolderName, PSHFLSTRING pMapName, uint32_t fWritable, uint32_t fAutoMount);
40int vbsfMappingsRemove(PSHFLSTRING pMapName);
41
42int vbsfMappingsQuery(SHFLCLIENTDATA *pClient, SHFLMAPPING *pMappings, uint32_t *pcMappings);
43int vbsfMappingsQueryName(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLSTRING *pString);
44int vbsfMappingsQueryWritable(SHFLCLIENTDATA *pClient, SHFLROOT root, bool *fWritable);
45
46int vbsfMapFolder(SHFLCLIENTDATA *pClient, PSHFLSTRING pszMapName, RTUTF16 delimiter, bool fCaseSensitive, SHFLROOT *pRoot);
47int vbsfUnmapFolder(SHFLCLIENTDATA *pClient, SHFLROOT root);
48
49PCRTUTF16 vbsfMappingsQueryHostRoot (SHFLROOT root, uint32_t *pcbRoot);
50bool vbsfIsGuestMappingCaseSensitive (SHFLROOT root);
51bool vbsfIsHostMappingCaseSensitive (SHFLROOT root);
52
53int vbsfMappingLoaded (const MAPPING *pLoadedMapping, SHFLROOT root);
54MAPPING *vbsfMappingGetByRoot(SHFLROOT root);
55
56#endif /* !___MAPPINGS_H */
57
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette