00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include <OPENR/OSyslog.h>
00013 #include "HelloWorld.h"
00014
00015 HelloWorld::HelloWorld ()
00016 {
00017 OSYSDEBUG(("HelloWorld::HelloWorld()\n"));
00018 }
00019
00020 OStatus
00021 HelloWorld::DoInit(const OSystemEvent& event)
00022 {
00023 OSYSDEBUG(("HelloWorld::DoInit()\n"));
00024 return oSUCCESS;
00025 }
00026
00027 OStatus
00028 HelloWorld::DoStart(const OSystemEvent& event)
00029 {
00030 OSYSDEBUG(("HelloWorld::DoStart()\n"));
00031 OSYSPRINT(("!!! Hello World !!!\n"));
00032 return oSUCCESS;
00033 }
00034
00035 OStatus
00036 HelloWorld::DoStop(const OSystemEvent& event)
00037 {
00038 OSYSDEBUG(("HelloWorld::DoStop()\n"));
00039 OSYSLOG1((osyslogERROR, "Bye Bye ..."));
00040 return oSUCCESS;
00041 }
00042
00043 OStatus
00044 HelloWorld::DoDestroy(const OSystemEvent& event)
00045 {
00046 return oSUCCESS;
00047 }