libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Enumerations | Variables
runtime_config.h File Reference

Runtime configuration. More...

#include <libtransistor/types.h>
Include dependency graph for runtime_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  runconf_stdio_override_t { _TRN_RUNCONF_STDIO_OVERRIDE_NONE, _TRN_RUNCONF_STDIO_OVERRIDE_USB_SERIAL, _TRN_RUNCONF_STDIO_OVERRIDE_SOCKETS, _TRN_RUNCONF_STDIO_OVERRIDE_TWILI }
 
enum  runconf_heap_mode_t { _TRN_RUNCONF_HEAP_MODE_DEFAULT, _TRN_RUNCONF_HEAP_MODE_NORMAL, _TRN_RUNCONF_HEAP_MODE_OVERRIDE }
 

Variables

runconf_stdio_override_t _trn_runconf_stdio_override
 
const char * _trn_runconf_stdio_override_sockets_host
 
const char * _trn_runconf_stdio_override_sockets_port
 
runconf_heap_mode_t _trn_runconf_heap_mode
 
void * _trn_runconf_heap_base
 
size_t _trn_runconf_heap_size
 

Detailed Description

Runtime configuration.

Any global variables here are defined as weak in libtransistor and can be overridden by an application.

Enumeration Type Documentation

Enumerator
_TRN_RUNCONF_HEAP_MODE_DEFAULT 

Use heap from HBABI, or default to HEAP_MODE_NORMAL.

_TRN_RUNCONF_HEAP_MODE_NORMAL 

Force using svcSetHeapSize, even if HBABI specifies otherwise.

_TRN_RUNCONF_HEAP_MODE_OVERRIDE 

Force heap extents, even if HBABI specifies otherwise.

Enumerator
_TRN_RUNCONF_STDIO_OVERRIDE_NONE 

Determine stdout via HBABI.

_TRN_RUNCONF_STDIO_OVERRIDE_USB_SERIAL 

Force stdout over usb_serial.

_TRN_RUNCONF_STDIO_OVERRIDE_SOCKETS 

Force stdout over sockets.

_TRN_RUNCONF_STDIO_OVERRIDE_TWILI 

Force stdout over twili.