Sophie

Sophie

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

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>bus.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>bus.h</h1><div class="fragment"><pre>00001 <font class="comment">/* -*- mode: C; c-file-style: "gnu" -*- */</font>
00002 <font class="comment">/* bus.h  message bus context object</font>
00003 <font class="comment"> *</font>
00004 <font class="comment"> * Copyright (C) 2003 Red Hat, Inc.</font>
00005 <font class="comment"> *</font>
00006 <font class="comment"> * Licensed under the Academic Free License version 1.2</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 
00024 <font class="preprocessor">#ifndef BUS_BUS_H</font>
00025 <font class="preprocessor"></font><font class="preprocessor">#define BUS_BUS_H</font>
00026 <font class="preprocessor"></font>
00027 <font class="preprocessor">#include &lt;config.h&gt;</font>
00028 
00029 <font class="preprocessor">#include &lt;dbus/dbus.h&gt;</font>
00030 <font class="preprocessor">#include &lt;dbus/dbus-string.h&gt;</font>
00031 <font class="preprocessor">#include &lt;dbus/dbus-mainloop.h&gt;</font>
00032 <font class="preprocessor">#include &lt;dbus/dbus-userdb.h&gt;</font>
00033 
00034 <font class="keyword">typedef</font> <font class="keyword">struct </font>BusActivation    BusActivation;
00035 <font class="keyword">typedef</font> <font class="keyword">struct </font>BusConnections   BusConnections;
00036 <font class="keyword">typedef</font> <font class="keyword">struct </font>BusContext       BusContext;
00037 <font class="keyword">typedef</font> <font class="keyword">struct </font>BusPolicy        BusPolicy;
00038 <font class="keyword">typedef</font> <font class="keyword">struct </font>BusClientPolicy  BusClientPolicy;
00039 <font class="keyword">typedef</font> <font class="keyword">struct </font>BusPolicyRule    BusPolicyRule;
00040 <font class="keyword">typedef</font> <font class="keyword">struct </font>BusRegistry      BusRegistry;
00041 <font class="keyword">typedef</font> <font class="keyword">struct </font>BusService       BusService;
00042 <font class="keyword">typedef</font> <font class="keyword">struct </font>BusTransaction   BusTransaction;
00043 <font class="keyword">typedef</font> <font class="keyword">struct </font>BusMatchmaker    BusMatchmaker;
00044 <font class="keyword">typedef</font> <font class="keyword">struct </font>BusMatchRule     BusMatchRule;
00045 
00046 <font class="keyword">typedef</font> <font class="keyword">struct</font>
00047 <font class="keyword"></font>{
00048   <font class="keywordtype">long</font> max_incoming_bytes;          
00049   <font class="keywordtype">long</font> max_outgoing_bytes;          
00050   <font class="keywordtype">long</font> max_message_size;            
00051   <font class="keywordtype">int</font> activation_timeout;           
00052   <font class="keywordtype">int</font> auth_timeout;                 
00053   <font class="keywordtype">int</font> max_completed_connections;    
00054   <font class="keywordtype">int</font> max_incomplete_connections;   
00055   <font class="keywordtype">int</font> max_connections_per_user;     
00056   <font class="keywordtype">int</font> max_pending_activations;      
00057   <font class="keywordtype">int</font> max_services_per_connection;  
00058   <font class="keywordtype">int</font> max_match_rules_per_connection; 
00059 } BusLimits;
00060 
00061 BusContext*       bus_context_new                                (<font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a> *config_file,
00062                                                                   dbus_bool_t       force_fork,
00063                                                                   <font class="keywordtype">int</font>               print_addr_fd,
00064                                                                   <font class="keywordtype">int</font>               print_pid_fd,
00065                                                                   <a class="code" href="structDBusError.html">DBusError</a>        *error);
00066 <font class="keywordtype">void</font>              bus_context_shutdown                           (BusContext       *context);
00067 <font class="keywordtype">void</font>              bus_context_ref                                (BusContext       *context);
00068 <font class="keywordtype">void</font>              bus_context_unref                              (BusContext       *context);
00069 <font class="keyword">const</font> <font class="keywordtype">char</font>*       bus_context_get_type                           (BusContext       *context);
00070 <font class="keyword">const</font> <font class="keywordtype">char</font>*       bus_context_get_address                        (BusContext       *context);
00071 BusRegistry*      bus_context_get_registry                       (BusContext       *context);
00072 BusConnections*   bus_context_get_connections                    (BusContext       *context);
00073 BusActivation*    bus_context_get_activation                     (BusContext       *context);
00074 BusMatchmaker*    bus_context_get_matchmaker                     (BusContext       *context);
00075 DBusLoop*         bus_context_get_loop                           (BusContext       *context);
00076 <a class="code" href="structDBusUserDatabase.html">DBusUserDatabase</a>* bus_context_get_user_database                  (BusContext       *context);
00077 dbus_bool_t       bus_context_allow_user                         (BusContext       *context,
00078                                                                   <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font>     uid);
00079 BusClientPolicy*  bus_context_create_client_policy               (BusContext       *context,
00080                                                                   <a class="code" href="structDBusConnection.html">DBusConnection</a>   *connection,
00081                                                                   <a class="code" href="structDBusError.html">DBusError</a>        *error);
00082 <font class="keywordtype">int</font>               bus_context_get_activation_timeout             (BusContext       *context);
00083 <font class="keywordtype">int</font>               bus_context_get_auth_timeout                   (BusContext       *context);
00084 <font class="keywordtype">int</font>               bus_context_get_max_completed_connections      (BusContext       *context);
00085 <font class="keywordtype">int</font>               bus_context_get_max_incomplete_connections     (BusContext       *context);
00086 <font class="keywordtype">int</font>               bus_context_get_max_connections_per_user       (BusContext       *context);
00087 <font class="keywordtype">int</font>               bus_context_get_max_pending_activations        (BusContext       *context);
00088 <font class="keywordtype">int</font>               bus_context_get_max_services_per_connection    (BusContext       *context);
00089 <font class="keywordtype">int</font>               bus_context_get_max_match_rules_per_connection (BusContext       *context);
00090 dbus_bool_t       bus_context_check_security_policy              (BusContext       *context,
00091                                                                   <a class="code" href="structDBusConnection.html">DBusConnection</a>   *sender,
00092                                                                   <a class="code" href="structDBusConnection.html">DBusConnection</a>   *addressed_recipient,
00093                                                                   <a class="code" href="structDBusConnection.html">DBusConnection</a>   *proposed_recipient,
00094                                                                   <a class="code" href="structDBusMessage.html">DBusMessage</a>      *message,
00095                                                                   <a class="code" href="structDBusError.html">DBusError</a>        *error);
00096 
00097 
00098 <font class="preprocessor">#endif </font><font class="comment">/* BUS_BUS_H */</font>
</pre></div><hr><address align="right"><small>Generated on Mon Sep 29 21:30:59 2003 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>