SDL  2.0
SDL_sysurl.c File Reference
#include "../SDL_sysurl.h"
#include <kernel.h>
#include <swis.h>
+ Include dependency graph for SDL_sysurl.c:

Go to the source code of this file.

Macros

#define URI_Dispatch   0x4e381
 

Functions

int SDL_SYS_OpenURL (const char *url)
 

Macro Definition Documentation

◆ URI_Dispatch

#define URI_Dispatch   0x4e381

Definition at line 28 of file SDL_sysurl.c.

Function Documentation

◆ SDL_SYS_OpenURL()

int SDL_SYS_OpenURL ( const char *  url)

Definition at line 32 of file SDL_sysurl.c.

33 {
34  _kernel_swi_regs regs;
35  _kernel_oserror *error;
36 
37  regs.r[0] = 0;
38  regs.r[1] = (int)url;
39  regs.r[2] = 0;
40  error = _kernel_swi(URI_Dispatch, &regs, &regs);
41  if (error) {
42  return SDL_SetError("Couldn't open given URL: %s", error->errmess);
43  }
44 
45  return (regs.r[0] & 1) ? SDL_SetError("Couldn't open given URL.") : 0;
46 }
#define SDL_SetError
#define URI_Dispatch
Definition: SDL_sysurl.c:28
typedef int(__stdcall *FARPROC)()

References int(), SDL_SetError, and URI_Dispatch.