Main Page | Modules | Data Structures | File List | Data Fields | Related Pages

dbus-transport.h

00001 /* -*- mode: C; c-file-style: "gnu" -*- */
00002 /* dbus-transport.h DBusTransport object (internal to D-BUS implementation)
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_TRANSPORT_H
00024 #define DBUS_TRANSPORT_H
00025 
00026 #include <dbus/dbus-internals.h>
00027 #include <dbus/dbus-connection.h>
00028 
00029 DBUS_BEGIN_DECLS;
00030 
00031 typedef struct DBusTransport DBusTransport;
00032 
00033 DBusTransport*     _dbus_transport_open                   (const char                 *address,
00034                                                            DBusError                  *error);
00035 void               _dbus_transport_ref                    (DBusTransport              *transport);
00036 void               _dbus_transport_unref                  (DBusTransport              *transport);
00037 void               _dbus_transport_disconnect             (DBusTransport              *transport);
00038 dbus_bool_t        _dbus_transport_get_is_connected       (DBusTransport              *transport);
00039 dbus_bool_t        _dbus_transport_get_is_authenticated   (DBusTransport              *transport);
00040 const char*        _dbus_transport_get_address            (DBusTransport              *transport);
00041 dbus_bool_t        _dbus_transport_handle_watch           (DBusTransport              *transport,
00042                                                            DBusWatch                  *watch,
00043                                                            unsigned int                condition);
00044 dbus_bool_t        _dbus_transport_set_connection         (DBusTransport              *transport,
00045                                                            DBusConnection             *connection);
00046 void               _dbus_transport_messages_pending       (DBusTransport              *transport,
00047                                                            int                         queue_length);
00048 void               _dbus_transport_do_iteration           (DBusTransport              *transport,
00049                                                            unsigned int                flags,
00050                                                            int                         timeout_milliseconds);
00051 DBusDispatchStatus _dbus_transport_get_dispatch_status    (DBusTransport              *transport);
00052 dbus_bool_t        _dbus_transport_queue_messages         (DBusTransport              *transport);
00053 void               _dbus_transport_set_max_message_size   (DBusTransport              *transport,
00054                                                            long                        size);
00055 long               _dbus_transport_get_max_message_size   (DBusTransport              *transport);
00056 void               _dbus_transport_set_max_received_size  (DBusTransport              *transport,
00057                                                            long                        size);
00058 long               _dbus_transport_get_max_received_size  (DBusTransport              *transport);
00059 dbus_bool_t        _dbus_transport_get_unix_user          (DBusTransport              *transport,
00060                                                            unsigned long              *uid);
00061 void               _dbus_transport_set_unix_user_function (DBusTransport              *transport,
00062                                                            DBusAllowUnixUserFunction   function,
00063                                                            void                       *data,
00064                                                            DBusFreeFunction            free_data_function,
00065                                                            void                      **old_data,
00066                                                            DBusFreeFunction           *old_free_data_function);
00067 dbus_bool_t        _dbus_transport_set_auth_mechanisms    (DBusTransport              *transport,
00068                                                            const char                **mechanisms);
00069 
00070 
00071 
00072 
00073 DBUS_END_DECLS;
00074 
00075 #endif /* DBUS_TRANSPORT_H */

Generated on Tue Feb 10 18:14:09 2004 for D-BUS by doxygen 1.3.5