db_events.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* Copyright (C) 2014 Stony Brook University
  2. This file is part of Graphene Library OS.
  3. Graphene Library OS is free software: you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public License
  5. as published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. Graphene Library OS is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  13. /*
  14. * db_event.c
  15. *
  16. * This file contains implementation of Drawbridge event synchronization APIs.
  17. */
  18. #include "api.h"
  19. #include "pal.h"
  20. #include "pal_defs.h"
  21. #include "pal_error.h"
  22. #include "pal_internal.h"
  23. int _DkEventCreate(PAL_HANDLE* event, bool initialState, bool isnotification) {
  24. return -PAL_ERROR_NOTIMPLEMENTED;
  25. }
  26. void _DkEventDestroy(PAL_HANDLE handle) {
  27. /* needs to be implemented */
  28. }
  29. int _DkEventSet(PAL_HANDLE event, int wakeup) {
  30. return -PAL_ERROR_NOTIMPLEMENTED;
  31. }
  32. int _DkEventWaitTimeout(PAL_HANDLE event, int64_t timeout_us) {
  33. return -PAL_ERROR_NOTIMPLEMENTED;
  34. }
  35. int _DkEventWait(PAL_HANDLE event) {
  36. return -PAL_ERROR_NOTIMPLEMENTED;
  37. }
  38. int _DkEventClear(PAL_HANDLE event) {
  39. return -PAL_ERROR_NOTIMPLEMENTED;
  40. }
  41. static int event_close(PAL_HANDLE handle) {
  42. return -PAL_ERROR_NOTIMPLEMENTED;
  43. }
  44. static int event_wait(PAL_HANDLE handle, int64_t timeout_us) {
  45. return -PAL_ERROR_NOTIMPLEMENTED;
  46. }
  47. struct handle_ops event_ops = {
  48. .close = &event_close,
  49. .wait = &event_wait,
  50. };