Remove the register share callback and usage which is an HGFS server
libray function passed back to the VMX Hgfs server manager and policy
manager. This tracked shares as they were individually added and removed.
It carried with it VMDB behavior which was erroneous for the HGFS server
share tracking.
This API has been replaced by piggybacking on the Hgfs server InvalidateObjects
callback which informs the Hgfs server when the VMDB has finished updating
the Hgfs policy manager with shares and the Policy manager's list is complete.
At this point the Hgfs server can close any open handles on stale shares and
remove those stale shares and add new shares.
* down through the channel guest into the HGFS server directly.
*/
if (!HgfsServerPolicy_Init(NULL,
- NULL,
&gHgfsServerManagerGuestData.enumResources)) {
return FALSE;
}
Bool
HgfsServerPolicy_Init(HgfsInvalidateObjectsFunc invalidateObjects, // Unused
- HgfsRegisterSharedFolderFunc registerFolder, // Unused
HgfsServerResEnumCallbacks *enumResources) // OUT enum callbacks
{
HgfsSharedFolder *rootShare;
* it in.
*/
ASSERT(invalidateObjects == NULL);
- ASSERT(registerFolder == NULL);
DblLnkLst_Init(&myState.shares);
/*********************************************************
- * Copyright (C) 1998-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2017 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
Bool
HgfsServerPolicy_Init(HgfsInvalidateObjectsFunc invalidateObjects,
- HgfsRegisterSharedFolderFunc registerFolder,
HgfsServerResEnumCallbacks *enumResources);
Bool