VirtualBox

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

Last change on this file since 28374 was 21172, checked in by vboxsync, 15 years ago

Shared folders host service: fixed load state failure, when the order of mappings is changed.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
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
27typedef 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
38void vbsfMappingInit(void);
39
40bool vbsfMappingQuery(uint32_t iMapping, PMAPPING *pMapping);
41
42int vbsfMappingsAdd (PSHFLSTRING pFolderName, PSHFLSTRING pMapName, uint32_t fWritable);
43int vbsfMappingsRemove (PSHFLSTRING pMapName);
44
45int vbsfMappingsQuery (SHFLCLIENTDATA *pClient, SHFLMAPPING *pMappings, uint32_t *pcMappings);
46int vbsfMappingsQueryName (SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLSTRING *pString);
47int vbsfMappingsQueryWritable (SHFLCLIENTDATA *pClient, SHFLROOT root, bool *fWritable);
48
49int vbsfMapFolder (SHFLCLIENTDATA *pClient, PSHFLSTRING pszMapName, RTUTF16 delimiter, bool fCaseSensitive, SHFLROOT *pRoot);
50int vbsfUnmapFolder (SHFLCLIENTDATA *pClient, SHFLROOT root);
51
52PCRTUTF16 vbsfMappingsQueryHostRoot (SHFLROOT root, uint32_t *pcbRoot);
53bool vbsfIsGuestMappingCaseSensitive (SHFLROOT root);
54bool vbsfIsHostMappingCaseSensitive (SHFLROOT root);
55
56int vbsfMappingLoaded (const MAPPING *pLoadedMapping, SHFLROOT root);
57MAPPING *vbsfMappingGetByRoot(SHFLROOT root);
58
59#endif /* !___MAPPINGS_H */
60
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