D-Bus 1.4.10
|
00001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ 00002 /* dbus-pending-call-internal.h DBusPendingCall internal interfaces 00003 * 00004 * Copyright (C) 2002 Red Hat Inc. 00005 * 00006 * Licensed under the Academic Free License version 2.1 00007 * 00008 * This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00021 * 00022 */ 00023 #ifndef DBUS_PENDING_CALL_INTERNAL_H 00024 #define DBUS_PENDING_CALL_INTERNAL_H 00025 00026 00027 #include <dbus/dbus-internals.h> 00028 #include <dbus/dbus-message.h> 00029 #include <dbus/dbus-connection.h> 00030 #include <dbus/dbus-list.h> 00031 00032 DBUS_BEGIN_DECLS 00033 00034 dbus_bool_t _dbus_pending_call_is_timeout_added_unlocked (DBusPendingCall *pending); 00035 void _dbus_pending_call_set_timeout_added_unlocked (DBusPendingCall *pending, 00036 dbus_bool_t is_added); 00037 DBusTimeout * _dbus_pending_call_get_timeout_unlocked (DBusPendingCall *pending); 00038 dbus_uint32_t _dbus_pending_call_get_reply_serial_unlocked (DBusPendingCall *pending); 00039 void _dbus_pending_call_set_reply_serial_unlocked (DBusPendingCall *pending, 00040 dbus_uint32_t serial); 00041 DBusConnection * _dbus_pending_call_get_connection_and_lock (DBusPendingCall *pending); 00042 DBusConnection * _dbus_pending_call_get_connection_unlocked (DBusPendingCall *pending); 00043 dbus_bool_t _dbus_pending_call_get_completed_unlocked (DBusPendingCall *pending); 00044 void _dbus_pending_call_complete (DBusPendingCall *pending); 00045 void _dbus_pending_call_set_reply_unlocked (DBusPendingCall *pending, 00046 DBusMessage *message); 00047 void _dbus_pending_call_queue_timeout_error_unlocked (DBusPendingCall *pending, 00048 DBusConnection *connection); 00049 void _dbus_pending_call_set_reply_serial_unlocked (DBusPendingCall *pending, 00050 dbus_uint32_t serial); 00051 dbus_bool_t _dbus_pending_call_set_timeout_error_unlocked (DBusPendingCall *pending, 00052 DBusMessage *message, 00053 dbus_uint32_t serial); 00054 DBusPendingCall* _dbus_pending_call_new_unlocked (DBusConnection *connection, 00055 int timeout_milliseconds, 00056 DBusTimeoutHandler timeout_handler); 00057 DBusPendingCall* _dbus_pending_call_ref_unlocked (DBusPendingCall *pending); 00058 void _dbus_pending_call_unref_and_unlock (DBusPendingCall *pending); 00059 dbus_bool_t _dbus_pending_call_set_data_unlocked (DBusPendingCall *pending, 00060 dbus_int32_t slot, 00061 void *data, 00062 DBusFreeFunction free_data_func); 00063 00064 00065 DBUS_END_DECLS 00066 00067 #endif /* DBUS_PENDING_CALL_INTERNAL_H */