hw/sd/sdcard: Register unimplemented command handlers
[qemu/armbru.git] / util / filemonitor-stub.c
blob93fef65345d309716b0f69f7b95821fa6a6fb583
1 /*
2 * QEMU file monitor stub impl
4 * Copyright (c) 2018 Red Hat, Inc.
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.
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.
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/>.
21 #include "qemu/osdep.h"
22 #include "qemu/filemonitor.h"
23 #include "qemu/error-report.h"
24 #include "qapi/error.h"
27 QFileMonitor *
28 qemu_file_monitor_new(Error **errp)
30 error_setg(errp, "File monitoring not available on this platform");
31 return NULL;
35 void
36 qemu_file_monitor_free(QFileMonitor *mon G_GNUC_UNUSED)
41 int64_t
42 qemu_file_monitor_add_watch(QFileMonitor *mon G_GNUC_UNUSED,
43 const char *dirpath G_GNUC_UNUSED,
44 const char *filename G_GNUC_UNUSED,
45 QFileMonitorHandler cb G_GNUC_UNUSED,
46 void *opaque G_GNUC_UNUSED,
47 Error **errp)
49 error_setg(errp, "File monitoring not available on this platform");
50 return -1;
54 void
55 qemu_file_monitor_remove_watch(QFileMonitor *mon G_GNUC_UNUSED,
56 const char *dirpath G_GNUC_UNUSED,
57 int64_t id G_GNUC_UNUSED)