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