Main Page   Modules   Data Structures   File List   Data Fields   Related Pages  

dbus-connection-internal.h

00001 /* -*- mode: C; c-file-style: "gnu" -*- */
00002 /* dbus-connection-internal.h DBusConnection internal interfaces
00003  *
00004  * Copyright (C) 2002  Red Hat Inc.
00005  *
00006  * Licensed under the Academic Free License version 1.2
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  *
00022  */
00023 #ifndef DBUS_CONNECTION_INTERNAL_H
00024 #define DBUS_CONNECTION_INTERNAL_H
00025 
00026 #include <dbus/dbus-internals.h>
00027 #include <dbus/dbus-connection.h>
00028 #include <dbus/dbus-message.h>
00029 #include <dbus/dbus-transport.h>
00030 #include <dbus/dbus-resources.h>
00031 #include <dbus/dbus-list.h>
00032 
00033 DBUS_BEGIN_DECLS;
00034 
00035 typedef enum
00036 {
00037   DBUS_ITERATION_DO_WRITING = 1 << 0, 
00038   DBUS_ITERATION_DO_READING = 1 << 1, 
00039   DBUS_ITERATION_BLOCK      = 1 << 2  
00040 } DBusIterationFlags;
00041 
00042 void              _dbus_connection_lock                        (DBusConnection     *connection);
00043 void              _dbus_connection_unlock                      (DBusConnection     *connection);
00044 void              _dbus_connection_ref_unlocked                (DBusConnection     *connection);
00045 dbus_bool_t       _dbus_connection_queue_received_message      (DBusConnection     *connection,
00046                                                                 DBusMessage        *message);
00047 void              _dbus_connection_queue_received_message_link (DBusConnection     *connection,
00048                                                                 DBusList           *link);
00049 dbus_bool_t       _dbus_connection_have_messages_to_send       (DBusConnection     *connection);
00050 DBusMessage*      _dbus_connection_get_message_to_send         (DBusConnection     *connection);
00051 void              _dbus_connection_message_sent                (DBusConnection     *connection,
00052                                                                 DBusMessage        *message);
00053 dbus_bool_t       _dbus_connection_add_watch                   (DBusConnection     *connection,
00054                                                                 DBusWatch          *watch);
00055 void              _dbus_connection_remove_watch                (DBusConnection     *connection,
00056                                                                 DBusWatch          *watch);
00057 void              _dbus_connection_toggle_watch                (DBusConnection     *connection,
00058                                                                 DBusWatch          *watch,
00059                                                                 dbus_bool_t         enabled);
00060 dbus_bool_t       _dbus_connection_handle_watch                (DBusWatch          *watch,
00061                                                                 unsigned int        condition,
00062                                                                 void               *data);
00063 dbus_bool_t       _dbus_connection_add_timeout                 (DBusConnection     *connection,
00064                                                                 DBusTimeout        *timeout);
00065 void              _dbus_connection_remove_timeout              (DBusConnection     *connection,
00066                                                                 DBusTimeout        *timeout);
00067 void              _dbus_connection_toggle_timeout              (DBusConnection     *connection,
00068                                                                 DBusTimeout        *timeout,
00069                                                                 dbus_bool_t         enabled);
00070 DBusConnection*   _dbus_connection_new_for_transport           (DBusTransport      *transport);
00071 void              _dbus_connection_do_iteration                (DBusConnection     *connection,
00072                                                                 unsigned int        flags,
00073                                                                 int                 timeout_milliseconds);
00074 void              _dbus_connection_notify_disconnected         (DBusConnection     *connection);
00075 void              _dbus_connection_handler_destroyed_locked    (DBusConnection     *connection,
00076                                                                 DBusMessageHandler *handler);
00077 dbus_bool_t       _dbus_message_handler_add_connection         (DBusMessageHandler *handler,
00078                                                                 DBusConnection     *connection);
00079 void              _dbus_message_handler_remove_connection      (DBusMessageHandler *handler,
00080                                                                 DBusConnection     *connection);
00081 DBusHandlerResult _dbus_message_handler_handle_message         (DBusMessageHandler *handler,
00082                                                                 DBusConnection     *connection,
00083                                                                 DBusMessage        *message);
00084 
00085 DBUS_END_DECLS;
00086 
00087 #endif /* DBUS_CONNECTION_INTERNAL_H */

Generated on Wed Oct 22 14:05:01 2003 for D-BUS by doxygen1.3-rc3