MeshLib C Docs
Loading...
Searching...
No Matches
MRSystem.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7#include <stddef.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_std_filesystem_path MR_std_filesystem_path; // Defined in `#include <MRCMisc/std_filesystem_path.h>`.
14typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
15
16
19
20// sets debug name for the current thread
23
24// return path to the folder with user config file(s)
28
29// returns path of config file in APPDATA
33
34// returns temp directory
38
39// returns home directory
43
44// returns version of MR
47
48// Opens given link in default browser
52
53// Opens given file (or directory) in associated application
56MRC_API bool MR_OpenDocument(const char *path, const char *path_end);
57
58// returns string identification of the CPU
62
63// returns string with OS name with details
67
68// returns string identification of the OS
72
73// sets new handler for operator new if needed for some platforms
76
81
87
92
98
104
109
115
119
124
128
131
134
139
142
145
151
156
165
166#ifdef __cplusplus
167} // extern "C"
168#endif
struct MR_std_string MR_std_string
Definition MRE57.h:22
struct MR_std_filesystem_path MR_std_filesystem_path
Definition MRSceneRoot.h:15
struct MR_SystemMemory MR_SystemMemory
Generated from class MR::SystemMemory.
Definition MRSystem.h:18
MRC_API MR_std_filesystem_path * MR_GetTempDirectory(void)
MRC_API MR_std_string * MR_GetCpuId(void)
MRC_API void MR_SystemMemory_DestroyArray(const MR_SystemMemory *_this)
Destroys a heap-allocated array of MR_SystemMemory. Does nothing if the pointer is null.
MRC_API void MR_SetCurrentThreadName(const char *name)
Generated from function MR::SetCurrentThreadName.
MRC_API void MR_SystemMemory_Set_physicalTotal(MR_SystemMemory *_this, MR_uint64_t value)
MRC_API MR_std_filesystem_path * MR_getUserConfigDir(void)
MRC_API MR_SystemMemory * MR_SystemMemory_ConstructFromAnother(const MR_SystemMemory *_other)
MRC_API MR_SystemMemory * MR_SystemMemory_ConstructFrom(MR_uint64_t physicalTotal, MR_uint64_t physicalAvailable)
MRC_API MR_std_filesystem_path * MR_getUserConfigFilePath(void)
MRC_API void MR_setNewHandlerIfNeeded(void)
Generated from function MR::setNewHandlerIfNeeded.
MRC_API void MR_SystemMemory_Set_physicalAvailable(MR_SystemMemory *_this, MR_uint64_t value)
MRC_API MR_uint64_t * MR_SystemMemory_GetMutable_physicalTotal(MR_SystemMemory *_this)
MRC_API MR_SystemMemory * MR_SystemMemory_DefaultConstructArray(size_t num_elems)
MRC_API void MR_SystemMemory_Destroy(const MR_SystemMemory *_this)
Destroys a heap-allocated instance of MR_SystemMemory. Does nothing if the pointer is null.
MRC_API const MR_uint64_t * MR_SystemMemory_Get_physicalAvailable(const MR_SystemMemory *_this)
MRC_API MR_std_string * MR_GetDetailedOSName(void)
MRC_API MR_uint64_t * MR_SystemMemory_GetMutable_physicalAvailable(MR_SystemMemory *_this)
MRC_API const char * MR_GetMRVersionString(void)
Generated from function MR::GetMRVersionString.
MRC_API MR_SystemMemory * MR_SystemMemory_DefaultConstruct(void)
MRC_API void MR_setupLoggerByDefault(void)
MRC_API const MR_uint64_t * MR_SystemMemory_Get_physicalTotal(const MR_SystemMemory *_this)
MRC_API void MR_OpenLink(const MR_std_string *url)
MRC_API MR_SystemMemory * MR_SystemMemory_AssignFromAnother(MR_SystemMemory *_this, const MR_SystemMemory *_other)
MRC_API const MR_SystemMemory * MR_SystemMemory_OffsetPtr(const MR_SystemMemory *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_SystemMemory * MR_SystemMemory_OffsetMutablePtr(MR_SystemMemory *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_std_filesystem_path * MR_GetHomeDirectory(void)
MRC_API MR_SystemMemory * MR_getSystemMemory(void)
MRC_API MR_std_string * MR_getCurrentStacktrace(void)
MRC_API bool MR_OpenDocument(const char *path, const char *path_end)
MRC_API MR_std_string * MR_getOSNoSpaces(void)
uint64_t MR_uint64_t
Definition common.h:14
#define MRC_API
Definition exports.h:11
virtual std::string name() const override