mappings.h revision 039cd2c4871a00e51af909222a34695d9cec3000
/** @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 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.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
#ifndef __MAPPINGS__H
#define __MAPPINGS__H
#include "shfl.h"
#include <VBox/shflsvc.h>
typedef struct
{
PSHFLSTRING pFolderName;
PSHFLSTRING pMapName;
uint32_t cMappings;
bool fValid;
} 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, SHFLROOT *pRoot);
int vbsfUnmapFolder (SHFLCLIENTDATA *pClient, SHFLROOT root);
const RTUCS2 *vbsfMappingsQueryHostRoot (SHFLROOT root, uint32_t *pcbRoot);
#endif /* __MAPPINGS__H */