Main Page | Data Structures | File List | Data Fields | Globals

rpc-osso.c File Reference

#include <dbus/dbus.h>
#include <libosso.h>
#include <osso-log.h>
#include "include/alarm_dbus.h"
#include "dbusobjectfactory.h"
#include "rpc-osso.h"
#include "rpc-systemui.h"
#include "queue.h"
#include "event.h"
#include "debug.h"

Include dependency graph for rpc-osso.c:

Go to the source code of this file.

Functions

static gint _bogus_rpc_f (const gchar *interface, const gchar *method, GArray *arguments, gpointer data, osso_rpc_t *retval)
 This file is part of alarmd.
static void _osso_time_changed (gpointer data)
static DBusHandlerResult _dbus_message_in (DBusConnection *connection, DBusMessage *message, void *user_data)
static void _osso_hw_cb (osso_hw_state_t *state, gpointer data)
osso_context_t * init_osso ()
 init_osso: : A AlarmdQueue that will be notified on time changes, and where new events should be added to.
void set_osso_callbacks (osso_context_t *osso, AlarmdQueue *queue)
 set_osso_callbacks: : A pointer to the osso_context_t struct, as returned by init_osso.
void deinit_osso (osso_context_t *osso, AlarmdQueue *queue)
 deinit_osso: : The osso_context_t structure as returned by init_osso.


Function Documentation

static gint _bogus_rpc_f const gchar *  interface,
const gchar *  method,
GArray *  arguments,
gpointer  data,
osso_rpc_t *  retval
[static]
 

This file is part of alarmd.

Contact Person: David Weinehall <david.weinehall@nokia.com>

Copyright (C) 2006 Nokia Corporation alarmd and libalarm are free software; you can redistribute them and/or modify them under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.

alarmd and libalarm are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this software; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 87 of file rpc-osso.c.

Referenced by set_osso_callbacks().

static DBusHandlerResult _dbus_message_in DBusConnection *  connection,
DBusMessage *  message,
void *  user_data
[static]
 

Definition at line 108 of file rpc-osso.c.

References ALARM_EVENT_ADD, ALARM_EVENT_DEL, ALARM_EVENT_GET, ALARM_EVENT_QUERY, ALARMD_EVENT, ALARMD_INTERFACE, ALARMD_OBJECT, alarmd_object_changed(), alarmd_object_to_dbus(), ALARMD_QUEUE, alarmd_queue_add_event(), alarmd_queue_get_event(), alarmd_queue_query_events(), alarmd_queue_remove_event(), ALARMD_SNOOZE_GET, ALARMD_SNOOZE_SET, dbus_object_factory(), DEBUG, ENTER_FUNC, and LEAVE_FUNC.

Referenced by deinit_osso(), and set_osso_callbacks().

static void _osso_hw_cb osso_hw_state_t *  state,
gpointer  data
[static]
 

Definition at line 290 of file rpc-osso.c.

References ENTER_FUNC, LEAVE_FUNC, and systemui_ack_all_dialogs().

Referenced by set_osso_callbacks().

static void _osso_time_changed gpointer  data  )  [static]
 

Definition at line 100 of file rpc-osso.c.

References ALARMD_OBJECT, alarmd_object_time_changed(), ENTER_FUNC, and LEAVE_FUNC.

Referenced by set_osso_callbacks().

void deinit_osso osso_context_t *  osso,
AlarmdQueue queue
 

deinit_osso: : The osso_context_t structure as returned by init_osso.

: The AlarmdQueue that was passed to init_osso.

Deinitializes osso connectivity. Stops listening on dbus buses.

Definition at line 75 of file rpc-osso.c.

References _dbus_message_in(), ENTER_FUNC, and LEAVE_FUNC.

Referenced by main().

osso_context_t* init_osso void   ) 
 

init_osso: : A AlarmdQueue that will be notified on time changes, and where new events should be added to.

Initializes osso connectivity. Returns: The osso_context_t returned by osso_initialize or NULL on failure.

Definition at line 42 of file rpc-osso.c.

References ENTER_FUNC, and LEAVE_FUNC.

Referenced by main().

void set_osso_callbacks osso_context_t *  osso,
AlarmdQueue queue
 

set_osso_callbacks: : A pointer to the osso_context_t struct, as returned by init_osso.

: The queue that the callbacks should affect.

Starts listening on dbus system and session buses for incoming requests.

Definition at line 57 of file rpc-osso.c.

References _bogus_rpc_f(), _dbus_message_in(), _osso_hw_cb(), _osso_time_changed(), ENTER_FUNC, and LEAVE_FUNC.

Referenced by main().


Generated on Thu Dec 21 18:23:31 2006 for Alarmd by  doxygen 1.4.2