VirtualBox

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

Last change on this file since 41800 was 39643, checked in by vboxsync, 13 years ago

SharedFolders: more fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
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
23typedef struct
24{
25 char *pszFolderName; /**< directory at the host to share with the guest */
26 PSHFLSTRING pMapName; /**< share name for the guest */
27 uint32_t cMappings; /**< number of mappings */
28 bool fValid; /**< mapping entry is used/valid */
29 bool fHostCaseSensitive; /**< host file name space is case-sensitive */
30 bool fGuestCaseSensitive; /**< guest file name space is case-sensitive */
31 bool fWritable; /**< folder is writable for the guest */
32 bool fAutoMount; /**< folder will be auto-mounted by the guest */
33 bool fSymlinksCreate; /**< guest is able to create symlinks */
34} MAPPING;
35/** Pointer to a MAPPING structure. */
36typedef MAPPING *PMAPPING;
37
38void vbsfMappingInit(void);
39
40bool vbsfMappingQuery(uint32_t iMapping, PMAPPING *pMapping);
41
42int vbsfMappingsAdd(PSHFLSTRING pFolderName, PSHFLSTRING pMapName,
43 bool fWritable, bool fAutoMount, bool fCreateSymlinks);
44int vbsfMappingsRemove(PSHFLSTRING pMapName);
45
46int vbsfMappingsQuery(PSHFLCLIENTDATA pClient, PSHFLMAPPING pMappings, uint32_t *pcMappings);
47int vbsfMappingsQueryName(PSHFLCLIENTDATA pClient, SHFLROOT root, SHFLSTRING *pString);
48int vbsfMappingsQueryWritable(PSHFLCLIENTDATA pClient, SHFLROOT root, bool *fWritable);
49int vbsfMappingsQueryAutoMount(PSHFLCLIENTDATA pClient, SHFLROOT root, bool *fAutoMount);
50int vbsfMappingsQuerySymlinksCreate(PSHFLCLIENTDATA pClient, SHFLROOT root, bool *fSymlinksCreate);
51
52int vbsfMapFolder(PSHFLCLIENTDATA pClient, PSHFLSTRING pszMapName, RTUTF16 delimiter,
53 bool fCaseSensitive, SHFLROOT *pRoot);
54int vbsfUnmapFolder(PSHFLCLIENTDATA pClient, SHFLROOT root);
55
56const char* vbsfMappingsQueryHostRoot(SHFLROOT root);
57bool vbsfIsGuestMappingCaseSensitive(SHFLROOT root);
58bool vbsfIsHostMappingCaseSensitive(SHFLROOT root);
59
60int vbsfMappingLoaded(const PMAPPING pLoadedMapping, SHFLROOT root);
61PMAPPING vbsfMappingGetByRoot(SHFLROOT root);
62
63#endif /* !___MAPPINGS_H */
64
Note: See TracBrowser for help on using the repository browser.

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