Re: QEMU headers in C++

2024-05-02 Thread Roman Kiryanov
Hi Paolo, thank you for looking. On Thu, May 2, 2024 at 8:19 AM Paolo Bonzini wrote: > > Anyway, just out of curiosity I tried to see what it would take to > compile edu.c as C++ code, which I think lets us give a more informed > answer. > > There were a bunch of conflicts with C++ keyword,

Re: QEMU headers in C++

2024-05-02 Thread Paolo Bonzini
On 5/2/24 10:02, Daniel P. Berrangé 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*). NB, in recent past QEMU

Re: QEMU headers in C++

2024-05-02 Thread Peter Maydell
On Thu, 2 May 2024 at 09:02, Daniel P. Berrangé wrote: > > On Wed, May 01, 2024 at 09:40:16PM -0700, Roman Kiryanov wrote: > > Hi QEMU, > > > > I work in Android Studio Emulator and we would like to develop devices > > in C++. Unfortunately, QEMU headers cannot b

Re: QEMU headers in C++

2024-05-02 Thread Warner Losh
On Thu, May 2, 2024 at 12:20 AM Thomas Huth wrote: > 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 >

Re: QEMU headers in C++

2024-05-02 Thread Daniel P . Berrangé
On Wed, May 01, 2024 at 09:40:16PM -0700, 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 ca

Re: QEMU headers in C++

2024-05-02 Thread Thomas Huth
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

QEMU headers in C++

2024-05-01 Thread Roman Kiryanov
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*). Will QEMU be open to accept patches from us to make QEMU headers C