1
0

svc_console.h 671 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _SVC_CONSOLE_H
  2. #define _SVC_CONSOLE_H
  3. #include <bfc/dispatch.h>
  4. class NOVTABLE svc_console : public Dispatchable
  5. {
  6. public:
  7. int activated();
  8. int outputString(int severity, const char *string);
  9. enum {
  10. ACTIVATED=10,
  11. OUTPUTSTRING=20,
  12. };
  13. };
  14. inline int svc_console::activated() {
  15. return _call(ACTIVATED, 0);
  16. }
  17. inline int svc_console::outputString(int severity, const char *string) {
  18. return _call(OUTPUTSTRING, 0, severity, string);
  19. }
  20. // derive from this one
  21. class svc_consoleI : public svc_console {
  22. public:
  23. virtual int activated()=0;
  24. virtual int outputString(int severity, const char *string)=0;
  25. protected:
  26. RECVS_DISPATCH;
  27. };
  28. #endif