RetroArch
Macros | Enumerations | Functions | Variables
platform_darwin.m File Reference
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>
#include <sys/utsname.h>
#include <mach/mach_host.h>
#include <CoreFoundation/CoreFoundation.h>
#include <CoreFoundation/CFArray.h>
#include <boolean.h>
#include <compat/apple_compat.h>
#include <retro_assert.h>
#include <retro_miscellaneous.h>
#include <file/file_path.h>
#include <streams/file_stream.h>
#include <rhash.h>
#include "../frontend_driver.h"
#include "../../file_path_special.h"
#include "../../configuration.h"
#include "../../defaults.h"
#include "../../retroarch.h"
#include "../../verbosity.h"
#include "../../ui/ui_companion_driver.h"
Include dependency graph for platform_darwin.m:

Macros

#define RELEASE_BUILD
 
#define DARWIN_ARCH_X86_64   0x23dea434U
 
#define DARWIN_ARCH_X86   0x0b88b8cbU
 
#define DARWIN_ARCH_POWER_MAC   0xba3772d8U
 

Enumerations

enum  CFSearchPathDirectory {
  CFApplicationDirectory = 1, CFDemoApplicationDirectory = 2, CFDeveloperApplicationDirectory = 3, CFAdminApplicationDirectory = 4,
  CFLibraryDirectory = 5, CFDeveloperDirectory = 6, CFUserDirectory = 7, CFDocumentationDirectory = 8,
  CFDocumentDirectory = 9, CFCoreServiceDirectory = 10, CFAutosavedInformationDirectory = 11, CFDesktopDirectory = 12,
  CFCachesDirectory = 13, CFApplicationSupportDirectory = 14, CFDownloadsDirectory = 15, CFInputMethodsDirectory = 16,
  CFMoviesDirectory = 17, CFMusicDirectory = 18, CFPicturesDirectory = 19, CFPrinterDescriptionDirectory = 20,
  CFSharedPublicDirectory = 21, CFPreferencePanesDirectory = 22, CFApplicationScriptsDirectory = 23, CFItemReplacementDirectory = 99,
  CFAllApplicationsDirectory = 100, CFAllLibrariesDirectory = 101, CFTrashDirectory = 102
}
 
enum  CFDomainMask {
  CFUserDomainMask = 1, CFLocalDomainMask = 2, CFNetworkDomainMask = 4, CFSystemDomainMask = 8,
  CFAllDomainsMask = 0x0ffff
}
 

Functions

static NSSearchPathDirectory NSConvertFlagsCF (unsigned flags)
 
static NSSearchPathDomainMask NSConvertDomainFlagsCF (unsigned flags)
 
static void CFSearchPathForDirectoriesInDomains (unsigned flags, unsigned domain_mask, unsigned expand_tilde, char *s, size_t len)
 
static void CFTemporaryDirectory (char *s, size_t len)
 
static void frontend_darwin_get_name (char *s, size_t len)
 
static void frontend_darwin_get_os (char *s, size_t len, int *major, int *minor)
 
static void frontend_darwin_get_environment_settings (int *argc, char *argv[], void *args, void *params_data)
 
static void frontend_darwin_load_content (void)
 
static int frontend_darwin_get_rating (void)
 
static enum frontend_powerstate frontend_darwin_get_powerstate (int *seconds, int *percent)
 
static enum frontend_architecture frontend_darwin_get_architecture (void)
 
static int frontend_darwin_parse_drive_list (void *data, bool load_content)
 
static uint64_t frontend_darwin_get_mem_total (void)
 
static uint64_t frontend_darwin_get_mem_used (void)
 

Variables

frontend_ctx_driver_t frontend_ctx_darwin
 

Macro Definition Documentation

◆ DARWIN_ARCH_POWER_MAC

#define DARWIN_ARCH_POWER_MAC   0xba3772d8U

◆ DARWIN_ARCH_X86

#define DARWIN_ARCH_X86   0x0b88b8cbU

◆ DARWIN_ARCH_X86_64

#define DARWIN_ARCH_X86_64   0x23dea434U

◆ RELEASE_BUILD

#define RELEASE_BUILD

Enumeration Type Documentation

◆ CFDomainMask

Enumerator
CFUserDomainMask 
CFLocalDomainMask 
CFNetworkDomainMask 
CFSystemDomainMask 
CFAllDomainsMask 

◆ CFSearchPathDirectory

