~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools.fix-836277

« back to all changes in this revision

Viewing changes to vmware-user/foreignVMToolsDaemon.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-10-23 15:32:00 UTC
  • mfrom: (1.1.2 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081023153200-gc1bfx89hj35c799
Tags: 2008.10.10-123053-2
* Correcting typo in dh_installinit call.
* Downgrading depends on module-assistant to recommends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
 
93
93
VixLockType                         globalLock;
94
94
static struct FoundryWorkerThread   *selectThread;
 
95
static DblLnkLst_Links              *gEventQueue;
95
96
 
96
97
ForeignVMToolsConnection            *activeConnectionList = NULL;
97
98
ForeignVMToolsCommand               *globalCommandList = NULL;
105
106
static void ForeignToolsSendRunProgramResponse(const char *requestName,
106
107
                                               VixError resultErr,
107
108
                                               int exitCode,
108
 
                                               int64 pid);
 
109
                                               int64 pid,
 
110
                                               void *clientData);
109
111
 
110
112
static VixError ForeignToolsGetUserCredentialForGuest(ForeignVMToolsConnection *connectionState,
111
113
                                                      ForeignVMToolsCommand *commandState);
136
138
 */
137
139
 
138
140
Bool
139
 
ForeignTools_Initialize(GuestApp_Dict *configDictionaryParam)     // IN
 
141
ForeignTools_Initialize(GuestApp_Dict *configDictionaryParam,     // IN
 
142
                        DblLnkLst_Links *eventQueue)              // IN
140
143
{
141
144
   VixError err = VIX_OK;
142
145
   Bool success = TRUE;
143
146
 
144
147
   MessageStub_RegisterTransport();
 
148
   gEventQueue = eventQueue;
145
149
 
146
150
   /*
147
151
    * Initialize the limited global state that protects us when 
160
164
   configDictionary = configDictionaryParam;
161
165
 
162
166
   VixTools_SetConsoleUserPolicy(TRUE); // allowConsoleUserOpsParam
163
 
   VixTools_SetRunProgramCallback(ForeignToolsSendRunProgramResponse);
 
167
   VixTools_SetRunProgramCallback(ForeignToolsSendRunProgramResponse, NULL);
164
168
 
165
169
   success = ForeignTools_InitializeNetworking();
166
170
   if (!success) {
394
398
ForeignToolsSendRunProgramResponse(const char *requestName, // IN
395
399
                                   VixError resultErr,      // IN
396
400
                                   int exitCode,            // IN
397
 
                                   int64 pid)               // IN
 
401
                                   int64 pid,               // IN
 
402
                                   void *clientData)        // IN
398
403
{
399
404
   VixError err = VIX_OK;
400
405
   int additionalError = 0;
880
885
 
881
886
VixError
882
887
ForeignToolsGetToolsState(ForeignVMToolsCommand *asyncCommand,   // IN
883
 
                          VixMsgTrivialRequest *requestMsg)    // IN
 
888
                          VixMsgTrivialRequest *requestMsg)     // IN
884
889
{
885
890
   VixError err = VIX_OK;
886
891
   VixPropertyListImpl propList;
901
906
                                    asyncCommand->asyncOpName,
902
907
                                    1024 * 1024, // maxResultBufferSize,
903
908
                                    &configDictionary,
 
909
                                    gEventQueue,
904
910
                                    &base64Buffer,
905
911
                                    &base64BufferLength,
906
912
                                    &deleteResultValue);
1078
1084
                                          commandState->asyncOpName,
1079
1085
                                          1024 * 1024, // maxResultBufferSize,
1080
1086
                                          &configDictionary,
 
1087
                                          gEventQueue,
1081
1088
                                          &dummyResponse,
1082
1089
                                          &dummyResponseLength,
1083
1090
                                          &deleteResultValue);
1129
1136
                                             commandState->asyncOpName,
1130
1137
                                             1024 * 1024, // maxResultBufferSize,
1131
1138
                                             &configDictionary,
 
1139
                                             gEventQueue,
1132
1140
                                             &(commandState->responseBody),
1133
1141
                                             &(commandState->responseBodyLength),
1134
1142
                                             &deleteResultValue);
1153
1161
                                          commandState->asyncOpName,
1154
1162
                                          1024 * 1024, // maxResultBufferSize,
1155
1163
                                          &configDictionary,
 
1164
                                          gEventQueue,
1156
1165
                                          &(commandState->responseBody),
1157
1166
                                          &(commandState->responseBodyLength),
1158
1167
                                          &deleteResultValue);