method.c File Reference


Detailed Description

Functions for manage method messages.
Date:
Created: 06/07/07 23:23:26 CEST

Updated: 11/02/07 19:12:00 CEST

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

Definition in file method.c.

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

Include dependency graph for method.c:

Go to the source code of this file.

Functions

DBusMessage * create_method_msg (struct EasyDbus_core *core, struct EasyDbus_method *method)
 Create DBusMessage for method.
EasyDbus_methodeasydbus_method_build_skeleton (DBusMessage *msg)
 Build EasyDbus_method object from DBusMessage.
EasyDbus_methodeasydbus_method_create_skeleton (char *destination, char *path, char *interface, char *method)
 Create EasyDbus_method object skeleton.
void easydbus_method_free_skeleton (EasyDbus_method *method)
 Free a EasyDbus_method object.
int easydbus_method_get_args (EasyDbus_method *method)
 Get number of args on EasyDbus_method object.
const char * easydbus_method_get_destination (EasyDbus_method *method)
 Get destination of method.
const EasyDbus_elemeasydbus_method_get_element (EasyDbus_method *method, unsigned int n)
 Get N-element of EasyDbus_method object.
const char * easydbus_method_get_interface (EasyDbus_method *method)
 Get interface of method.
const char * easydbus_method_get_name (EasyDbus_method *method)
 Get name of method.
const char * easydbus_method_get_path (EasyDbus_method *method)
 Get path of method.
const EasyDbus_replyeasydbus_method_get_reply (EasyDbus_method *method)
 Get method reply message pointer from method.
int easydbus_method_send_async (EasyDbus_conn *conn, EasyDbus_method *method, void *closure)
 Call method and blocking for a reply.
int easydbus_method_send_async_with_notify (EasyDbus_conn *conn, EasyDbus_method *method, easydbus_method_async_reply_cb_f r_cb, void *closure, int timeout)
 Call method message async and notify a reply or a timeout.
enum easydbus_ret_values easydbus_method_send_blocking (EasyDbus_conn *conn, EasyDbus_method *method, int timeout)
 Call method and blocking for a reply.
int easydbus_method_set_reply (EasyDbus_method *method, EasyDbus_reply *reply)
 Set method reply message.
int easydbus_method_set_retry_flags (EasyDbus_method *method)
 Set Retry flag on EasyDbus_method object.


Function Documentation

int easydbus_method_set_retry_flags ( EasyDbus_method method  ) 

Set Retry flag on EasyDbus_method object.

Note:
This flag it is used only on pending reply callback for permits reuse of same method for a new wait (if a timeout is handled) or for send same method message.
Parameters:
method EasyDbus_method object pointer
Returns:
-1 on error

0 ok

Definition at line 519 of file method.c.

References EasyDbus_method::retry.

00520 {
00521    if (!method)
00522       return -1;
00523 
00524    method->retry = 1;
00525    return 0;
00526 }


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