Enumerator
CFApplicationDirectory 
CFDemoApplicationDirectory 
CFDeveloperApplicationDirectory 
CFAdminApplicationDirectory 
CFLibraryDirectory 
CFDeveloperDirectory 
CFUserDirectory 
CFDocumentationDirectory 
CFDocumentDirectory 
CFCoreServiceDirectory 
CFAutosavedInformationDirectory 
CFDesktopDirectory 
CFCachesDirectory 
CFApplicationSupportDirectory 
CFDownloadsDirectory 
CFInputMethodsDirectory 
CFMoviesDirectory 
CFMusicDirectory 
CFPicturesDirectory 
CFPrinterDescriptionDirectory 
CFSharedPublicDirectory 
CFPreferencePanesDirectory 
CFApplicationScriptsDirectory 
CFItemReplacementDirectory 
CFAllApplicationsDirectory 
CFAllLibrariesDirectory 
CFTrashDirectory 

Function Documentation

◆ CFSearchPathForDirectoriesInDomains()

static void CFSearchPathForDirectoriesInDomains ( unsigned  flags,
unsigned  domain_mask,
unsigned  expand_tilde,
char *  s,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CFTemporaryDirectory()

static void CFTemporaryDirectory ( char *  s,
size_t  len 
)
static
Here is the caller graph for this function:

◆ frontend_darwin_get_architecture()

static enum frontend_architecture frontend_darwin_get_architecture ( void  )
static
Here is the call graph for this function:

◆ frontend_darwin_get_environment_settings()

static void frontend_darwin_get_environment_settings ( int *  argc,
char *  argv[],
void args,
void params_data 
)
static
Here is the call graph for this function:

◆ frontend_darwin_get_mem_total()

static uint64_t frontend_darwin_get_mem_total ( void  )
static

◆ frontend_darwin_get_mem_used()

static uint64_t frontend_darwin_get_mem_used ( void  )
static

◆ frontend_darwin_get_name()

static void frontend_darwin_get_name ( char *  s,
size_t  len 
)
static
Here is the caller graph for this function:

◆ frontend_darwin_get_os()

static void frontend_darwin_get_os ( char *  s,
size_t  len,
int *  major,
int *  minor 
)
static
Here is the call graph for this function:

◆ frontend_darwin_get_powerstate()

static enum frontend_powerstate frontend_darwin_get_powerstate ( int *  seconds,
int *  percent 
)
static

◆ frontend_darwin_get_rating()

static int frontend_darwin_get_rating ( void  )
static
Here is the call graph for this function:

◆ frontend_darwin_load_content()

static void frontend_darwin_load_content ( void  )
static
Here is the call graph for this function:

◆ frontend_darwin_parse_drive_list()

static int frontend_darwin_parse_drive_list ( void data,
bool  load_content 
)
static
Here is the call graph for this function:

◆ NSConvertDomainFlagsCF()

static NSSearchPathDomainMask NSConvertDomainFlagsCF ( unsigned  flags)
static
Here is the caller graph for this function:

◆ NSConvertFlagsCF()

static NSSearchPathDirectory NSConvertFlagsCF ( unsigned  flags)
static
Here is the caller graph for this function:

Variable Documentation

◆ frontend_ctx_darwin

frontend_ctx_driver_t frontend_ctx_darwin
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
"darwin",
}
static int frontend_darwin_parse_drive_list(void *data, bool load_content)
Definition: platform_darwin.m:652
static void frontend_darwin_load_content(void)
Definition: platform_darwin.m:467
static void frontend_darwin_get_environment_settings(int *argc, char *argv[], void *args, void *params_data)
Definition: platform_darwin.m:323
static enum frontend_powerstate frontend_darwin_get_powerstate(int *seconds, int *percent)
Definition: platform_darwin.m:537
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static uint64_t frontend_darwin_get_mem_used(void)
Definition: platform_darwin.m:711
static enum frontend_architecture frontend_darwin_get_architecture(void)
Definition: platform_darwin.m:622
static void frontend_darwin_get_os(char *s, size_t len, int *major, int *minor)
Definition: platform_darwin.m:289
static uint64_t frontend_darwin_get_mem_total(void)
Definition: platform_darwin.m:695
static void frontend_darwin_get_name(char *s, size_t len)
Definition: platform_darwin.m:272
static int frontend_darwin_get_rating(void)
Definition: platform_darwin.m:472