Changeset 55602 in vbox
- Timestamp:
- May 2, 2015 10:12:13 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
-
include/VBox/dbus-calls.h (modified) (1 diff)
-
src/VBox/Main/Makefile.kmk (modified) (1 diff)
-
src/VBox/Main/include/HostPower.h (modified) (2 diffs)
-
src/VBox/Main/src-server/HostImpl.cpp (modified) (1 diff)
-
src/VBox/Main/src-server/linux/HostPowerLinux.cpp (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/dbus-calls.h
r44529 r55602 125 125 DBusHandleMessageFunction function, void *pvoid), \ 126 126 (connection, function, pvoid)) \ 127 RT_PROXY_STUB(dbus_connection_read_write, dbus_bool_t, \ 128 (DBusConnection *connection, int val), (connection, val)) \ 127 129 RT_PROXY_STUB(dbus_connection_read_write_dispatch, dbus_bool_t, \ 128 130 (DBusConnection *connection, int val), (connection, val)) \ -
trunk/src/VBox/Main/Makefile.kmk
r55436 r55602 430 430 src-server/linux/HostHardwareLinux.cpp \ 431 431 src-server/linux/HostDnsServiceLinux.cpp \ 432 src-server/linux/HostPowerLinux.cpp \ 432 433 src-server/HostDnsServiceResolvConf.cpp 433 434 -
trunk/src/VBox/Main/include/HostPower.h
r55436 r55602 23 23 24 24 #include <vector> 25 26 #ifdef RT_OS_LINUX 27 # include <VBox/dbus.h> 28 #endif 25 29 26 30 #ifdef RT_OS_DARWIN … … 60 64 RTTHREAD mThread; 61 65 }; 66 #elif defined(RT_OS_LINUX) 67 /** 68 * The Linux hosted Power Service. 69 */ 70 class HostPowerServiceLinux : public HostPowerService 71 { 72 public: 73 74 HostPowerServiceLinux(VirtualBox *aVirtualBox); 75 virtual ~HostPowerServiceLinux(); 76 77 private: 78 79 static DECLCALLBACK(int) powerChangeNotificationThread(RTTHREAD ThreadSelf, void *pInstance); 80 81 /* Private member vars */ 82 /** Our message thread. */ 83 RTTHREAD mThread; 84 /** Our (private) connection to the DBus. Closing this will cause the 85 * message thread to exit. */ 86 DBusConnection *mpConnection; 87 }; 88 62 89 # elif defined(RT_OS_DARWIN) /* RT_OS_WINDOWS */ 63 90 /** -
trunk/src/VBox/Main/src-server/HostImpl.cpp
r55457 r55602 304 304 #if defined(RT_OS_WINDOWS) 305 305 m->pHostPowerService = new HostPowerServiceWin(m->pParent); 306 #elif defined(RT_OS_LINUX) 307 m->pHostPowerService = new HostPowerServiceLinux(m->pParent); 306 308 #elif defined(RT_OS_DARWIN) 307 309 m->pHostPowerService = new HostPowerServiceDarwin(m->pParent);
Note:
See TracChangeset
for help on using the changeset viewer.

