williamr@2
|
1 |
/* -*- mode: C; c-file-style: "gnu" -*- */
|
williamr@2
|
2 |
/* dbus-pending-call.h Object representing a call in progress.
|
williamr@2
|
3 |
*
|
williamr@2
|
4 |
* Copyright (C) 2002, 2003 Red Hat Inc.
|
williamr@2
|
5 |
* Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
|
williamr@2
|
6 |
* Licensed under the Academic Free License version 2.1
|
williamr@2
|
7 |
*
|
williamr@2
|
8 |
* This program is free software; you can redistribute it and/or modify
|
williamr@2
|
9 |
* it under the terms of the GNU General Public License as published by
|
williamr@2
|
10 |
* the Free Software Foundation; either version 2 of the License, or
|
williamr@2
|
11 |
* (at your option) any later version.
|
williamr@2
|
12 |
*
|
williamr@2
|
13 |
* This program is distributed in the hope that it will be useful,
|
williamr@2
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
williamr@2
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
williamr@2
|
16 |
* GNU General Public License for more details.
|
williamr@2
|
17 |
*
|
williamr@2
|
18 |
* You should have received a copy of the GNU General Public License
|
williamr@2
|
19 |
* along with this program; if not, write to the Free Software
|
williamr@2
|
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
williamr@2
|
21 |
*
|
williamr@2
|
22 |
*/
|
williamr@2
|
23 |
#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
|
williamr@2
|
24 |
#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
|
williamr@2
|
25 |
#endif
|
williamr@2
|
26 |
|
williamr@2
|
27 |
#ifndef DBUS_PENDING_CALL_H
|
williamr@2
|
28 |
#define DBUS_PENDING_CALL_H
|
williamr@2
|
29 |
|
williamr@2
|
30 |
#include <dbus/dbus-macros.h>
|
williamr@2
|
31 |
#include <dbus/dbus-types.h>
|
williamr@2
|
32 |
#include <dbus/dbus-connection.h>
|
williamr@2
|
33 |
|
williamr@2
|
34 |
DBUS_BEGIN_DECLS
|
williamr@2
|
35 |
|
williamr@2
|
36 |
/**
|
williamr@2
|
37 |
* @addtogroup DBusPendingCall
|
williamr@2
|
38 |
* @{
|
williamr@2
|
39 |
*/
|
williamr@2
|
40 |
|
williamr@2
|
41 |
#ifdef __SYMBIAN32__
|
williamr@2
|
42 |
IMPORT_C
|
williamr@2
|
43 |
#endif
|
williamr@2
|
44 |
DBusPendingCall* dbus_pending_call_ref (DBusPendingCall *pending);
|
williamr@2
|
45 |
#ifdef __SYMBIAN32__
|
williamr@2
|
46 |
IMPORT_C
|
williamr@2
|
47 |
#endif
|
williamr@2
|
48 |
void dbus_pending_call_unref (DBusPendingCall *pending);
|
williamr@2
|
49 |
|
williamr@2
|
50 |
#ifdef __SYMBIAN32__
|
williamr@2
|
51 |
IMPORT_C
|
williamr@2
|
52 |
#endif
|
williamr@2
|
53 |
dbus_bool_t dbus_pending_call_set_notify (DBusPendingCall *pending,
|
williamr@2
|
54 |
DBusPendingCallNotifyFunction function,
|
williamr@2
|
55 |
void *user_data,
|
williamr@2
|
56 |
DBusFreeFunction free_user_data);
|
williamr@2
|
57 |
|
williamr@2
|
58 |
#ifdef __SYMBIAN32__
|
williamr@2
|
59 |
IMPORT_C
|
williamr@2
|
60 |
#endif
|
williamr@2
|
61 |
void dbus_pending_call_cancel (DBusPendingCall *pending);
|
williamr@2
|
62 |
|
williamr@2
|
63 |
#ifdef __SYMBIAN32__
|
williamr@2
|
64 |
IMPORT_C
|
williamr@2
|
65 |
#endif
|
williamr@2
|
66 |
dbus_bool_t dbus_pending_call_get_completed (DBusPendingCall *pending);
|
williamr@2
|
67 |
|
williamr@2
|
68 |
#ifdef __SYMBIAN32__
|
williamr@2
|
69 |
IMPORT_C
|
williamr@2
|
70 |
#endif
|
williamr@2
|
71 |
DBusMessage* dbus_pending_call_steal_reply (DBusPendingCall *pending);
|
williamr@2
|
72 |
|
williamr@2
|
73 |
#ifdef __SYMBIAN32__
|
williamr@2
|
74 |
IMPORT_C
|
williamr@2
|
75 |
#endif
|
williamr@2
|
76 |
void dbus_pending_call_block (DBusPendingCall *pending);
|
williamr@2
|
77 |
|
williamr@2
|
78 |
#ifdef __SYMBIAN32__
|
williamr@2
|
79 |
IMPORT_C
|
williamr@2
|
80 |
#endif
|
williamr@2
|
81 |
dbus_bool_t dbus_pending_call_allocate_data_slot (dbus_int32_t *slot_p);
|
williamr@2
|
82 |
#ifdef __SYMBIAN32__
|
williamr@2
|
83 |
IMPORT_C
|
williamr@2
|
84 |
#endif
|
williamr@2
|
85 |
void dbus_pending_call_free_data_slot (dbus_int32_t *slot_p);
|
williamr@2
|
86 |
#ifdef __SYMBIAN32__
|
williamr@2
|
87 |
IMPORT_C
|
williamr@2
|
88 |
#endif
|
williamr@2
|
89 |
dbus_bool_t dbus_pending_call_set_data (DBusPendingCall *pending,
|
williamr@2
|
90 |
dbus_int32_t slot,
|
williamr@2
|
91 |
void *data,
|
williamr@2
|
92 |
DBusFreeFunction free_data_func);
|
williamr@2
|
93 |
#ifdef __SYMBIAN32__
|
williamr@2
|
94 |
IMPORT_C
|
williamr@2
|
95 |
#endif
|
williamr@2
|
96 |
void* dbus_pending_call_get_data (DBusPendingCall *pending,
|
williamr@2
|
97 |
dbus_int32_t slot);
|
williamr@2
|
98 |
|
williamr@2
|
99 |
/** @} */
|
williamr@2
|
100 |
|
williamr@2
|
101 |
DBUS_END_DECLS
|
williamr@2
|
102 |
|
williamr@2
|
103 |
#endif /* DBUS_PENDING_CALL_H */
|