aboutsummaryrefslogtreecommitdiff
path: root/include/chardev/char-fd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/chardev/char-fd.h')
-rw-r--r--include/chardev/char-fd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/chardev/char-fd.h b/include/chardev/char-fd.h
index 1442dca..9de0e44 100644
--- a/include/chardev/char-fd.h
+++ b/include/chardev/char-fd.h
@@ -38,7 +38,8 @@ typedef struct FDChardev FDChardev;
#define TYPE_CHARDEV_FD "chardev-fd"
-#define FD_CHARDEV(obj) OBJECT_CHECK(FDChardev, (obj), TYPE_CHARDEV_FD)
+DECLARE_INSTANCE_CHECKER(FDChardev, FD_CHARDEV,
+ TYPE_CHARDEV_FD)
void qemu_chr_open_fd(Chardev *chr, int fd_in, int fd_out);
int qmp_chardev_open_file_source(char *src, int flags, Error **errp);