]> git.proxmox.com Git - qemu.git/blobdiff - include/qemu-common.h
spapr: Use DeviceClass::fw_name for device tree CPU node
[qemu.git] / include / qemu-common.h
index f4397388f5c0c5a5b507e24ab07e733c5a08fd23..50548361d09767155821af256a40c547a0cd31f7 100644 (file)
@@ -191,6 +191,9 @@ int64_t strtosz_suffix(const char *nptr, char **end, const char default_suffix);
 int64_t strtosz_suffix_unit(const char *nptr, char **end,
                             const char default_suffix, int64_t unit);
 
+/* used to print char* safely */
+#define STR_OR_NULL(str) ((str) ? (str) : "null")
+
 /* path.c */
 void init_paths(const char *prefix);
 const char *path(const char *pathname);
@@ -293,6 +296,7 @@ struct qemu_work_item {
     void (*func)(void *data);
     void *data;
     int done;
+    bool free;
 };