Files
Ole André Vadla Ravnås 0e933206fb Boot virtual machines from the target picker
Add a machine abstraction to LumaCore, with QEMU as its first
backend: templates mirroring frida-core's test guests, a QMP client,
and a display that maps QEMU's surface over D-Bus rather than
copying frames.

Leave readiness to the user: drive the guest, mark it ready, and come
back to that snapshot later. Keep the machine in the project, so
booting it again resumes where it was marked. Hand the stub to
addBareboneDevice, so it joins the picker beside the other devices.

Show the display while booting, and afterwards in a Machines panel,
which the side panel now models as an enum to share its slot.
2026-08-20 14:52:52 +02:00

32 lines
769 B
C

#ifndef CZSTD_H
#define CZSTD_H
#include <stddef.h>
/* Zstandard's decompression entry points, as the single-file decoder defines
* them. A kernel's payload does not declare how large it unpacks to, so it is
* taken a buffer at a time. */
typedef struct ZSTD_DCtx_s ZSTD_DStream;
typedef struct {
const void *src;
size_t size;
size_t pos;
} ZSTD_inBuffer;
typedef struct {
void *dst;
size_t size;
size_t pos;
} ZSTD_outBuffer;
ZSTD_DStream *ZSTD_createDStream(void);
size_t ZSTD_freeDStream(ZSTD_DStream *stream);
size_t ZSTD_initDStream(ZSTD_DStream *stream);
size_t ZSTD_decompressStream(ZSTD_DStream *stream, ZSTD_outBuffer *output, ZSTD_inBuffer *input);
size_t ZSTD_DStreamOutSize(void);
unsigned ZSTD_isError(size_t code);
#endif