xref: /openbmc/qemu/util/filemonitor-stub.c (revision 7d87775f)
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 
21 #include "qemu/osdep.h"
22 #include "qemu/filemonitor.h"
23 #include "qemu/error-report.h"
24 #include "qapi/error.h"
25 
26 
27 QFileMonitor *
28 qemu_file_monitor_new(Error **errp)
29 {
30     error_setg(errp, "File monitoring not available on this platform");
31     return NULL;
32 }
33 
34 
35 void
36 qemu_file_monitor_free(QFileMonitor *mon G_GNUC_UNUSED)
37 {
38 }
39 
40 
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)
48 {
49     error_setg(errp, "File monitoring not available on this platform");
50     return -1;
51 }
52 
53 
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)
58 {
59 }
60