|
Xemu [doxygen]
hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
|
Go to the documentation of this file.
22 #ifndef XEMU_COMMON_EMUTOOLS_FILES_H_INCLUDED
23 #define XEMU_COMMON_EMUTOOLS_FILES_H_INCLUDED
25 #include <sys/types.h>
31 # define FILE_BROWSER "explorer"
35 #elif defined(XEMU_ARCH_MAC)
36 # define FILE_BROWSER "open"
37 # define WEB_BROWSER "open"
39 # define FILE_BROWSER "xdg-open"
40 # define WEB_BROWSER "xdg-open"
43 #define OFF_T_ERROR ((off_t)-1)
45 #define XEMU_OPEN_FILE_FIRST_MODE_USED -1
50 extern int xemu_load_file (
const char *filename,
void *store_to,
int min_size,
int max_size,
const char *cry );
52 extern int xemu_open_file (
const char *filename,
int mode,
int *mode2,
char *filepath_back );
53 extern ssize_t
xemu_safe_read (
int fd,
void *buffer,
size_t length );
54 extern ssize_t
xemu_safe_write (
int fd,
const void *buffer,
size_t length );
60 #if defined(HAVE_XEMU_INSTALLER) && !defined(HAVE_XEMU_EXEC_API)
61 #define HAVE_XEMU_EXEC_API
64 #ifdef HAVE_XEMU_EXEC_API
65 #define XEMUEXEC_STILL_RUNNING 259
67 typedef void* xemuexec_process_t;
68 #define XEMUEXEC_NULL_PROCESS_ID NULL
70 typedef int xemuexec_process_t;
71 #define XEMUEXEC_NULL_PROCESS_ID 0
73 extern xemuexec_process_t xemuexec_run (
char *
const args[] );
74 extern int xemuexec_check_status ( xemuexec_process_t pid,
int wait );
79 #ifdef HAVE_XEMU_INSTALLER
80 extern void xemu_set_installer (
const char *filename );
83 #if defined(XEMU_USE_LODEPNG) && defined(XEMU_FILES_SCREENSHOT_SUPPORT)
85 extern int xemu_screenshot_png (
const char *path,
const char *
fn,
unsigned int zoom_width,
unsigned int zoom_height,
Uint32 *source_pixels,
unsigned int source_width,
unsigned int source_height,
unsigned int source_texture_width );
86 extern char xemu_screenshot_full_path[];
90 # define UNIX_DATADIR_0 "/usr/local/share/xemu"
91 # define UNIX_DATADIR_1 "/usr/local/lib/xemu"
92 # define UNIX_DATADIR_2 "/usr/share/xemu"
93 # define UNIX_DATADIR_3 "/usr/lib/xemu"