Changeset 48299 in vbox for trunk/src/VBox/Main
- Timestamp:
- Sep 5, 2013 11:07:08 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 88716
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/SessionImpl.cpp
r48297 r48299 289 289 290 290 #else /* VBOX_COM_INPROC_API_CLIENT */ 291 AssertFailed(); 291 292 return VBOX_E_INVALID_OBJECT_STATE; 292 293 #endif /* VBOX_COM_INPROC_API_CLIENT */ … … 322 323 } 323 324 324 HRESULT rc = E_FAIL;325 326 325 /* query IInternalMachineControl interface */ 327 326 mControl = aMachine; … … 329 328 330 329 #ifndef VBOX_COM_INPROC_API_CLIENT 331 rc = mConsole.createObject();330 HRESULT rc = mConsole.createObject(); 332 331 AssertComRCReturn(rc, rc); 333 332 334 333 rc = mConsole->init(aMachine, mControl, aLockType); 335 334 AssertComRCReturn(rc, rc); 335 #else 336 HRESULT rc = S_OK; 337 mRemoteMachine = aMachine; 336 338 #endif 337 339 … … 900 902 BOOL aIsSetter, BSTR *aRetValue, LONG64 *aRetTimestamp, BSTR *aRetFlags) 901 903 { 902 #if defined(VBOX_WITH_GUEST_PROPS) && !defined(VBOX_COM_INPROC_API_CLIENT) 904 #ifdef VBOX_WITH_GUEST_PROPS 905 # ifndef VBOX_COM_INPROC_API_CLIENT 903 906 AutoCaller autoCaller(this); 904 907 AssertComRCReturn(autoCaller.rc(), autoCaller.rc()); … … 932 935 else 933 936 return mConsole->setGuestProperty(aName, aValue, aFlags); 934 #else /* VBOX_WITH_GUEST_PROPS not defined */ 937 938 # else /* VBOX_COM_INPROC_API_CLIENT */ 939 /** @todo This is nonsense, non-VM API users shouldn't need to deal with this 940 * method call, VBoxSVC should be clever enough to see that the 941 * session doesn't have a console! */ 942 return E_ACCESSDENIED; 943 # endif /* VBOX_COM_INPROC_API_CLIENT */ 944 945 #else /* VBOX_WITH_GUEST_PROPS */ 935 946 ReturnComNotImplemented(); 936 #endif /* VBOX_WITH_GUEST_PROPS not defined*/947 #endif /* VBOX_WITH_GUEST_PROPS */ 937 948 } 938 949 … … 998 1009 aProgress); 999 1010 #else 1011 AssertFailed(); 1000 1012 return E_NOTIMPL; 1001 1013 #endif … … 1017 1029 return S_OK; 1018 1030 #else 1031 AssertFailed(); 1019 1032 return E_NOTIMPL; 1020 1033 #endif … … 1034 1047 return mConsole->pause(aReason); 1035 1048 #else 1049 AssertFailed(); 1036 1050 return E_NOTIMPL; 1037 1051 #endif … … 1051 1065 return mConsole->resume(aReason); 1052 1066 #else 1067 AssertFailed(); 1053 1068 return E_NOTIMPL; 1054 1069 #endif … … 1068 1083 return mConsole->saveState(aReason, aProgress); 1069 1084 #else 1085 AssertFailed(); 1070 1086 return E_NOTIMPL; 1071 1087 #endif … … 1131 1147 mConsole.setNull(); 1132 1148 } 1149 #else 1150 mRemoteMachine.setNull(); 1133 1151 #endif 1134 1152 } … … 1136 1154 { 1137 1155 mRemoteMachine.setNull(); 1138 #ifndef VBOX_COM_INPROC_API_CLIENT1139 1156 mRemoteConsole.setNull(); 1140 #endif1141 1157 } 1142 1158 -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r48297 r48299 5935 5935 * silly race condition. */ 5936 5936 5937 /** @todo This code is bothering API clients (like python script clients) with 5938 * the AccessGuestProperty call, creating unncessary IPC. Need to 5939 * have a way of figuring out which kind of direct session it is... */ 5937 5940 if (!directControl) 5938 5941 rc = E_ACCESSDENIED;
Note:
See TracChangeset
for help on using the changeset viewer.