dvm: Add new function to check if we started a VM or only used an existing one

This commit is contained in:
Sebastian Dröge 2012-12-13 17:40:22 +00:00 committed by Nicolas Dufresne
parent e3801c041f
commit 7da19b9bda
2 changed files with 7 additions and 0 deletions

View file

@ -157,3 +157,9 @@ create_failed:
return FALSE;
}
}
gboolean
gst_dvm_is_own_vm (void)
{
return started_java_vm;
}

View file

@ -142,5 +142,6 @@
JNIEnv *gst_dvm_get_env (void);
gboolean gst_dvm_init (void);
gboolean gst_dvm_is_own_vm (void);
#endif /* __GST_DVM_H__ */