00001 /* 00002 EasyDbus: DBus Binding Library 00003 Copyright (C) 2007 Daniele Rondina aka ge@@ru, geaaru@gmail.com 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public License 00007 as published by the Free Software Foundation; either version 2 00008 of the License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 00019 Filename: message_internal.h 00020 00021 Description: 00022 00023 Version: 1.0 00024 Created: 12/05/07 18:00:53 CEST 00025 Revision: none 00026 00027 Author: Daniele Rondina aka ge@@ru (geaaru@gmail.com), 00028 License: GPL 2.0 00029 */ 00030 00031 #ifndef EASYDBUS_MESSAGE_INTERNAL_H 00032 #define EASYDBUS_MESSAGE_INTERNAL_H 00033 00034 # include "easydbus-core.h" 00035 00036 /* Create EasyDbus_Pending object skeleton. */ 00037 struct EasyDbus_Pending * 00038 easydbus_pending_create_skeleton (struct EasyDbus_core *, 00039 EasyDbus_method *, 00040 easydbus_method_async_reply_cb_f, 00041 void *, int) 00042 EASYDBUS_INTERNAL_F_ATTR; 00043 00044 /* Create EasyDbus_Pending object skeleton. */ 00045 void 00046 easydbus_pending_destroy (struct EasyDbus_Pending *) 00047 EASYDBUS_INTERNAL_F_ATTR; 00048 00049 /* Send DBusMessage or insert message on queue. */ 00050 inline int 00051 easydbus_message_send (struct EasyDbus_core *, DBusMessage *, 00052 unsigned int, dbus_uint32_t *) 00053 EASYDBUS_INTERNAL_F_ATTR; 00054 00055 /* Send DBusMessage on async mode */ 00056 int 00057 easydbus_message_send_async (struct EasyDbus_core *, 00058 struct EasyDbus_Pending *, 00059 DBusMessage *) 00060 EASYDBUS_INTERNAL_F_ATTR; 00061 00062 00063 /* Handler for manage pending messages. */ 00064 void 00065 easydbus_pending_msg_handler (DBusPendingCall *, 00066 void *) 00067 EASYDBUS_INTERNAL_F_ATTR; 00068 #endif 00069 // vim: ts=3 shiftwidth=3 expandtab