powersave_dbus.c File Reference

#include <string.h>
#include "config.h"
#include "powersave_dbus.h"
#include "powerlib.h"

Functions

int dbusInit (void)
void dbusFree (void)
 frees and closes the connection to DBus
int dbusGetMessageString (DBusMessage *msg, char **s, int no)
 get a string argument from a dbus messsage
int dbusGetMessageInteger (DBusMessage *msg, int *i, int no)
 get an integer argument from a dbus messsage
int dbusGetMessageErrorID (DBusMessage *msg, unsigned *error_id)
 get the DBUS_ERROR id from a reply
unsigned dbusSendMessageGeneric (int msg_type, DBusMessage **reply, const char *method, int first_arg_type, va_list var_args)
unsigned dbusSendSimpleMessage (int msg_type, const char *method)
 Send a message to the powersave daemon and receive the reply.
unsigned dbusSendSimpleMessageWithReply (int msg_type, DBusMessage **reply, const char *method)
 send a message to the daemon and receive the reply
unsigned dbusSendMessage (int msg_type, const char *method, int first_arg_type,...)
 send message to the daemon with arguments
unsigned dbusSendMessageWithReply (int msg_type, DBusMessage **reply, const char *method, int first_arg_type,...)
 send a message to the daemon with arguments and receive the reply
dbus_int32_t establishConnection (int capabilities, DBusConnection *connection)
 establishes a connection to the daemon

Variables

DBusConnection * connection = NULL
char * DBus_Error_Array [REPLY_ERROR_MAX]

Function Documentation

int dbusInit void   ) 
 

unsigned dbusSendMessageGeneric int  msg_type,
DBusMessage **  reply,
const char *  method,
int  first_arg_type,
va_list  var_args
 


Variable Documentation

DBusConnection* connection = NULL
 


Generated on Mon Mar 27 09:27:19 2006 for Powersave Daemon by  doxygen 1.4.6