mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
Fix broken header files
This commit is contained in:
parent
5b0de6c054
commit
673651a51f
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
#define BINDER_FIRST_CALL_TRANSACTION 0x1
|
#define BINDER_FIRST_CALL_TRANSACTION 0x1
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "gfx/nvioctl.h"
|
#include "../gfx/nvioctl.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u32 is_valid;
|
u32 is_valid;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
/// Converts red, green, blue, and alpha components to packed RGBA8.
|
/// Converts red, green, blue, and alpha components to packed RGBA8.
|
||||||
#define RGBA8(r,g,b,a) (((r)&0xff)|(((g)&0xff)<<8)|(((b)&0xff)<<16)|(((a)&0xff)<<24))
|
#define RGBA8(r,g,b,a) (((r)&0xff)|(((g)&0xff)<<8)|(((b)&0xff)<<16)|(((a)&0xff)<<24))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
Result nvgfxInitialize(void);
|
Result nvgfxInitialize(void);
|
||||||
void nvgfxExit(void);
|
void nvgfxExit(void);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u32 arch; // 0x120 (NVGPU_GPU_ARCH_GM200)
|
u32 arch; // 0x120 (NVGPU_GPU_ARCH_GM200)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "result.h"
|
#include "../result.h"
|
||||||
#include "gfx/binder.h"
|
#include "../gfx/binder.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u8 payload[0x400];
|
u8 payload[0x400];
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
bool kernelAbove200(void);
|
bool kernelAbove200(void);
|
||||||
bool kernelAbove300(void);
|
bool kernelAbove300(void);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2018 plutoo
|
// Copyright 2018 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
JitType_CodeMemory,
|
JitType_CodeMemory,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <sys/lock.h>
|
#include <sys/lock.h>
|
||||||
#include "types.h" // not needed in this file, still including it
|
#include "../types.h" // not needed in this file, still including it
|
||||||
|
|
||||||
typedef _LOCK_T Mutex;
|
typedef _LOCK_T Mutex;
|
||||||
typedef _LOCK_RECURSIVE_T RMutex;
|
typedef _LOCK_RECURSIVE_T RMutex;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2018 plutoo
|
// Copyright 2018 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
void randomGet(u8* buf, size_t len);
|
void randomGet(u8* buf, size_t len);
|
||||||
u64 randomGet64(void);
|
u64 randomGet64(void);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2018 plutoo
|
// Copyright 2018 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "kernel/mutex.h"
|
#include "../kernel/mutex.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
RMutex r;
|
RMutex r;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Handle handle;
|
Handle handle;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* @brief Syscall wrappers.
|
* @brief Syscall wrappers.
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
/// Pseudo handle for the current process
|
/// Pseudo handle for the current process
|
||||||
#define CUR_PROCESS_HANDLE 0xFFFF8001
|
#define CUR_PROCESS_HANDLE 0xFFFF8001
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Handle handle;
|
Handle handle;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Handle handle;
|
Handle handle;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
void* virtmemReserve(size_t size);
|
void* virtmemReserve(size_t size);
|
||||||
void virtmemFree(void* addr, size_t size);
|
void virtmemFree(void* addr, size_t size);
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* @endcode
|
* @endcode
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../../types.h"
|
||||||
|
|
||||||
#define CONSOLE_ESC(x) "\x1b[" #x
|
#define CONSOLE_ESC(x) "\x1b[" #x
|
||||||
#define CONSOLE_RESET CONSOLE_ESC(0m)
|
#define CONSOLE_RESET CONSOLE_ESC(0m)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* @brief FS driver.
|
* @brief FS driver.
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "services/fs.h"
|
#include "../../services/fs.h"
|
||||||
|
|
||||||
//NOTE: This is currently not usable.
|
//NOTE: This is currently not usable.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../../types.h"
|
||||||
|
|
||||||
Result usbCommsInitialize(void);
|
Result usbCommsInitialize(void);
|
||||||
void usbCommsExit(void);
|
void usbCommsExit(void);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2018 plutoo
|
// Copyright 2018 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u32 Key;
|
u32 Key;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "types.h"
|
#include "../../types.h"
|
||||||
|
|
||||||
/** Convert a UTF-8 sequence into a UTF-32 codepoint
|
/** Convert a UTF-8 sequence into a UTF-32 codepoint
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
Result accountInitialize(void);
|
Result accountInitialize(void);
|
||||||
void accountExit(void);
|
void accountExit(void);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
/// These are used internally by applet.
|
/// These are used internally by applet.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
AppletType_None = -2,
|
AppletType_None = -2,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
#include "kernel/tmem.h"
|
#include "../kernel/tmem.h"
|
||||||
|
|
||||||
/// Configuration structure for bsdInitalize
|
/// Configuration structure for bsdInitalize
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
__attribute__((noreturn)) void fatalSimple(Result err);
|
__attribute__((noreturn)) void fatalSimple(Result err);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
#include "services/sm.h"
|
#include "../services/sm.h"
|
||||||
|
|
||||||
// We use wrapped handles for type safety.
|
// We use wrapped handles for type safety.
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
#include "services/sm.h"
|
#include "../services/sm.h"
|
||||||
|
|
||||||
// Begin enums and output structs
|
// Begin enums and output structs
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
NVSERVTYPE_Default = -1,
|
NVSERVTYPE_Default = -1,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
|
||||||
#include "types.h"
|
|
||||||
|
|
||||||
// Copyright 2017 plutoo
|
// Copyright 2017 plutoo
|
||||||
|
#pragma once
|
||||||
|
#include "../types.h"
|
||||||
|
|
||||||
Result pmdmntInitialize(void);
|
Result pmdmntInitialize(void);
|
||||||
Result pmdmntStartProcess(u64 pid);
|
Result pmdmntStartProcess(u64 pid);
|
||||||
Result pmdmntGetTitlePid(u64* pid_out, u64 title_id);
|
Result pmdmntGetTitlePid(u64* pid_out, u64 title_id);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
#include "kernel/svc.h"
|
#include "../kernel/svc.h"
|
||||||
#include "ipc.h"
|
#include "../ipc.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
ServiceType_Uninitialized,
|
ServiceType_Uninitialized,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
#include "services/sm.h"
|
#include "../services/sm.h"
|
||||||
|
|
||||||
/// usb:ds Switch-as-device<>host USB comms, see also here: http://switchbrew.org/index.php?title=USB_services
|
/// usb:ds Switch-as-device<>host USB comms, see also here: http://switchbrew.org/index.php?title=USB_services
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "../types.h"
|
||||||
#include "services/sm.h"
|
#include "../services/sm.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u64 display_id;
|
u64 display_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user