SDL  2.0
SDL_sysurl.cc File Reference
#include "../SDL_sysurl.h"
#include <Url.h>
+ Include dependency graph for SDL_sysurl.cc:

Go to the source code of this file.

Functions

int SDL_SYS_OpenURL (const char *url)
 

Function Documentation

◆ SDL_SYS_OpenURL()

int SDL_SYS_OpenURL ( const char *  url)

Definition at line 26 of file SDL_sysurl.cc.

27 {
28  BUrl burl(url);
29  const status_t rc = burl.OpenWithPreferredApplication(false);
30  return (rc == B_NO_ERROR) ? 0 : SDL_SetError("URL open failed (err=%d)", (int) rc);
31 }
#define SDL_SetError

References SDL_SetError.