mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
19 lines
488 B
C
19 lines
488 B
C
#pragma once
|
|
#include "types.h"
|
|
|
|
typedef struct {
|
|
Handle handle;
|
|
size_t size;
|
|
Permission perm;
|
|
void* map_addr;
|
|
} SharedMemory;
|
|
|
|
Result shmemCreate(SharedMemory* s, size_t size, Permission local_perm, Permission remote_perm);
|
|
void shmemLoadRemote(SharedMemory* t, Handle handle, size_t size, Permission perm);
|
|
|
|
Result shmemMap(SharedMemory* t);
|
|
Result shmemUnmap(SharedMemory* t);
|
|
void* shmemGetAddr(SharedMemory* t);
|
|
|
|
Result shmemClose(SharedMemory* t);
|