Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
36
Src/Wasabi/api/service/svcs/svc_console.h
Normal file
36
Src/Wasabi/api/service/svcs/svc_console.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
#ifndef _SVC_CONSOLE_H
|
||||
#define _SVC_CONSOLE_H
|
||||
|
||||
#include <bfc/dispatch.h>
|
||||
|
||||
class NOVTABLE svc_console : public Dispatchable
|
||||
{
|
||||
public:
|
||||
int activated();
|
||||
int outputString(int severity, const char *string);
|
||||
|
||||
enum {
|
||||
ACTIVATED=10,
|
||||
OUTPUTSTRING=20,
|
||||
};
|
||||
};
|
||||
|
||||
inline int svc_console::activated() {
|
||||
return _call(ACTIVATED, 0);
|
||||
}
|
||||
|
||||
inline int svc_console::outputString(int severity, const char *string) {
|
||||
return _call(OUTPUTSTRING, 0, severity, string);
|
||||
}
|
||||
|
||||
// derive from this one
|
||||
class svc_consoleI : public svc_console {
|
||||
public:
|
||||
virtual int activated()=0;
|
||||
virtual int outputString(int severity, const char *string)=0;
|
||||
|
||||
protected:
|
||||
RECVS_DISPATCH;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue