wakelock_internal.h 632 Bytes
Newer Older
1 2
#include "belle-sip/wakelock.h"

François Grisez's avatar
François Grisez committed
3 4 5 6 7 8 9 10
/**
 * @brief Acquire a wake lock.
 * Ask to Android to prevent the system sleeping. That function
 * do nothing if the wake lock system has not been initialized
 * by the function bellesip_wake_lock_init().
 * @param tag
 * @return An ID that anthentificates the taken wake lock.
 */
11
extern unsigned long wake_lock_acquire(const char *tag);
François Grisez's avatar
François Grisez committed
12 13 14 15 16 17 18 19

/**
 * @brief Release a wake lock.
 * Ask to Android to release a prevously aquired
 * wake lock. After calling this function, the system
 * can sleep again.
 * @param id ID of the wake lock to release.
 */
20
extern void wake_lock_release(unsigned long id);