Added the beginnings of the midi_server
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1790 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
24a8c5cfe1
commit
37192de9c0
@ -4,6 +4,7 @@ SubInclude OBOS_TOP src servers app ;
|
|||||||
SubInclude OBOS_TOP src servers input ;
|
SubInclude OBOS_TOP src servers input ;
|
||||||
SubInclude OBOS_TOP src servers media ;
|
SubInclude OBOS_TOP src servers media ;
|
||||||
SubInclude OBOS_TOP src servers media_addon ;
|
SubInclude OBOS_TOP src servers media_addon ;
|
||||||
|
SubInclude OBOS_TOP src servers midi ;
|
||||||
SubInclude OBOS_TOP src servers print ;
|
SubInclude OBOS_TOP src servers print ;
|
||||||
SubInclude OBOS_TOP src servers registrar ;
|
SubInclude OBOS_TOP src servers registrar ;
|
||||||
SubInclude OBOS_TOP src servers screensaver ;
|
SubInclude OBOS_TOP src servers screensaver ;
|
||||||
|
12
src/servers/midi/Jamfile
Normal file
12
src/servers/midi/Jamfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
SubDir OBOS_TOP src servers midi ;
|
||||||
|
|
||||||
|
UsePrivateHeaders midi ;
|
||||||
|
|
||||||
|
AddResources midi_server :
|
||||||
|
midi_server.rsrc ;
|
||||||
|
|
||||||
|
Server midi_server :
|
||||||
|
MidiServerApp.cpp ;
|
||||||
|
|
||||||
|
LinkSharedOSLibs midi_server : be root ;
|
||||||
|
|
34
src/servers/midi/MidiServerApp.cpp
Normal file
34
src/servers/midi/MidiServerApp.cpp
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
#include <Alert.h>
|
||||||
|
|
||||||
|
#include "MidiServerApp.h"
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MidiServerApp::MidiServerApp()
|
||||||
|
: BApplication("application/x-vnd.be-midi-roster")
|
||||||
|
{
|
||||||
|
// Do nothing.
|
||||||
|
}
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
void MidiServerApp::AboutRequested()
|
||||||
|
{
|
||||||
|
(new BAlert(0,
|
||||||
|
"-write something funny here-",
|
||||||
|
"Okay", 0, 0, B_WIDTH_AS_USUAL,
|
||||||
|
B_INFO_ALERT))->Go();
|
||||||
|
}
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
MidiServerApp app;
|
||||||
|
app.Run();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
18
src/servers/midi/MidiServerApp.h
Normal file
18
src/servers/midi/MidiServerApp.h
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
#ifndef MIDI_SERVER_APP_H
|
||||||
|
#define MIDI_SERVER_APP_H
|
||||||
|
|
||||||
|
#include <Application.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The BApplication that drives the midi_server.
|
||||||
|
*/
|
||||||
|
class MidiServerApp : public BApplication
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
MidiServerApp();
|
||||||
|
virtual void AboutRequested();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // MIDI_SERVER_APP_H
|
||||||
|
|
BIN
src/servers/midi/midi_server.rsrc
Normal file
BIN
src/servers/midi/midi_server.rsrc
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user