mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 04:52:39 +02:00
display/parcel.h: publish ParcelHeader struct
This commit is contained in:
parent
a0b3d3e193
commit
180cd9b550
@ -2,6 +2,13 @@
|
|||||||
#include "../result.h"
|
#include "../result.h"
|
||||||
#include "../display/binder.h"
|
#include "../display/binder.h"
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
u32 payload_size;
|
||||||
|
u32 payload_off;
|
||||||
|
u32 objects_size;
|
||||||
|
u32 objects_off;
|
||||||
|
} ParcelHeader;
|
||||||
|
|
||||||
#define PARCEL_MAX_PAYLOAD 0x400
|
#define PARCEL_MAX_PAYLOAD 0x400
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -4,13 +4,6 @@
|
|||||||
|
|
||||||
// This implements Android Parcel, hence names etc here are based on Android Parcel.cpp.
|
// This implements Android Parcel, hence names etc here are based on Android Parcel.cpp.
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
u32 payload_size;
|
|
||||||
u32 payload_off;
|
|
||||||
u32 objects_size;
|
|
||||||
u32 objects_off;
|
|
||||||
} ParcelHeader;
|
|
||||||
|
|
||||||
void parcelCreate(Parcel *ctx)
|
void parcelCreate(Parcel *ctx)
|
||||||
{
|
{
|
||||||
memset(ctx, 0, sizeof(Parcel));
|
memset(ctx, 0, sizeof(Parcel));
|
||||||
|
Loading…
Reference in New Issue
Block a user