VLC  4.0.0-dev
Macros | Functions | Variables
specific.c File Reference
Include dependency graph for specific.c:

Macros

#define GENERIC_DIR_COUNT   (VLC_VIDEOS_DIR - VLC_DESKTOP_DIR + 1)
 

Functions

static char * get_java_string (JNIEnv *env, jclass clazz, const char *psz_name)
 
void JNI_OnUnload (JavaVM *vm, void *reserved)
 
jint JNI_OnLoad (JavaVM *vm, void *reserved)
 
void system_Init (void)
 
void system_Configure (libvlc_int_t *p_libvlc, int i_argc, const char *const pp_argv[])
 
static char * config_GetHomeDir (const char *psz_dir, const char *psz_default_dir)
 
static JNIEnv * get_env (bool *p_detach)
 
static void release_env (bool b_detach)
 
static char * config_GetGenericDir (const char *psz_name)
 
char * config_GetUserDir (vlc_userdir_t type)
 
char * config_GetSysPath (vlc_sysdir_t type, const char *filename)
 Gets an installation directory. More...
 
char * vlc_getProxyUrl (const char *url)
 Determines the network proxy server to use (if any). More...
 

Variables

static JavaVM * s_jvm = NULL
 
static char * ppsz_generic_names [(VLC_VIDEOS_DIR - VLC_DESKTOP_DIR+1)] = {}
 
struct {
   struct {
      jclass   clazz
 
      jmethodID   getExternalStoragePublicDirectory
 
   }   Environment
 
   struct {
      jmethodID   getAbsolutePath
 
   }   File
 
   struct {
      jclass   clazz
 
      jmethodID   getProperty
 
   }   System
 
fields = { .Environment.clazz = NULL }
 

Macro Definition Documentation

◆ GENERIC_DIR_COUNT

#define GENERIC_DIR_COUNT   (VLC_VIDEOS_DIR - VLC_DESKTOP_DIR + 1)

Function Documentation

◆ config_GetGenericDir()

static char* config_GetGenericDir ( const char *  psz_name)
static

References fields, get_env(), psz_name, release_env(), and strdup().

Referenced by config_GetUserDir().

◆ config_GetHomeDir()

static char* config_GetHomeDir ( const char *  psz_dir,
const char *  psz_default_dir 
)
static

References asprintf(), getenv(), strdup(), and vlc_mkdir().

Referenced by config_GetUserDir().

◆ get_env()

static JNIEnv* get_env ( bool *  p_detach)
static

References s_jvm.

Referenced by config_GetGenericDir(), and vlc_getProxyUrl().

◆ get_java_string()

static char* get_java_string ( JNIEnv *  env,
jclass  clazz,
const char *  psz_name 
)
static

References clazz, psz_name, and strdup().

Referenced by JNI_OnLoad().

◆ JNI_OnLoad()

jint JNI_OnLoad ( JavaVM *  vm,
void *  reserved 
)

◆ JNI_OnUnload()

void JNI_OnUnload ( JavaVM *  vm,
void *  reserved 
)

References fields, GENERIC_DIR_COUNT, and ppsz_generic_names.

Referenced by JNI_OnLoad().

◆ release_env()

static void release_env ( bool  b_detach)
static

References s_jvm.

Referenced by config_GetGenericDir(), and vlc_getProxyUrl().

◆ system_Configure()

void system_Configure ( libvlc_int_t p_libvlc,
int  i_argc,
const char *const  pp_argv[] 
)

◆ system_Init()

void system_Init ( void  )

Variable Documentation

◆ clazz

jclass clazz

Referenced by get_java_string(), and JNI_OnLoad().

◆ 

struct { ... } Environment

◆ 

struct { ... } fields

◆ 

struct { ... } File

◆ getAbsolutePath

jmethodID getAbsolutePath

◆ getExternalStoragePublicDirectory

jmethodID getExternalStoragePublicDirectory

◆ getProperty

jmethodID getProperty

◆ ppsz_generic_names

char* ppsz_generic_names[(VLC_VIDEOS_DIR - VLC_DESKTOP_DIR+1)] = {}
static

◆ s_jvm

JavaVM* s_jvm = NULL
static

◆ 

struct { ... } System