Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > media > main-release > by-pkgid > 926d2d1e3111287cee1b0a4fad4fb4f6 > files > 138

lib64dbus-1_3-devel-0.92-6mdv2007.0.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>dbus-transport-protected.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.15 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>dbus-transport-protected.h</h1><div class="fragment"><pre>00001 <font class="comment">/* -*- mode: C; c-file-style: "gnu" -*- */</font>
00002 <font class="comment">/* dbus-transport-protected.h Used by subclasses of DBusTransport object (internal to D-BUS implementation)</font>
00003 <font class="comment"> *</font>
00004 <font class="comment"> * Copyright (C) 2002  Red Hat Inc.</font>
00005 <font class="comment"> *</font>
00006 <font class="comment"> * Licensed under the Academic Free License version 2.0</font>
00007 <font class="comment"> * </font>
00008 <font class="comment"> * This program is free software; you can redistribute it and/or modify</font>
00009 <font class="comment"> * it under the terms of the GNU General Public License as published by</font>
00010 <font class="comment"> * the Free Software Foundation; either version 2 of the License, or</font>
00011 <font class="comment"> * (at your option) any later version.</font>
00012 <font class="comment"> *</font>
00013 <font class="comment"> * This program is distributed in the hope that it will be useful,</font>
00014 <font class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</font>
00015 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</font>
00016 <font class="comment"> * GNU General Public License for more details.</font>
00017 <font class="comment"> * </font>
00018 <font class="comment"> * You should have received a copy of the GNU General Public License</font>
00019 <font class="comment"> * along with this program; if not, write to the Free Software</font>
00020 <font class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</font>
00021 <font class="comment"> *</font>
00022 <font class="comment"> */</font>
00023 <font class="preprocessor">#ifndef DBUS_TRANSPORT_PROTECTED_H</font>
00024 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TRANSPORT_PROTECTED_H</font>
00025 <font class="preprocessor"></font>
00026 <font class="preprocessor">#include &lt;dbus/dbus-internals.h&gt;</font>
00027 <font class="preprocessor">#include &lt;dbus/dbus-errors.h&gt;</font>
00028 <font class="preprocessor">#include &lt;dbus/dbus-transport.h&gt;</font>
00029 <font class="preprocessor">#include &lt;dbus/dbus-message-internal.h&gt;</font>
00030 <font class="preprocessor">#include &lt;dbus/dbus-auth.h&gt;</font>
00031 <font class="preprocessor">#include &lt;dbus/dbus-resources.h&gt;</font>
00032 
00033 DBUS_BEGIN_DECLS;
00034 
00035 <font class="keyword">typedef</font> <font class="keyword">struct </font><a class="code" href="structDBusTransportVTable.html">DBusTransportVTable</a> DBusTransportVTable;
00036 
<a name="l00041"></a><a class="code" href="structDBusTransportVTable.html">00041</a> <font class="keyword">struct </font>DBusTransportVTable
00042 {
00043   void        (* <a class="code" href="structDBusTransportVTable.html#m0">finalize</a>)              (<a class="code" href="structDBusTransport.html">DBusTransport</a> *transport);
00046   dbus_bool_t (* <a class="code" href="structDBusTransportVTable.html#m1">handle_watch</a>)          (<a class="code" href="structDBusTransport.html">DBusTransport</a> *transport,
00047                                          <a class="code" href="structDBusWatch.html">DBusWatch</a>     *watch,
00048                                          <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>   flags);
00053   void        (* <a class="code" href="structDBusTransportVTable.html#m2">disconnect</a>)            (<a class="code" href="structDBusTransport.html">DBusTransport</a> *transport);
00056   dbus_bool_t (* <a class="code" href="structDBusTransportVTable.html#m3">connection_set</a>)        (<a class="code" href="structDBusTransport.html">DBusTransport</a> *transport);
00059   void        (* <a class="code" href="structDBusTransportVTable.html#m4">messages_pending</a>)      (<a class="code" href="structDBusTransport.html">DBusTransport</a> *transport,
00060                                          <font class="keywordtype">int</font>            queue_length);
00065   void        (* <a class="code" href="structDBusTransportVTable.html#m5">do_iteration</a>)          (<a class="code" href="structDBusTransport.html">DBusTransport</a> *transport,
00066                                          <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>   flags,
00067                                          <font class="keywordtype">int</font>            timeout_milliseconds);
00072   void        (* <a class="code" href="structDBusTransportVTable.html#m6">live_messages_changed</a>) (<a class="code" href="structDBusTransport.html">DBusTransport</a> *transport);
00074 };
00075 
<a name="l00082"></a><a class="code" href="structDBusTransport.html">00082</a> <font class="keyword">struct </font><a class="code" href="structDBusTransport.html">DBusTransport</a>
00083 {
<a name="l00084"></a><a class="code" href="structDBusTransport.html#m0">00084</a>   <font class="keywordtype">int</font> <a class="code" href="structDBusTransport.html#m0">refcount</a>;                               
<a name="l00086"></a><a class="code" href="structDBusTransport.html#m1">00086</a>   <font class="keyword">const</font> DBusTransportVTable *<a class="code" href="structDBusTransport.html#m1">vtable</a>;          
<a name="l00088"></a><a class="code" href="structDBusTransport.html#m2">00088</a>   <a class="code" href="structDBusConnection.html">DBusConnection</a> *<a class="code" href="structDBusTransport.html#m2">connection</a>;                 
<a name="l00090"></a><a class="code" href="structDBusTransport.html#m3">00090</a>   <a class="code" href="structDBusMessageLoader.html">DBusMessageLoader</a> *<a class="code" href="structDBusTransport.html#m3">loader</a>;                  
<a name="l00092"></a><a class="code" href="structDBusTransport.html#m4">00092</a>   <a class="code" href="structDBusAuth.html">DBusAuth</a> *<a class="code" href="structDBusTransport.html#m4">auth</a>;                             
<a name="l00094"></a><a class="code" href="structDBusTransport.html#m5">00094</a>   <a class="code" href="structDBusCredentials.html">DBusCredentials</a> <a class="code" href="structDBusTransport.html#m5">credentials</a>;                
<a name="l00096"></a><a class="code" href="structDBusTransport.html#m6">00096</a>   <font class="keywordtype">long</font> <a class="code" href="structDBusTransport.html#m6">max_live_messages_size</a>;                
<a name="l00098"></a><a class="code" href="structDBusTransport.html#m7">00098</a>   <a class="code" href="structDBusCounter.html">DBusCounter</a> *<a class="code" href="structDBusTransport.html#m7">live_messages_size</a>;            
<a name="l00101"></a><a class="code" href="structDBusTransport.html#m8">00101</a>   <font class="keywordtype">char</font> *<a class="code" href="structDBusTransport.html#m8">address</a>;                              
<a name="l00103"></a><a class="code" href="structDBusTransport.html#m9">00103</a>   DBusAllowUnixUserFunction <a class="code" href="structDBusTransport.html#m9">unix_user_function</a>; 
<a name="l00104"></a><a class="code" href="structDBusTransport.html#m10">00104</a>   <font class="keywordtype">void</font> *<a class="code" href="structDBusTransport.html#m10">unix_user_data</a>;                         
<a name="l00105"></a><a class="code" href="structDBusTransport.html#m11">00105</a>   DBusFreeFunction <a class="code" href="structDBusTransport.html#m11">free_unix_user_data</a>;         
<a name="l00107"></a><a class="code" href="structDBusTransport.html#m12">00107</a>   <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="structDBusTransport.html#m12">disconnected</a> : 1;              
<a name="l00108"></a><a class="code" href="structDBusTransport.html#m13">00108</a>   <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="structDBusTransport.html#m13">authenticated</a> : 1;             
<a name="l00109"></a><a class="code" href="structDBusTransport.html#m14">00109</a>   <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="structDBusTransport.html#m14">messages_need_sending</a> : 1;     
<a name="l00110"></a><a class="code" href="structDBusTransport.html#m15">00110</a>   <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="structDBusTransport.html#m15">send_credentials_pending</a> : 1;  
<a name="l00111"></a><a class="code" href="structDBusTransport.html#m16">00111</a>   <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="structDBusTransport.html#m16">receive_credentials_pending</a> : 1; 
<a name="l00112"></a><a class="code" href="structDBusTransport.html#m17">00112</a>   <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="structDBusTransport.html#m17">is_server</a> : 1;                 
<a name="l00113"></a><a class="code" href="structDBusTransport.html#m18">00113</a>   <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="structDBusTransport.html#m18">unused_bytes_recovered</a> : 1;    
00114 };
00115 
00116 dbus_bool_t _dbus_transport_init_base     (<a class="code" href="structDBusTransport.html">DBusTransport</a>             *transport,
00117                                            <font class="keyword">const</font> DBusTransportVTable *vtable,
00118                                            dbus_bool_t                server,
00119                                            <font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>          *address);
00120 <font class="keywordtype">void</font>        _dbus_transport_finalize_base (<a class="code" href="structDBusTransport.html">DBusTransport</a>             *transport);
00121 
00122 
00123 
00124 DBUS_END_DECLS;
00125 
00126 <font class="preprocessor">#endif </font><font class="comment">/* DBUS_TRANSPORT_PROTECTED_H */</font>
</pre></div><hr><address align="right"><small>Generated on Wed Jun 9 05:01:27 2004 for D-BUS by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.15 </small></address>
</body>
</html>