00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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 #include <dbus/dbus-protocol.h>
00029 #include <dbus/dbus-address.h>
00030
00031 DBUS_BEGIN_DECLS
00032
00033 typedef struct DBusTransport DBusTransport;
00034
00035 DBusTransport* _dbus_transport_open (DBusAddressEntry *entry,
00036 DBusError *error);
00037 DBusTransport* _dbus_transport_ref (DBusTransport *transport);
00038 void _dbus_transport_unref (DBusTransport *transport);
00039 void _dbus_transport_disconnect (DBusTransport *transport);
00040 dbus_bool_t _dbus_transport_get_is_connected (DBusTransport *transport);
00041 dbus_bool_t _dbus_transport_get_is_authenticated (DBusTransport *transport);
00042 dbus_bool_t _dbus_transport_get_is_anonymous (DBusTransport *transport);
00043 const char* _dbus_transport_get_address (DBusTransport *transport);
00044 const char* _dbus_transport_get_server_id (DBusTransport *transport);
00045 dbus_bool_t _dbus_transport_handle_watch (DBusTransport *transport,
00046 DBusWatch *watch,
00047 unsigned int condition);
00048 dbus_bool_t _dbus_transport_set_connection (DBusTransport *transport,
00049 DBusConnection *connection);
00050 void _dbus_transport_do_iteration (DBusTransport *transport,
00051 unsigned int flags,
00052 int timeout_milliseconds);
00053 DBusDispatchStatus _dbus_transport_get_dispatch_status (DBusTransport *transport);
00054 dbus_bool_t _dbus_transport_queue_messages (DBusTransport *transport);
00055 void _dbus_transport_set_max_message_size (DBusTransport *transport,
00056 long size);
00057 long _dbus_transport_get_max_message_size (DBusTransport *transport);
00058 void _dbus_transport_set_max_received_size (DBusTransport *transport,
00059 long size);
00060 long _dbus_transport_get_max_received_size (DBusTransport *transport);
00061 dbus_bool_t _dbus_transport_get_socket_fd (DBusTransport *transport,
00062 int *fd_p);
00063 dbus_bool_t _dbus_transport_get_unix_user (DBusTransport *transport,
00064 unsigned long *uid);
00065 dbus_bool_t _dbus_transport_get_unix_process_id (DBusTransport *transport,
00066 unsigned long *pid);
00067 dbus_bool_t _dbus_transport_get_adt_audit_session_data (DBusTransport *transport,
00068 void **data,
00069 int *data_size);
00070 void _dbus_transport_set_unix_user_function (DBusTransport *transport,
00071 DBusAllowUnixUserFunction function,
00072 void *data,
00073 DBusFreeFunction free_data_function,
00074 void **old_data,
00075 DBusFreeFunction *old_free_data_function);
00076 dbus_bool_t _dbus_transport_get_windows_user (DBusTransport *transport,
00077 char **windows_sid_p);
00078 void _dbus_transport_set_windows_user_function (DBusTransport *transport,
00079 DBusAllowWindowsUserFunction function,
00080 void *data,
00081 DBusFreeFunction free_data_function,
00082 void **old_data,
00083 DBusFreeFunction *old_free_data_function);
00084 dbus_bool_t _dbus_transport_set_auth_mechanisms (DBusTransport *transport,
00085 const char **mechanisms);
00086 void _dbus_transport_set_allow_anonymous (DBusTransport *transport,
00087 dbus_bool_t value);
00088
00089
00090 DBUS_END_DECLS
00091
00092 #endif