filemonitor-stub.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * QEMU file monitor stub impl
  3. *
  4. * Copyright (c) 2018 Red Hat, Inc.
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. #include "qemu/osdep.h"
  21. #include "qemu/filemonitor.h"
  22. #include "qemu/error-report.h"
  23. #include "qapi/error.h"
  24. QFileMonitor *
  25. qemu_file_monitor_new(Error **errp)
  26. {
  27. error_setg(errp, "File monitoring not available on this platform");
  28. return NULL;
  29. }
  30. void
  31. qemu_file_monitor_free(QFileMonitor *mon G_GNUC_UNUSED)
  32. {
  33. }
  34. int64_t
  35. qemu_file_monitor_add_watch(QFileMonitor *mon G_GNUC_UNUSED,
  36. const char *dirpath G_GNUC_UNUSED,
  37. const char *filename G_GNUC_UNUSED,
  38. QFileMonitorHandler cb G_GNUC_UNUSED,
  39. void *opaque G_GNUC_UNUSED,
  40. Error **errp)
  41. {
  42. error_setg(errp, "File monitoring not available on this platform");
  43. return -1;
  44. }
  45. void
  46. qemu_file_monitor_remove_watch(QFileMonitor *mon G_GNUC_UNUSED,
  47. const char *dirpath G_GNUC_UNUSED,
  48. int64_t id G_GNUC_UNUSED)
  49. {
  50. }