Commit c954cebd authored by François Grisez's avatar François Grisez

Fixes prefix of bellesip's wake_lock functions

parent be0c7a8b
......@@ -12,14 +12,14 @@ BELLE_SIP_BEGIN_DECLS
* @param env A JNI environment
* @parma pm An android.os.PowerManager java object.
*/
BELLESIP_EXPORT void bellesip_wake_lock_init(JNIEnv *env, jobject pm);
BELLESIP_EXPORT void belle_sip_wake_lock_init(JNIEnv *env, jobject pm);
/**
* Uninit the the Android wake lock system. This function may be called
* while the program stopping.
* @param env A JNI environment.
*/
BELLESIP_EXPORT void bellesip_wake_lock_uninit(JNIEnv *env);
BELLESIP_EXPORT void belle_sip_wake_lock_uninit(JNIEnv *env);
BELLE_SIP_END_DECLS
......
......@@ -22,7 +22,7 @@ static WakeLock ctx = {
static JNIEnv *get_jni_env(void);
static void jni_key_cleanup(void *data);
void bellesip_wake_lock_init(JNIEnv *env, jobject pm) {
void belle_sip_wake_lock_init(JNIEnv *env, jobject pm) {
if(ctx.jvm == NULL) {
(*env)->GetJavaVM(env, &ctx.jvm);
ctx.powerManager = (*env)->NewGlobalRef(env, pm);
......@@ -43,7 +43,7 @@ void bellesip_wake_lock_init(JNIEnv *env, jobject pm) {
}
}
void bellesip_wake_lock_uninit(JNIEnv *env) {
void belle_sip_wake_lock_uninit(JNIEnv *env) {
ctx.jvm = NULL;
if(ctx.powerManager != NULL) {
(*env)->DeleteGlobalRef(env, ctx.powerManager);
......
......@@ -8,7 +8,7 @@
* @param tag
* @return An ID that anthentificates the taken wake lock.
*/
extern unsigned long wake_lock_acquire(const char *tag);
unsigned long wake_lock_acquire(const char *tag);
/**
* @brief Release a wake lock.
......@@ -17,4 +17,4 @@ extern unsigned long wake_lock_acquire(const char *tag);
* can sleep again.
* @param id ID of the wake lock to release.
*/
extern void wake_lock_release(unsigned long id);
void wake_lock_release(unsigned long id);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment