1
0
mirror of https://github.com/switchbrew/libnx.git synced 2025-07-19 17:12:14 +02:00
libnx/nx/include/switch/nvidia/gpu/error_notifier.h

15 lines
379 B
C

#pragma once
typedef struct NvGpu NvGpu;
typedef struct {
NvGpu* parent;
Event event;
bool has_init;
} NvErrorNotifier;
Result nvErrorNotifierCreate(NvErrorNotifier* t, NvGpu* parent);
void nvErrorNotifierClose(NvErrorNotifier* t);
Result nvErrorNotifierWait(NvErrorNotifier* t, u64 timeout);
Result nvErrorNotifierGetError(NvErrorNotifier* t, NvError* out);