Changeset 10797 in vbox for trunk/src/VBox/Main/MachineImpl.cpp
- Timestamp:
- Jul 22, 2008 8:12:42 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 33575
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r10693 r10797 74 74 #include <VBox/err.h> 75 75 #include <VBox/param.h> 76 #ifdef VBOX_WITH_ INFO_SVC77 # include <VBox/HostServices/ VBoxInfoSvc.h>76 #ifdef VBOX_WITH_GUEST_PROPS 77 # include <VBox/HostServices/GuestPropertySvc.h> 78 78 #endif 79 79 … … 2689 2689 } 2690 2690 2691 STDMETHODIMP Machine::GetGuestProperty (INPTR BSTR aKey, BSTR *aValue) 2692 { 2693 #if !defined (VBOX_WITH_INFO_SVC) 2691 STDMETHODIMP Machine::GetGuestProperty (INPTR BSTR aKey, BSTR *aValue, ULONG64 *aTimestamp, BSTR *aFlags) 2692 { 2693 if (!VALID_PTR (aKey)) 2694 return E_INVALIDARG; 2695 if (!VALID_PTR (aValue)) 2696 return E_POINTER; 2697 if (!VALID_PTR (aTimestamp)) 2698 return E_POINTER; 2699 if (!VALID_PTR (aFlags)) 2700 return E_POINTER; 2701 *aTimestamp = 0; 2702 Bstr().cloneTo(aFlags); 2703 return GetGuestPropertyValue (aKey, aValue); 2704 } 2705 2706 STDMETHODIMP Machine::GetGuestPropertyValue (INPTR BSTR aKey, BSTR *aValue) 2707 { 2708 #if !defined (VBOX_WITH_GUEST_PROPS) 2694 2709 return E_NOTIMPL; 2695 2710 #else … … 2704 2719 AutoReadLock alock (this); 2705 2720 2706 using namespace svcInfo;2721 using namespace guestProp; 2707 2722 HRESULT rc = E_FAIL; 2708 2723 … … 2753 2768 } 2754 2769 return rc; 2755 #endif /* else !defined (VBOX_WITH_INFO_SVC) */ 2756 } 2757 2758 STDMETHODIMP Machine::SetGuestProperty (INPTR BSTR aKey, INPTR BSTR aValue) 2759 { 2760 #if !defined (VBOX_WITH_INFO_SVC) 2770 #endif /* else !defined (VBOX_WITH_GUEST_PROPS) */ 2771 } 2772 2773 STDMETHODIMP Machine::GetGuestPropertyTimestamp (INPTR BSTR aKey, ULONG64 *aTimestamp) 2774 { 2775 return E_NOTIMPL; 2776 } 2777 2778 STDMETHODIMP Machine::SetGuestProperty (INPTR BSTR aKey, INPTR BSTR aValue, INPTR BSTR aFlags) 2779 { 2780 if (!VALID_PTR (aKey)) 2781 return E_INVALIDARG; 2782 if ((aValue != NULL) && !VALID_PTR (aValue)) 2783 return E_INVALIDARG; 2784 if ((aFlags != NULL) && !VALID_PTR (aFlags)) 2785 return E_INVALIDARG; 2786 return SetGuestPropertyValue (aKey, aValue); 2787 } 2788 2789 STDMETHODIMP Machine::SetGuestPropertyValue (INPTR BSTR aKey, INPTR BSTR aValue) 2790 { 2791 #if !defined (VBOX_WITH_GUEST_PROPS) 2761 2792 return E_NOTIMPL; 2762 2793 #else … … 2772 2803 AutoWriteLock alock (this); 2773 2804 2774 using namespace svcInfo;2805 using namespace guestProp; 2775 2806 HRESULT rc = E_FAIL; 2776 2807 … … 2822 2853 } 2823 2854 return rc; 2824 #endif /* else !defined (VBOX_WITH_INFO_SVC) */ 2855 #endif /* else !defined (VBOX_WITH_GUEST_PROPS) */ 2856 } 2857 2858 STDMETHODIMP Machine::EnumerateGuestProperties (INPTR BSTR aPattern, ComSafeArrayOut(BSTR, aKeys), ComSafeArrayOut(BSTR, aValues), ComSafeArrayOut(ULONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags)) 2859 { 2860 return E_NOTIMPL; 2825 2861 } 2826 2862
Note:
See TracChangeset
for help on using the changeset viewer.