reply.c File Reference


Detailed Description

Functions for manage reply messages.
Date:
Created: 06/19/07 23:15:41 CEST

Updated: 11/02/07 21:25:00 CEST

Author:
Daniele Rondina aka ge@@ru <geaaru@gmail.com>

Definition in file reply.c.

#include <string.h>
#include <stdlib.h>
#include "easydbus-core.h"
#include "reply_internal.h"
#include "elem_internal.h"
#include "debug.h"
#include "message_internal.h"

Include dependency graph for reply.c:

Go to the source code of this file.

Functions

int easydbus_reply_build_error (struct EasyDbus_method *method, const char *error_msg)
 Create Error reply.
int easydbus_reply_build_struct (struct EasyDbus_method *method, DBusMessage *reply)
 Create EasyDbus_reply for an EasyDbus_method object from a DBusMessage reply.
DBusMessage * easydbus_reply_create_msg (struct EasyDbus_core *core, struct EasyDbus_reply *reply, DBusMessage *method_msg)
 Create DBusMessage for reply.
EasyDbus_replyeasydbus_reply_create_skeleton (void)
 Create EasyDbus_reply object.
void easydbus_reply_free_skeleton (EasyDbus_reply *reply)
 Free a EasyDbus_reply object.
int easydbus_reply_get_args (const EasyDbus_reply *reply)
 Return number of args on EasyDbus_reply object.
const EasyDbus_elemeasydbus_reply_get_element (const EasyDbus_reply *reply, unsigned int n)
 Get N-element of EasyDbus_reply object.
const char * easydbus_reply_get_interface (EasyDbus_reply *reply)
 Recover interface of EasyDbus_reply object.
const char * easydbus_reply_get_sender (EasyDbus_reply *reply)
 Get sender of reply.
const char * easydbus_reply_get_src_path (EasyDbus_reply *reply)
 Recover source path of EasyDbus_reply object.
enum event_type easydbus_reply_get_type (EasyDbus_reply *reply)
 Recover type of EasyDbus_reply object.
int easydbus_reply_send (struct EasyDbus_core *core, DBusMessage *method_msg, struct EasyDbus_reply *reply)
 Send reply on DBus bus.
int easydbus_reply_send_error (struct EasyDbus_core *core, DBusMessage *msg, char *error_name, char *error_string)
 Send error reply.
int easydbus_reply_set_interface (EasyDbus_reply *reply, const char *interface)
 Set interface of reply.
int easydbus_reply_set_path (EasyDbus_reply *reply, const char *path)
 Set path of reply.
int easydbus_reply_set_sender (EasyDbus_reply *reply, const char *sender)
 Set sender of reply.
int easydbus_reply_set_type (EasyDbus_reply *reply, enum event_type type)
 Set reply type.


Generated on Thu Apr 10 10:00:52 2008 for EasyDbus-0.2 by  doxygen 1.5.4