Import QEMU upstream snapshot d2e570c
Upstream: https://gitlab.com/qemu-project/qemu.git Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
This commit is contained in:
commit
cf256aa081
11315 files changed
+3598369
No files matched your search
@@ -0,0 +1,25 @@
|
||||
[package]
|
||||
name = "util-sys"
|
||||
version = "0.1.0"
|
||||
description = "Rust sys bindings for QEMU/util"
|
||||
publish = false
|
||||
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
homepage.workspace = true
|
||||
license.workspace = true
|
||||
repository.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
||||
[lib]
|
||||
path = "lib.rs"
|
||||
|
||||
[dependencies]
|
||||
glib-sys = { workspace = true }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[package.metadata.bindgen]
|
||||
header = "wrapper.h"
|
||||
rustified-enum = ["module_init_type", "QEMUClockType"]
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../build.rs
|
||||
@@ -0,0 +1,27 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#![allow(
|
||||
dead_code,
|
||||
improper_ctypes_definitions,
|
||||
improper_ctypes,
|
||||
non_camel_case_types,
|
||||
non_snake_case,
|
||||
non_upper_case_globals,
|
||||
unnecessary_transmutes,
|
||||
unsafe_op_in_unsafe_fn,
|
||||
clippy::pedantic,
|
||||
clippy::restriction,
|
||||
clippy::style,
|
||||
clippy::missing_const_for_fn,
|
||||
clippy::ptr_offset_with_cast,
|
||||
clippy::useless_transmute,
|
||||
clippy::missing_safety_doc,
|
||||
clippy::too_many_arguments
|
||||
)]
|
||||
|
||||
use glib_sys::{guint, GArray, GHashTable, GPollFD, GSList, GSource, GString};
|
||||
|
||||
#[cfg(MESON)]
|
||||
include!("bindings.inc.rs");
|
||||
|
||||
#[cfg(not(MESON))]
|
||||
include!(concat!(env!("OUT_DIR"), "/bindings.inc.rs"));
|
||||
@@ -0,0 +1,9 @@
|
||||
_bindgen_util_rs = rust.bindgen(
|
||||
args: bindgen_args_common + bindgen_args_data['util-sys'].split(),
|
||||
kwargs: bindgen_kwargs)
|
||||
|
||||
_util_sys_rs = cargo_ws.package('util-sys').library(
|
||||
structured_sources(['lib.rs', _bindgen_util_rs]))
|
||||
cargo_ws.package('util-sys').override_dependency(declare_dependency(link_with: _util_sys_rs))
|
||||
|
||||
util_sys_rs = declare_dependency(link_with: [_util_sys_rs])
|
||||
@@ -0,0 +1,39 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
/*
|
||||
* This header file is meant to be used as input to the `bindgen` application
|
||||
* in order to generate C FFI compatible Rust bindings.
|
||||
*/
|
||||
|
||||
/*
|
||||
* We block include/qemu/typedefs.h from bindgen, add here symbols
|
||||
* that are needed as opaque types by other functions.
|
||||
*/
|
||||
typedef struct QEMUBH QEMUBH;
|
||||
typedef struct QEMUFile QEMUFile;
|
||||
typedef struct QemuOpts QemuOpts;
|
||||
typedef struct JSONWriter JSONWriter;
|
||||
typedef struct Visitor Visitor;
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/error-internal.h"
|
||||
#include "qemu/event_notifier.h"
|
||||
#include "qemu/main-loop.h"
|
||||
#include "qemu/aio.h"
|
||||
#include "qemu/log-for-trace.h"
|
||||
#include "qemu/log.h"
|
||||
#include "qemu/module.h"
|
||||
#include "qemu/option.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "qapi/visitor.h"
|
||||
#include "qobject/qbool.h"
|
||||
#include "qobject/qdict.h"
|
||||
#include "qobject/qjson.h"
|
||||
#include "qobject/qlist.h"
|
||||
#include "qobject/qnull.h"
|
||||
#include "qobject/qnum.h"
|
||||
#include "qobject/qobject.h"
|
||||
#include "qobject/qstring.h"
|
||||
#include "qobject/json-writer.h"
|
||||
Reference in new issue
Block a user