Rearrange wrapper to be in line with module

This commit is contained in:
Joey Yakimowich-Payne 2018-06-23 13:21:08 +09:00
commit 8c84f11bbb
130 changed files with 178 additions and 176 deletions

View file

@ -1,5 +1,5 @@
[n.global] [n.global]
output="src/libnx_wrapper" output="src/libnx/wrapper"
c_compiler="aarch64-none-elf-gcc" c_compiler="aarch64-none-elf-gcc"
cpp_compiler="aarch64-none-elf-g++" cpp_compiler="aarch64-none-elf-g++"
filter=lock filter=lock
@ -44,23 +44,23 @@ replace.u32 = "uint32"
search.u64 = "u64" search.u64 = "u64"
replace.u64 = "uint64" replace.u64 = "uint64"
search.lib = " src/libnx_wrapper" search.lib = " src/libnx/wrapper"
replace.lib = " libnx_wrapper" replace.lib = " libnx/wrapper"
search.timport = "../types" search.timport = "../types"
replace.timport = "libnx_wrapper/types" replace.timport = "libnx/wrapper/types"
search.kimport = "../kernel/" search.kimport = "../kernel/"
replace.kimport = "libnx_wrapper/" replace.kimport = "libnx/wrapper/"
search.servimport = "../services/" search.servimport = "../services/"
replace.servimport = "libnx_wrapper/" replace.servimport = "libnx/wrapper/"
search.resimport = "../result" search.resimport = "../result"
replace.resimport = "libnx_wrapper/result" replace.resimport = "libnx/wrapper/result"
search.armimport = "../arm/" search.armimport = "../arm/"
replace.armimport = "libnx_wrapper/" replace.armimport = "libnx/wrapper/"
search.lock = "_LOCK" search.lock = "_LOCK"
replace.lock = "LOCK" replace.lock = "LOCK"
@ -68,9 +68,10 @@ replace.lock = "LOCK"
search.cdecl = "stdcall" search.cdecl = "stdcall"
replace.cdecl = "cdecl" replace.cdecl = "cdecl"
[src/libnx_wrapper/nim.cfg] [src/libnx/wrapper/nim.cfg]
create = """ create = """
--path:"../" --path:"../"
--path:"../../"
""" """
[result.h] [result.h]
@ -171,7 +172,7 @@ template BIT*(n): auto = (1.uint shl n)
search.import = "type\n" search.import = "type\n"
prepend.import = """ prepend.import = """
import libnx_wrapper/types import libnx/wrapper/types
""" """
search.permx = "Perm_X = BIT(2), ## /< Execute permission." search.permx = "Perm_X = BIT(2), ## /< Execute permission."
@ -186,13 +187,13 @@ replace.permrx = "Perm_Rx = Perm_R.int or Perm_X.int, ## /< Read/execute permi
[shmem.nim] [shmem.nim]
search.import = "type\n" search.import = "type\n"
prepend.import = """ prepend.import = """
import libnx_wrapper/svc import libnx/wrapper/svc
""" """
[nacp.nim] [nacp.nim]
search.t = "type" search.t = "type"
prepend.t = """ prepend.t = """
import libnx_wrapper/types import libnx/wrapper/types
""" """
[lock.nim] [lock.nim]
@ -204,7 +205,7 @@ replace.nlock_t = "= DUlock_t"
search.import = "type" search.import = "type"
prepend.import = """ prepend.import = """
import libnx_wrapper/types import libnx/wrapper/types
""" """
search.proc_under = "proc __" search.proc_under = "proc __"
@ -216,19 +217,19 @@ replace.o = "uint32.high"
search.import = "import\n" search.import = "import\n"
append.import = """ append.import = """
libnx_wrapper/types, libnx/wrapper/types,
""" """
[audin.nim] [audin.nim]
search.o = "import " search.o = "import "
prepend.o = """ prepend.o = """
import libnx_wrapper/types import libnx/wrapper/types
""" """
[audout.nim] [audout.nim]
search.o = "import " search.o = "import "
prepend.o = """ prepend.o = """
import libnx_wrapper/types import libnx/wrapper/types
""" """
[hid.nim] [hid.nim]
@ -267,32 +268,32 @@ prepend.key_sl = """
[nifm.nim] [nifm.nim]
search.o = "import libnx" search.o = "import libnx"
prepend.o = """ prepend.o = """
import libnx_wrapper/types import libnx/wrapper/types
""" """
[set.nim] [set.nim]
search.o = "import libnx" search.o = "import libnx"
prepend.o = """ prepend.o = """
import libnx_wrapper/types import libnx/wrapper/types
""" """
[parcel.nim] [parcel.nim]
search.o = "import libnx" search.o = "import libnx"
prepend.o = """ prepend.o = """
import libnx_wrapper/types import libnx/wrapper/types
""" """
[fs_dev.nim] [fs_dev.nim]
search.o = "import libnx" search.o = "import libnx"
prepend.o = """ prepend.o = """
import libnx_wrapper/types import libnx/wrapper/types
""" """
[buffer_producer.nim] [buffer_producer.nim]
search.o = "import libnx" search.o = "import libnx"
prepend.o = """ prepend.o = """
import libnx_wrapper/types import libnx/wrapper/types
import libnx_wrapper/binder import libnx/wrapper/binder
""" """
[nxlink.nim] [nxlink.nim]

View file

@ -1,8 +1,8 @@
import strutils import strutils
import ospaths import ospaths
const headeracc = currentSourcePath().splitPath().head & "/nx/include/switch/services/acc.h" const headeracc = currentSourcePath().splitPath().head & "/nx/include/switch/services/acc.h"
import libnx_wrapper/types import libnx/wrapper/types
import libnx_wrapper/sm import libnx/wrapper/sm
type type
AccountProfile* {.importc: "AccountProfile", header: headeracc, bycopy.} = object AccountProfile* {.importc: "AccountProfile", header: headeracc, bycopy.} = object
s* {.importc: "s".}: Service s* {.importc: "s".}: Service

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headerapm = currentSourcePath().splitPath().head & "/nx/include/switch/services/apm.h" const headerapm = currentSourcePath().splitPath().head & "/nx/include/switch/services/apm.h"
import libnx_wrapper/types import libnx/wrapper/types
proc apmInitialize*(): Result {.cdecl, importc: "apmInitialize", header: headerapm.} proc apmInitialize*(): Result {.cdecl, importc: "apmInitialize", header: headerapm.}
proc apmExit*() {.cdecl, importc: "apmExit", header: headerapm.} proc apmExit*() {.cdecl, importc: "apmExit", header: headerapm.}
proc apmSetPerformanceConfiguration*(PerformanceMode: uint32; proc apmSetPerformanceConfiguration*(PerformanceMode: uint32;

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headerapplet = currentSourcePath().splitPath().head & "/nx/include/switch/services/applet.h" const headerapplet = currentSourcePath().splitPath().head & "/nx/include/switch/services/applet.h"
import libnx_wrapper/types import libnx/wrapper/types
type type
AppletType* {.size: sizeof(cint).} = enum AppletType* {.size: sizeof(cint).} = enum
AppletType_None = -2, AppletType_Default = -1, AppletType_Application = 0, AppletType_None = -2, AppletType_Default = -1, AppletType_Application = 0,

View file

@ -1,8 +1,8 @@
import libnx_wrapper/types import libnx/wrapper/types
import strutils import strutils
import ospaths import ospaths
const headeraudin = currentSourcePath().splitPath().head & "/nx/include/switch/services/audin.h" const headeraudin = currentSourcePath().splitPath().head & "/nx/include/switch/services/audin.h"
import libnx_wrapper/audio import libnx/wrapper/audio
type type
AudioInState* {.size: sizeof(cint).} = enum AudioInState* {.size: sizeof(cint).} = enum
AudioInState_Started = 0, AudioInState_Stopped = 1 AudioInState_Started = 0, AudioInState_Stopped = 1

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headeraudio = currentSourcePath().splitPath().head & "/nx/include/switch/audio/audio.h" const headeraudio = currentSourcePath().splitPath().head & "/nx/include/switch/audio/audio.h"
import libnx_wrapper/types import libnx/wrapper/types
type type
PcmFormat* {.size: sizeof(cint).} = enum PcmFormat* {.size: sizeof(cint).} = enum
PcmFormat_Invalid = 0, PcmFormat_Int8 = 1, PcmFormat_Int16 = 2, PcmFormat_Int24 = 3, PcmFormat_Invalid = 0, PcmFormat_Int8 = 1, PcmFormat_Int16 = 2, PcmFormat_Int24 = 3,

View file

@ -1,8 +1,8 @@
import libnx_wrapper/types import libnx/wrapper/types
import strutils import strutils
import ospaths import ospaths
const headeraudout = currentSourcePath().splitPath().head & "/nx/include/switch/services/audout.h" const headeraudout = currentSourcePath().splitPath().head & "/nx/include/switch/services/audout.h"
import libnx_wrapper/audio import libnx/wrapper/audio
type type
AudioOutState* {.size: sizeof(cint).} = enum AudioOutState* {.size: sizeof(cint).} = enum
AudioOutState_Started = 0, AudioOutState_Stopped = 1 AudioOutState_Started = 0, AudioOutState_Stopped = 1

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headerbinder = currentSourcePath().splitPath().head & "/nx/include/switch/gfx/binder.h" const headerbinder = currentSourcePath().splitPath().head & "/nx/include/switch/gfx/binder.h"
import libnx_wrapper/types import libnx/wrapper/types
const const
BINDER_FIRST_CALL_TRANSACTION* = 0x00000001 BINDER_FIRST_CALL_TRANSACTION* = 0x00000001

View file

@ -1,9 +1,9 @@
import strutils import strutils
import ospaths import ospaths
const headerbuffer_producer = currentSourcePath().splitPath().head & "/nx/include/switch/gfx/buffer_producer.h" const headerbuffer_producer = currentSourcePath().splitPath().head & "/nx/include/switch/gfx/buffer_producer.h"
import libnx_wrapper/types import libnx/wrapper/types
import libnx_wrapper/binder import libnx/wrapper/binder
import libnx_wrapper/nvioctl import libnx/wrapper/nvioctl
type type
INNER_C_STRUCT_3208597589* {.importc: "no_name", header: headerbuffer_producer, INNER_C_STRUCT_3208597589* {.importc: "no_name", header: headerbuffer_producer,
bycopy.} = object bycopy.} = object

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headercache = currentSourcePath().splitPath().head & "/nx/include/switch/arm/cache.h" const headercache = currentSourcePath().splitPath().head & "/nx/include/switch/arm/cache.h"
import libnx_wrapper/types import libnx/wrapper/types
proc armDCacheFlush*(`addr`: pointer; size: csize) {.cdecl, proc armDCacheFlush*(`addr`: pointer; size: csize) {.cdecl,
importc: "armDCacheFlush", header: headercache.} importc: "armDCacheFlush", header: headercache.}
proc armDCacheClean*(`addr`: pointer; size: csize) {.cdecl, proc armDCacheClean*(`addr`: pointer; size: csize) {.cdecl,

View file

@ -9,7 +9,7 @@ const headercondvar = currentSourcePath().splitPath().head & "/nx/include/switch
## ##
import import
libnx_wrapper/types, libnx_wrapper/mutex libnx/wrapper/types, libnx/wrapper/mutex
## / Condition variable structure. ## / Condition variable structure.

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headerconsole = currentSourcePath().splitPath().head & "/nx/include/switch/runtime/devices/console.h" const headerconsole = currentSourcePath().splitPath().head & "/nx/include/switch/runtime/devices/console.h"
import libnx_wrapper/types import libnx/wrapper/types
type type
ConsolePrint* = proc (con: pointer; c: cint): bool {.cdecl.} ConsolePrint* = proc (con: pointer; c: cint): bool {.cdecl.}
ConsoleFont* {.importc: "ConsoleFont", header: headerconsole, bycopy.} = object ConsoleFont* {.importc: "ConsoleFont", header: headerconsole, bycopy.} = object

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headercsrng = currentSourcePath().splitPath().head & "/nx/include/switch/services/csrng.h" const headercsrng = currentSourcePath().splitPath().head & "/nx/include/switch/services/csrng.h"
import libnx_wrapper/types import libnx/wrapper/types
proc csrngInitialize*(): Result {.cdecl, importc: "csrngInitialize", proc csrngInitialize*(): Result {.cdecl, importc: "csrngInitialize",
header: headercsrng.} header: headercsrng.}
proc csrngExit*() {.cdecl, importc: "csrngExit", header: headercsrng.} proc csrngExit*() {.cdecl, importc: "csrngExit", header: headercsrng.}

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headerdetect = currentSourcePath().splitPath().head & "/nx/include/switch/kernel/detect.h" const headerdetect = currentSourcePath().splitPath().head & "/nx/include/switch/kernel/detect.h"
import libnx_wrapper/types import libnx/wrapper/types
proc kernelAbove200*(): bool {.cdecl, importc: "kernelAbove200", proc kernelAbove200*(): bool {.cdecl, importc: "kernelAbove200",
header: headerdetect.} header: headerdetect.}
proc kernelAbove300*(): bool {.cdecl, importc: "kernelAbove300", proc kernelAbove300*(): bool {.cdecl, importc: "kernelAbove300",

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headerenv = currentSourcePath().splitPath().head & "/nx/include/switch/runtime/env.h" const headerenv = currentSourcePath().splitPath().head & "/nx/include/switch/runtime/env.h"
import libnx_wrapper/types import libnx/wrapper/types
type type
ConfigEntry* {.importc: "ConfigEntry", header: headerenv, bycopy.} = object ConfigEntry* {.importc: "ConfigEntry", header: headerenv, bycopy.} = object
Key* {.importc: "Key".}: uint32 Key* {.importc: "Key".}: uint32

View file

@ -1,5 +1,5 @@
import strutils import strutils
import ospaths import ospaths
const headerfatal = currentSourcePath().splitPath().head & "/nx/include/switch/services/fatal.h" const headerfatal = currentSourcePath().splitPath().head & "/nx/include/switch/services/fatal.h"
import libnx_wrapper/types import libnx/wrapper/types
proc fatalSimple*(err: Result) {.cdecl, importc: "fatalSimple", header: headerfatal.} proc fatalSimple*(err: Result) {.cdecl, importc: "fatalSimple", header: headerfatal.}

View file

@ -1,8 +1,8 @@
import strutils import strutils
import ospaths import ospaths
const headerfs = currentSourcePath().splitPath().head & "/nx/include/switch/services/fs.h" const headerfs = currentSourcePath().splitPath().head & "/nx/include/switch/services/fs.h"
import libnx_wrapper/types import libnx/wrapper/types
import libnx_wrapper/sm import libnx/wrapper/sm
const const
FS_MAX_PATH* = 0x00000301 FS_MAX_PATH* = 0x00000301
FS_SAVEDATA_CURRENT_TITLEID* = 0 FS_SAVEDATA_CURRENT_TITLEID* = 0

View file

@ -1,8 +1,8 @@
import strutils import strutils
import ospaths import ospaths
const headerfs_dev = currentSourcePath().splitPath().head & "/nx/include/switch/runtime/devices/fs_dev.h" const headerfs_dev = currentSourcePath().splitPath().head & "/nx/include/switch/runtime/devices/fs_dev.h"
import libnx_wrapper/types import libnx/wrapper/types
import libnx_wrapper/fs import libnx/wrapper/fs
const const
FSDEV_DIRITER_MAGIC* = 0x66736476 FSDEV_DIRITER_MAGIC* = 0x66736476

View file

@ -1,9 +1,9 @@
import strutils import strutils
import ospaths import ospaths
const headerfsldr = currentSourcePath().splitPath().head & "/nx/include/switch/services/fsldr.h" const headerfsldr = currentSourcePath().splitPath().head & "/nx/include/switch/services/fsldr.h"
import libnx_wrapper/types import libnx/wrapper/types
import libnx_wrapper/sm import libnx/wrapper/sm
import libnx_wrapper/fs import libnx/wrapper/fs
proc fsldrInitialize*(): Result {.cdecl, importc: "fsldrInitialize", proc fsldrInitialize*(): Result {.cdecl, importc: "fsldrInitialize",
header: headerfsldr.} header: headerfsldr.}
proc fsldrExit*() {.cdecl, importc: "fsldrExit", header: headerfsldr.} proc fsldrExit*() {.cdecl, importc: "fsldrExit", header: headerfsldr.}

View file

@ -1,9 +1,9 @@
import strutils import strutils
import ospaths import ospaths
const headerfspr = currentSourcePath().splitPath().head & "/nx/include/switch/services/fspr.h" const headerfspr = currentSourcePath().splitPath().head & "/nx/include/switch/services/fspr.h"
import libnx_wrapper/types import libnx/wrapper/types
import libnx_wrapper/sm import libnx/wrapper/sm
import libnx_wrapper/fs import libnx/wrapper/fs
proc fsprInitialize*(): Result {.cdecl, importc: "fsprInitialize", proc fsprInitialize*(): Result {.cdecl, importc: "fsprInitialize",
header: headerfspr.} header: headerfspr.}
proc fsprExit*() {.cdecl, importc: "fsprExit", header: headerfspr.} proc fsprExit*() {.cdecl, importc: "fsprExit", header: headerfspr.}

View file

@ -10,7 +10,7 @@ const headergfx = currentSourcePath().splitPath().head & "/nx/include/switch/gfx
## ##
import import
libnx_wrapper/types libnx/wrapper/types
## / Converts red, green, blue, and alpha components to packed RGBA8. ## / Converts red, green, blue, and alpha components to packed RGBA8.

View file

@ -10,7 +10,7 @@ const headerhid = currentSourcePath().splitPath().head & "/nx/include/switch/ser
## ##
import import
libnx_wrapper/types, libnx_wrapper/sm libnx/wrapper/types, libnx/wrapper/sm
## Begin enums and output structs ## Begin enums and output structs

View file

@ -9,8 +9,8 @@ const headeripc = currentSourcePath().splitPath().head & "/nx/include/switch/ker
## ##
import import
libnx_wrapper/types, libnx/wrapper/types,
libnx_wrapper/result, libnx_wrapper/tls, libnx_wrapper/svc libnx/wrapper/result, libnx/wrapper/tls, libnx/wrapper/svc
## / IPC input header magic ## / IPC input header magic

View file

@ -1,9 +1,9 @@
import strutils import strutils
import ospaths import ospaths
const headerirs = currentSourcePath().splitPath().head & "/nx/include/switch/services/irs.h" const headerirs = currentSourcePath().splitPath().head & "/nx/include/switch/services/irs.h"
import libnx_wrapper/types import libnx/wrapper/types
import libnx_wrapper/sm import libnx/wrapper/sm
import libnx_wrapper/hid import libnx/wrapper/hid
type type
IrsPackedMomentProcessorConfig* {.importc: "IrsPackedMomentProcessorConfig", IrsPackedMomentProcessorConfig* {.importc: "IrsPackedMomentProcessorConfig",
header: headerirs, bycopy.} = object header: headerirs, bycopy.} = object

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headerjit = currentSourcePath().splitPath().head & "/nx/include/switch/kernel/jit.h" const headerjit = currentSourcePath().splitPath().head & "/nx/include/switch/kernel/jit.h"
import libnx_wrapper/types import libnx/wrapper/types
type type
JitType* {.size: sizeof(cint).} = enum JitType* {.size: sizeof(cint).} = enum
JitType_CodeMemory, JitType_JitMemory JitType_CodeMemory, JitType_JitMemory

View file

@ -1,9 +1,9 @@
import strutils import strutils
import ospaths import ospaths
const headerldr = currentSourcePath().splitPath().head & "/nx/include/switch/services/ldr.h" const headerldr = currentSourcePath().splitPath().head & "/nx/include/switch/services/ldr.h"
import libnx_wrapper/types import libnx/wrapper/types
import libnx_wrapper/sm import libnx/wrapper/sm
import libnx_wrapper/fs import libnx/wrapper/fs
type type
LoaderProgramInfo* {.importc: "LoaderProgramInfo", header: headerldr, bycopy.} = object LoaderProgramInfo* {.importc: "LoaderProgramInfo", header: headerldr, bycopy.} = object
main_thread_priority* {.importc: "main_thread_priority".}: uint8 main_thread_priority* {.importc: "main_thread_priority".}: uint8

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headerlock = "/opt/devkitpro/devkitA64/aarch64-none-elf/include/sys/lock.h" const headerlock = "/opt/devkitpro/devkitA64/aarch64-none-elf/include/sys/lock.h"
import libnx_wrapper/types import libnx/wrapper/types
type type
LOCK_T* = int32_t LOCK_T* = int32_t
DUlock_t* {.importc: "__lock_t", header: headerlock, bycopy.} = object DUlock_t* {.importc: "__lock_t", header: headerlock, bycopy.} = object

View file

@ -1,9 +1,9 @@
import strutils import strutils
import ospaths import ospaths
const headerlr = currentSourcePath().splitPath().head & "/nx/include/switch/services/lr.h" const headerlr = currentSourcePath().splitPath().head & "/nx/include/switch/services/lr.h"
import libnx_wrapper/types import libnx/wrapper/types
import libnx_wrapper/sm import libnx/wrapper/sm
import libnx_wrapper/fs import libnx/wrapper/fs
type type
LrLocationResolver* {.importc: "LrLocationResolver", header: headerlr, bycopy.} = object LrLocationResolver* {.importc: "LrLocationResolver", header: headerlr, bycopy.} = object
s* {.importc: "s".}: Service s* {.importc: "s".}: Service

View file

@ -1,8 +1,8 @@
import strutils import strutils
import ospaths import ospaths
const headermutex = currentSourcePath().splitPath().head & "/nx/include/switch/kernel/mutex.h" const headermutex = currentSourcePath().splitPath().head & "/nx/include/switch/kernel/mutex.h"
import libnx_wrapper/lock import libnx/wrapper/lock
import libnx_wrapper/types import libnx/wrapper/types
type type
Mutex* = LOCK_T Mutex* = LOCK_T
RMutex* = LOCK_RECURSIVE_T RMutex* = LOCK_RECURSIVE_T

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headernacp = currentSourcePath().splitPath().head & "/nx/include/switch/nacp.h" const headernacp = currentSourcePath().splitPath().head & "/nx/include/switch/nacp.h"
import libnx_wrapper/types import libnx/wrapper/types
type type
NacpLanguageEntry* {.importc: "NacpLanguageEntry", header: headernacp, bycopy.} = object NacpLanguageEntry* {.importc: "NacpLanguageEntry", header: headernacp, bycopy.} = object
name* {.importc: "name".}: array[0x00000200, char] name* {.importc: "name".}: array[0x00000200, char]

View file

@ -1,10 +1,10 @@
import strutils import strutils
import ospaths import ospaths
const headernifm = currentSourcePath().splitPath().head & "/nx/include/switch/services/nifm.h" const headernifm = currentSourcePath().splitPath().head & "/nx/include/switch/services/nifm.h"
import libnx_wrapper/types import libnx/wrapper/types
import libnx_wrapper/ipc import libnx/wrapper/ipc
import libnx_wrapper/detect import libnx/wrapper/detect
import libnx_wrapper/sm import libnx/wrapper/sm
proc nifmInitialize*(): Result {.cdecl, importc: "nifmInitialize", proc nifmInitialize*(): Result {.cdecl, importc: "nifmInitialize",
header: headernifm.} header: headernifm.}
proc nifmExit*() {.cdecl, importc: "nifmExit", header: headernifm.} proc nifmExit*() {.cdecl, importc: "nifmExit", header: headernifm.}

View file

@ -0,0 +1,2 @@
--path:"../"
--path:"../../"

View file

@ -1,9 +1,9 @@
import strutils import strutils
import ospaths import ospaths
const headerns = currentSourcePath().splitPath().head & "/nx/include/switch/services/ns.h" const headerns = currentSourcePath().splitPath().head & "/nx/include/switch/services/ns.h"
import libnx_wrapper/types import libnx/wrapper/types
import libnx_wrapper/nacp import libnx/wrapper/nacp
import libnx_wrapper/fs import libnx/wrapper/fs
type type
NsApplicationControlData* {.importc: "NsApplicationControlData", NsApplicationControlData* {.importc: "NsApplicationControlData",
header: headerns, bycopy.} = object header: headerns, bycopy.} = object

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headernv = currentSourcePath().splitPath().head & "/nx/include/switch/services/nv.h" const headernv = currentSourcePath().splitPath().head & "/nx/include/switch/services/nv.h"
import libnx_wrapper/types import libnx/wrapper/types
type type
nvServiceType* {.size: sizeof(cint).} = enum nvServiceType* {.size: sizeof(cint).} = enum
NVSERVTYPE_Default = -1, NVSERVTYPE_Application = 0, NVSERVTYPE_Applet = 1, NVSERVTYPE_Default = -1, NVSERVTYPE_Application = 0, NVSERVTYPE_Applet = 1,

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headernvgfx = currentSourcePath().splitPath().head & "/nx/include/switch/gfx/nvgfx.h" const headernvgfx = currentSourcePath().splitPath().head & "/nx/include/switch/gfx/nvgfx.h"
import libnx_wrapper/types import libnx/wrapper/types
proc nvgfxInitialize*(): Result {.cdecl, importc: "nvgfxInitialize", proc nvgfxInitialize*(): Result {.cdecl, importc: "nvgfxInitialize",
header: headernvgfx.} header: headernvgfx.}
proc nvgfxExit*() {.cdecl, importc: "nvgfxExit", header: headernvgfx.} proc nvgfxExit*() {.cdecl, importc: "nvgfxExit", header: headernvgfx.}

View file

@ -1,7 +1,7 @@
import strutils import strutils
import ospaths import ospaths
const headernvioctl = currentSourcePath().splitPath().head & "/nx/include/switch/gfx/nvioctl.h" const headernvioctl = currentSourcePath().splitPath().head & "/nx/include/switch/gfx/nvioctl.h"
import libnx_wrapper/types import libnx/wrapper/types
type type
gpu_characteristics* {.importc: "gpu_characteristics", header: headernvioctl, gpu_characteristics* {.importc: "gpu_characteristics", header: headernvioctl,
bycopy.} = object bycopy.} = object

Some files were not shown because too many files have changed in this diff Show more