~n-muench/ubuntu/precise/open-vm-tools/open-vm-tools.raring-precise.backport

« back to all changes in this revision

Viewing changes to lib/include/hgfsServerManager.h

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-03-31 14:20:05 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110331142005-3n9red91p7ogkweo
Tags: 2011.03.28-387002-0ubuntu1
* Merge latest upstream git tag.  This has the unlocked_ioctl change
  needed to fix dkms build failures (LP: #727342)
* Changes in debian/rules:
  - work around a bug in toolbox/Makefile, where install-exec-hook is
    not happening.  This needs to get fixed the right way.
  - don't install 'vmware-user' which seems to no longer exist
  - move /etc/xdg into open-vm-toolbox (which should be done using .install)
* debian/open-vm-tools.init: add 'modprobe [-r] vmblock'. (LP: #332323)
* debian/rules and debian/open-vm-toolbox.lintian-overrides:
  - Make vmware-user-suid-wrapper suid-root (LP: #332323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
Bool HgfsServerManager_ChangeState(Bool enable);
36
36
 
37
37
#else  /* VMX86_TOOLS */
38
 
Bool HgfsServerManager_Register(void *rpcIn,
39
 
                                const char *appName);
40
 
void HgfsServerManager_Unregister(void *rpcIn,
41
 
                                  const char *appName);
42
 
Bool HgfsServerManager_CapReg(const char *appName,
43
 
                              Bool enable);
 
38
//#include "hgfsServer.h" // For HgfsReceiveFlags
 
39
 
 
40
typedef struct HgfsServerMgrData {
 
41
   const char  *appName;         // Application name to register
 
42
   void        *rpc;             // RpcChannel unused
 
43
   void        *rpcCallback;     // RpcChannelCallback unused
 
44
   void        *connection;      // Connection object returned on success
 
45
} HgfsServerMgrData;
 
46
 
 
47
 
 
48
#define HgfsServerManager_DataInit(mgr, _name, _rpc, _rpcCallback) \
 
49
   do {                                                            \
 
50
      (mgr)->appName       = (_name);                              \
 
51
      (mgr)->rpc           = (_rpc);                               \
 
52
      (mgr)->rpcCallback   = (_rpcCallback);                       \
 
53
      (mgr)->connection    = NULL;                                 \
 
54
   } while (0)
 
55
 
 
56
Bool HgfsServerManager_Register(HgfsServerMgrData *data);
 
57
void HgfsServerManager_Unregister(HgfsServerMgrData *data);
 
58
Bool HgfsServerManager_ProcessPacket(HgfsServerMgrData *mgrData,
 
59
                                     char const *packetIn,
 
60
                                     size_t packetInSize,
 
61
                                     char *packetOut,
 
62
                                     size_t *packetOutSize);
44
63
#endif
45
64
 
46
65
#endif // _HGFS_SERVER_MANAGER_H_