mappings.h revision bdf9c5cdef552197f95ae3f6f2ff2b6c7caa8d98
/** @file
*
* Shared folders:
* Mappings header.
*/
/*
* Copyright (C) 2006-2007 innotek GmbH
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef __MAPPINGS__H
#define __MAPPINGS__H
#include "shfl.h"
#include <VBox/shflsvc.h>
typedef struct
{
PSHFLSTRING pFolderName;
PSHFLSTRING pMapName;
uint32_t cMappings;
bool fValid;
bool fHostCaseSensitive;
bool fGuestCaseSensitive;
} MAPPING, *PMAPPING;
extern MAPPING FolderMapping[SHFL_MAX_MAPPINGS];
bool vbsfMappingQuery(uint32_t iMapping, PMAPPING *pMapping);
int vbsfMappingsAdd (PSHFLSTRING pFolderName, PSHFLSTRING pMapName);
int vbsfMappingsRemove (PSHFLSTRING pMapName);
int vbsfMappingsQuery (SHFLCLIENTDATA *pClient, SHFLMAPPING *pMappings, uint32_t *pcMappings);
int vbsfMappingsQueryName (SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLSTRING *pString);
int vbsfMapFolder (SHFLCLIENTDATA *pClient, PSHFLSTRING pszMapName, RTUCS2 delimiter, bool fCaseSensitive, SHFLROOT *pRoot);
int vbsfUnmapFolder (SHFLCLIENTDATA *pClient, SHFLROOT root);
const RTUCS2 *vbsfMappingsQueryHostRoot (SHFLROOT root, uint32_t *pcbRoot);
bool vbsfIsGuestMappingCaseSensitive (SHFLROOT root);
bool vbsfIsHostMappingCaseSensitive (SHFLROOT root);
#endif /* __MAPPINGS__H */