haiku build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11303 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c9df9f3086
commit
7d3f2fc424
@ -1,6 +1,7 @@
|
||||
SubDir OBOS_TOP src add-ons input_server devices keyboard ;
|
||||
|
||||
UsePrivateHeaders input ;
|
||||
UsePrivateHeaders kernel ;
|
||||
|
||||
Addon <input>keyboard : input_server/devices :
|
||||
KeyboardInputDevice.cpp
|
||||
@ -15,7 +16,7 @@ Addon <input>keyboard : input_server/devices :
|
||||
if $(COMPILE_FOR_R5) {
|
||||
LinkSharedOSLibs <input>keyboard : be ;
|
||||
} else {
|
||||
LinkSharedOSLibs <input>keyboard : libbe.so ;
|
||||
LinkSharedOSLibs <input>keyboard : libroot.so libbe.so ;
|
||||
}
|
||||
|
||||
Package haiku-inputkit-cvs :
|
||||
|
@ -25,9 +25,12 @@ const uint32 TM_FORCE_REBOOT = 'TMfr';
|
||||
const uint32 TM_KILL_APPLICATION = 'TMka';
|
||||
const uint32 TM_SELECTED_TEAM = 'TMst';
|
||||
|
||||
extern "C" void _kshutdown_(long arg);
|
||||
#define SHUTDOWN_HALT 0
|
||||
#define SHUTDOWN_REBOOT 1
|
||||
#ifdef COMPILE_FOR_R5
|
||||
extern "C" void _kshutdown_(bool reboot);
|
||||
#else
|
||||
#include <syscalls.h>
|
||||
#define _kshutdown_(x) _kern_shutdown(x)
|
||||
#endif
|
||||
|
||||
TMWindow::TMWindow()
|
||||
: BWindow(BRect(0,0,350,300), "Team Monitor",
|
||||
@ -102,7 +105,7 @@ TMWindow::MessageReceived(BMessage *msg)
|
||||
switch(msg->what)
|
||||
{
|
||||
case TM_FORCE_REBOOT:
|
||||
_kshutdown_(SHUTDOWN_REBOOT);
|
||||
_kshutdown_(true);
|
||||
break;
|
||||
case TM_KILL_APPLICATION: {
|
||||
TMListItem *item = (TMListItem*)fBackground->fListView->ItemAt(
|
||||
|
Loading…
Reference in New Issue
Block a user