struct HgfsSessionInfo;
/* This is a callback that is implemented in hgfsServer.c */
-typedef void HgfsNotificationCallbackFunc(HgfsSharedFolderHandle sharedFolder,
- HgfsSubscriberHandle subscriber,
- char *name,
- uint32 mask,
- struct HgfsSessionInfo *session);
+typedef void HgfsNotifyEventReceiveCb(HgfsSharedFolderHandle sharedFolder,
+ HgfsSubscriberHandle subscriber,
+ char *name,
+ uint32 mask,
+ struct HgfsSessionInfo *session);
HgfsInternalStatus HgfsNotify_Init(void);
void HgfsNotify_Shutdown(void);
void HgfsNotify_Suspend(void);
const char *path,
uint32 eventFilter,
uint32 recursive,
- HgfsNotificationCallbackFunc notify,
+ HgfsNotifyEventReceiveCb notify,
struct HgfsSessionInfo *session);
Bool HgfsNotify_RemoveSharedFolder(HgfsSharedFolderHandle sharedFolder);
char **fileName,
size_t *fileNameSize,
HgfsSharedFolderHandle *folderHandle);
-static void Hgfs_NotificationCallback(HgfsSharedFolderHandle sharedFolder,
- HgfsSubscriberHandle subscriber,
- char* fileName,
- uint32 mask,
- struct HgfsSessionInfo *session);
+static void HgfsServerDirWatchEvent(HgfsSharedFolderHandle sharedFolder,
+ HgfsSubscriberHandle subscriber,
+ char* fileName,
+ uint32 mask,
+ struct HgfsSessionInfo *session);
static void HgfsFreeSearchDirents(HgfsSearch *search);
if (HgfsHandle2NotifyInfo(dir, input->session, &fileName, &fileNameSize,
&sharedFolder)) {
*watchId = HgfsNotify_AddSubscriber(sharedFolder, fileName, events, watchTree,
- Hgfs_NotificationCallback, input->session);
+ HgfsServerDirWatchEvent, input->session);
status = (HGFS_INVALID_SUBSCRIBER_HANDLE == *watchId) ? HGFS_ERROR_INTERNAL :
HGFS_ERROR_SUCCESS;
} else {
&tempSize, &tempPtr);
if (HGFS_NAME_STATUS_COMPLETE == nameStatus) {
*watchId = HgfsNotify_AddSubscriber(sharedFolder, tempBuf, events,
- watchTree, Hgfs_NotificationCallback,
+ watchTree, HgfsServerDirWatchEvent,
input->session);
status = (HGFS_INVALID_SUBSCRIBER_HANDLE == *watchId) ?
HGFS_ERROR_INTERNAL : HGFS_ERROR_SUCCESS;
}
} else {
*watchId = HgfsNotify_AddSubscriber(sharedFolder, "", events, watchTree,
- Hgfs_NotificationCallback,
+ HgfsServerDirWatchEvent,
input->session);
status = (HGFS_INVALID_SUBSCRIBER_HANDLE == *watchId) ? HGFS_ERROR_INTERNAL :
HGFS_ERROR_SUCCESS;
/*
*-----------------------------------------------------------------------------
*
- * Hgfs_NotificationCallback --
+ * HgfsServerDirWatchEvent --
*
* Callback which is called by directory notification package when in response
* to a event.
*-----------------------------------------------------------------------------
*/
-void
-Hgfs_NotificationCallback(HgfsSharedFolderHandle sharedFolder, // IN: shared folder
- HgfsSubscriberHandle subscriber, // IN: subsciber
- char* fileName, // IN: name of the file
- uint32 mask, // IN: event type
- struct HgfsSessionInfo *session) // IN: session info
+static void
+HgfsServerDirWatchEvent(HgfsSharedFolderHandle sharedFolder, // IN: shared folder
+ HgfsSubscriberHandle subscriber, // IN: subsciber
+ char* fileName, // IN: name of the file
+ uint32 mask, // IN: event type
+ struct HgfsSessionInfo *session) // IN: session info
{
HgfsPacket *packet = NULL;
HgfsHeader *packetHeader = NULL;