Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

alarm_client.c File Reference


Detailed Description

Alarm Manager client API implementation.

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <hiker/alarmmgr.h>
#include <hiker/prv/alarmmgr_prv.h>

Functions

alp_status_t alp_alm_client_send_receive (void *buf, int length, void *reply_buf, size_t reply_buf_len)
alp_status_t alp_alm_set_alarm (const gchar *appID, guint32 ref, guint32 alarmSeconds)
 Set or cancel an alarm for the given application.
alp_status_t alp_alm_get_alarm (const gchar *appID, guint32 ref, guint32 *alarmSeconds)
 Return the current setting for an alarm.


Function Documentation

alp_status_t alp_alm_client_send_receive void *  buf,
int  length,
void *  reply_buf,
size_t  reply_buf_len
 

alp_status_t alp_alm_get_alarm const gchar *  appID,
guint32  ref,
guint32 *  alarmSeconds
 

Return the current setting for an alarm.

Returns the date and time in seconds since 01/01/1970 UTC for the given application ID and alarm reference number.

Parameters:
[in] appID Package name of the calling application.
[in] ref Caller-defined value.
[out] alarmSeconds The date and time the alarm will trigger, given in seconds since 01/01/1970 UTC; if no alarm is active for the application, 0 is returned for the alarm seconds.
Returns:
error code

alp_status_t alp_alm_set_alarm const gchar *  appID,
guint32  ref,
guint32  alarmSeconds
 

Set or cancel an alarm for the given application.

Parameters:
[in] appID Package name of the calling application.
[in] ref Caller-defined value.
[in] alarmSeconds Specifies the date/time in seconds since 01/01/1970 UTC at which the alarm will be triggered, or 0 to cancel the alarm specified by ref if any
Returns:
error code


Generated on Sat Dec 16 20:29:48 2006 for hiker-0.9 by  doxygen 1.4.4