UNIXcompat.cpp 596 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include <stdlib.h>
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. #include "../wonx/UNIXTimerP.h"
  6. #include "../wonx/UNIXTimer.h"
  7. #ifdef __cplusplus
  8. }
  9. #endif
  10. static _UNIXTimer ut;
  11. UNIXTimer UNIXTimer_Create(int auto_preset, int interval, void *parameter, UNIXTimerCallBack callback) {
  12. return &ut;
  13. }
  14. UNIXTimer UNIXTimer_Destroy(UNIXTimer unix_timer) {
  15. return NULL;
  16. }
  17. int UNIXTimer_Pause(UNIXTimer unix_timer) {
  18. return 0;
  19. }
  20. int UNIXTimer_Unpause(UNIXTimer unix_timer) {
  21. return 0;
  22. }
  23. int UNIXTimer_ON(UNIXTimer unix_timer) {
  24. return 0;
  25. }
  26. int UNIXTimer_OFF(UNIXTimer unix_timer) {
  27. return 0;
  28. }