From: Thomas Huth <thuth@redhat.com>
To: Roman Kiryanov <rkir@google.com>,
QEMU Developers <qemu-devel@nongnu.org>
Cc: JP Cottin <jpcottin@google.com>, Erwin Jansen <jansene@google.com>
Subject: Re: QEMU headers in C++
Date: Thu, 2 May 2024 08:19:18 +0200 [thread overview]
Message-ID: <e04bd44b-8a91-48c0-9fbf-223d1b28e7cd@redhat.com> (raw)
In-Reply-To: <CAOGAQeq+Wu9wiBj+tF0PJHMZS-F4KnVBOXCyXhYQsm+REyLUpg@mail.gmail.com>
On 02/05/2024 06.40, Roman Kiryanov wrote:
> Hi QEMU,
>
> I work in Android Studio Emulator and we would like to develop devices
> in C++. Unfortunately, QEMU headers cannot be used with C++ as is
> (e.g. they use C++ keywords as variable names or implicitly cast void*
> to T*).
Can't you simply use something like:
extern "C" {
#include <foo.h>
}
to include the QEMU headers?
Thomas
next prev parent reply other threads:[~2024-05-02 6:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-02 4:40 QEMU headers in C++ Roman Kiryanov
2024-05-02 6:19 ` Thomas Huth [this message]
2024-05-02 14:47 ` Warner Losh
2024-05-02 8:02 ` Daniel P. Berrangé
2024-05-02 15:17 ` Peter Maydell
[not found] <a href="raw">
[not found] ` </a>
2024-05-02 15:19 ` Paolo Bonzini
2024-05-02 16:04 ` Roman Kiryanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e04bd44b-8a91-48c0-9fbf-223d1b28e7cd@redhat.com \
--to=thuth@redhat.com \
--cc=jansene@google.com \
--cc=jpcottin@google.com \
--cc=qemu-devel@nongnu.org \
--cc=rkir@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).