epoc32/include/stdapis/dbus-1.0/dbus/dbus-server.h
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/dbus-1.0/dbus/dbus-server.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,132 @@
     1.4 +/* -*- mode: C; c-file-style: "gnu" -*- */
     1.5 +/* dbus-server.h DBusServer object
     1.6 + *
     1.7 + * Copyright (C) 2002, 2003  Red Hat Inc.
     1.8 + * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
     1.9 + * Licensed under the Academic Free License version 2.1
    1.10 + * 
    1.11 + * This program is free software; you can redistribute it and/or modify
    1.12 + * it under the terms of the GNU General Public License as published by
    1.13 + * the Free Software Foundation; either version 2 of the License, or
    1.14 + * (at your option) any later version.
    1.15 + *
    1.16 + * This program is distributed in the hope that it will be useful,
    1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.19 + * GNU General Public License for more details.
    1.20 + * 
    1.21 + * You should have received a copy of the GNU General Public License
    1.22 + * along with this program; if not, write to the Free Software
    1.23 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.24 + *
    1.25 + */
    1.26 +#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
    1.27 +#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
    1.28 +#endif
    1.29 +
    1.30 +#ifndef DBUS_SERVER_H
    1.31 +#define DBUS_SERVER_H
    1.32 +
    1.33 +#include <dbus/dbus-errors.h>
    1.34 +#include <dbus/dbus-message.h>
    1.35 +#include <dbus/dbus-connection.h>
    1.36 +#include <dbus/dbus-protocol.h>
    1.37 +
    1.38 +DBUS_BEGIN_DECLS
    1.39 +
    1.40 +/**
    1.41 + * @addtogroup DBusServer
    1.42 + * @{
    1.43 + */
    1.44 +
    1.45 +typedef struct DBusServer DBusServer;
    1.46 +
    1.47 +/** Called when a new connection to the server is available. Must reference and save the new
    1.48 + * connection, or close the new connection. Set with dbus_server_set_new_connection_function().
    1.49 + */
    1.50 +typedef void (* DBusNewConnectionFunction) (DBusServer     *server,
    1.51 +                                            DBusConnection *new_connection,
    1.52 +                                            void           *data);
    1.53 +
    1.54 +#ifdef __SYMBIAN32__
    1.55 +IMPORT_C
    1.56 +#endif
    1.57 +DBusServer* dbus_server_listen           (const char     *address,
    1.58 +                                          DBusError      *error);
    1.59 +#ifdef __SYMBIAN32__
    1.60 +IMPORT_C
    1.61 +#endif
    1.62 +DBusServer* dbus_server_ref              (DBusServer     *server);
    1.63 +#ifdef __SYMBIAN32__
    1.64 +IMPORT_C
    1.65 +#endif
    1.66 +void        dbus_server_unref            (DBusServer     *server);
    1.67 +#ifdef __SYMBIAN32__
    1.68 +IMPORT_C
    1.69 +#endif
    1.70 +void        dbus_server_disconnect       (DBusServer     *server);
    1.71 +#ifdef __SYMBIAN32__
    1.72 +IMPORT_C
    1.73 +#endif
    1.74 +dbus_bool_t dbus_server_get_is_connected (DBusServer     *server);
    1.75 +#ifdef __SYMBIAN32__
    1.76 +IMPORT_C
    1.77 +#endif
    1.78 +char*       dbus_server_get_address      (DBusServer     *server);
    1.79 +#ifdef __SYMBIAN32__
    1.80 +IMPORT_C
    1.81 +#endif
    1.82 +void        dbus_server_set_new_connection_function (DBusServer                *server,
    1.83 +                                                     DBusNewConnectionFunction  function,
    1.84 +                                                     void                      *data,
    1.85 +                                                     DBusFreeFunction           free_data_function);
    1.86 +#ifdef __SYMBIAN32__
    1.87 +IMPORT_C
    1.88 +#endif
    1.89 +dbus_bool_t dbus_server_set_watch_functions         (DBusServer                *server,
    1.90 +                                                     DBusAddWatchFunction       add_function,
    1.91 +                                                     DBusRemoveWatchFunction    remove_function,
    1.92 +                                                     DBusWatchToggledFunction   toggled_function,
    1.93 +                                                     void                      *data,
    1.94 +                                                     DBusFreeFunction           free_data_function);
    1.95 +#ifdef __SYMBIAN32__
    1.96 +IMPORT_C
    1.97 +#endif
    1.98 +dbus_bool_t dbus_server_set_timeout_functions       (DBusServer                *server,
    1.99 +                                                     DBusAddTimeoutFunction     add_function,
   1.100 +                                                     DBusRemoveTimeoutFunction  remove_function,
   1.101 +                                                     DBusTimeoutToggledFunction toggled_function,
   1.102 +                                                     void                      *data,
   1.103 +                                                     DBusFreeFunction           free_data_function);
   1.104 +#ifdef __SYMBIAN32__
   1.105 +IMPORT_C
   1.106 +#endif
   1.107 +dbus_bool_t dbus_server_set_auth_mechanisms         (DBusServer                *server,
   1.108 +                                                     const char               **mechanisms);
   1.109 +
   1.110 +#ifdef __SYMBIAN32__
   1.111 +IMPORT_C
   1.112 +#endif
   1.113 +dbus_bool_t dbus_server_allocate_data_slot (dbus_int32_t     *slot_p);
   1.114 +#ifdef __SYMBIAN32__
   1.115 +IMPORT_C
   1.116 +#endif
   1.117 +void        dbus_server_free_data_slot     (dbus_int32_t     *slot_p);
   1.118 +#ifdef __SYMBIAN32__
   1.119 +IMPORT_C
   1.120 +#endif
   1.121 +dbus_bool_t dbus_server_set_data           (DBusServer       *server,
   1.122 +                                            int               slot,
   1.123 +                                            void             *data,
   1.124 +                                            DBusFreeFunction  free_data_func);
   1.125 +#ifdef __SYMBIAN32__
   1.126 +IMPORT_C
   1.127 +#endif
   1.128 +void*       dbus_server_get_data           (DBusServer       *server,
   1.129 +                                            int               slot);
   1.130 +
   1.131 +/** @} */
   1.132 +
   1.133 +DBUS_END_DECLS
   1.134 +
   1.135 +#endif /* DBUS_SERVER_H */