D-Bus  1.12.16
dbus-transport.h
1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2 /* dbus-transport.h DBusTransport object (internal to D-BUS implementation)
3  *
4  * Copyright (C) 2002, 2004 Red Hat Inc.
5  *
6  * Licensed under the Academic Free License version 2.1
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23 #ifndef DBUS_TRANSPORT_H
24 #define DBUS_TRANSPORT_H
25 
26 #include <dbus/dbus-internals.h>
27 #include <dbus/dbus-connection.h>
28 #include <dbus/dbus-protocol.h>
29 #include <dbus/dbus-address.h>
30 
32 
34 
36  DBusError *error);
38 void _dbus_transport_unref (DBusTransport *transport);
45 
46 const char* _dbus_transport_get_address (DBusTransport *transport);
47 const char* _dbus_transport_get_server_id (DBusTransport *transport);
49  DBusWatch *watch,
50  unsigned int condition);
54  unsigned int flags,
55  int timeout_milliseconds);
58 
60  long size);
63  long size);
65 
67  long n);
70  long n);
72 
74  DBusSocket *fd_p);
76  unsigned long *uid);
78  unsigned long *pid);
80  void **data,
81  int *data_size);
84  void *data,
85  DBusFreeFunction free_data_function,
86  void **old_data,
87  DBusFreeFunction *old_free_data_function);
89  char **windows_sid_p);
90 dbus_bool_t _dbus_transport_get_linux_security_label (DBusTransport *transport,
91  char **label_p);
92 
95  void *data,
96  DBusFreeFunction free_data_function,
97  void **old_data,
98  DBusFreeFunction *old_free_data_function);
100  const char **mechanisms);
102  dbus_bool_t value);
105  void (* callback) (void *),
106  void *data);
107 
108 /* if DBUS_ENABLE_STATS */
109 void _dbus_transport_get_stats (DBusTransport *transport,
110  dbus_uint32_t *queue_bytes,
111  dbus_uint32_t *queue_fds,
112  dbus_uint32_t *peak_queue_bytes,
113  dbus_uint32_t *peak_queue_fds);
114 
116 
117 #endif /* DBUS_TRANSPORT_H */