VirtualBox

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

Last change on this file since 30037 was 28800, checked in by vboxsync, 14 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/** @file
2 * Shared folders: Mappings header.
3 */
4
5/*
6 * Copyright (C) 2006-2007 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 PSHFLSTRING pFolderName;
26 PSHFLSTRING pMapName;
27 uint32_t cMappings;
28 bool fValid;
29 bool fHostCaseSensitive;
30 bool fGuestCaseSensitive;
31 bool fWritable;
32} MAPPING, *PMAPPING;
33
34void vbsfMappingInit(void);
35
36bool vbsfMappingQuery(uint32_t iMapping, PMAPPING *pMapping);
37
38int vbsfMappingsAdd (PSHFLSTRING pFolderName, PSHFLSTRING pMapName, uint32_t fWritable);
39int vbsfMappingsRemove (PSHFLSTRING pMapName);
40
41int vbsfMappingsQuery (SHFLCLIENTDATA *pClient, SHFLMAPPING *pMappings, uint32_t *pcMappings);
42int vbsfMappingsQueryName (SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLSTRING *pString);
43int vbsfMappingsQueryWritable (SHFLCLIENTDATA *pClient, SHFLROOT root, bool *fWritable);
44
45int vbsfMapFolder (SHFLCLIENTDATA *pClient, PSHFLSTRING pszMapName, RTUTF16 delimiter, bool fCaseSensitive, SHFLROOT *pRoot);
46int vbsfUnmapFolder (SHFLCLIENTDATA *pClient, SHFLROOT root);
47
48PCRTUTF16 vbsfMappingsQueryHostRoot (SHFLROOT root, uint32_t *pcbRoot);
49bool vbsfIsGuestMappingCaseSensitive (SHFLROOT root);
50bool vbsfIsHostMappingCaseSensitive (SHFLROOT root);
51
52int vbsfMappingLoaded (const MAPPING *pLoadedMapping, SHFLROOT root);
53MAPPING *vbsfMappingGetByRoot(SHFLROOT root);
54
55#endif /* !___MAPPINGS_H */
56
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use