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