Sophie

Sophie

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

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>services.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>services.h</h1><div class="fragment"><pre>00001 <font class="comment">/* -*- mode: C; c-file-style: "gnu" -*- */</font>
00002 <font class="comment">/* services.h  Service management</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_SERVICES_H</font>
00025 <font class="preprocessor"></font><font class="preprocessor">#define BUS_SERVICES_H</font>
00026 <font class="preprocessor"></font>
00027 <font class="preprocessor">#include &lt;dbus/dbus.h&gt;</font>
00028 <font class="preprocessor">#include &lt;dbus/dbus-string.h&gt;</font>
00029 <font class="preprocessor">#include "connection.h"</font>
00030 <font class="preprocessor">#include "bus.h"</font>
00031 
00032 <font class="keyword">typedef</font> void (* BusServiceForeachFunction) (BusService       *service,
00033                                             <font class="keywordtype">void</font>             *data);
00034 
00035 BusRegistry* bus_registry_new             (BusContext                  *context);
00036 <font class="keywordtype">void</font>         bus_registry_ref             (BusRegistry                 *registry);
00037 <font class="keywordtype">void</font>         bus_registry_unref           (BusRegistry                 *registry);
00038 BusService*  bus_registry_lookup          (BusRegistry                 *registry,
00039                                            <font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>            *service_name);
00040 BusService*  bus_registry_ensure          (BusRegistry                 *registry,
00041                                            <font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>            *service_name,
00042                                            <a class="code" href="structDBusConnection.html">DBusConnection</a>              *owner_if_created,
00043                                            BusTransaction              *transaction,
00044                                            <a class="code" href="structDBusError.html">DBusError</a>                   *error);
00045 <font class="keywordtype">void</font>         bus_registry_foreach         (BusRegistry                 *registry,
00046                                            BusServiceForeachFunction    function,
00047                                            <font class="keywordtype">void</font>                        *data);
00048 dbus_bool_t  bus_registry_list_services   (BusRegistry                 *registry,
00049                                            <font class="keywordtype">char</font>                      ***listp,
00050                                            <font class="keywordtype">int</font>                         *array_len);
00051 dbus_bool_t  bus_registry_acquire_service (BusRegistry                 *registry,
00052                                            <a class="code" href="structDBusConnection.html">DBusConnection</a>              *connection,
00053                                            <font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>            *service_name,
00054                                            dbus_uint32_t                flags,
00055                                            dbus_uint32_t               *result,
00056                                            BusTransaction              *transaction,
00057                                            <a class="code" href="structDBusError.html">DBusError</a>                   *error);
00058 
00059 <font class="keywordtype">void</font>            bus_service_ref                      (BusService     *service);
00060 <font class="keywordtype">void</font>            bus_service_unref                    (BusService     *service);
00061 dbus_bool_t     bus_service_add_owner                (BusService     *service,
00062                                                       <a class="code" href="structDBusConnection.html">DBusConnection</a> *owner,
00063                                                       BusTransaction *transaction,
00064                                                       <a class="code" href="structDBusError.html">DBusError</a>      *error);
00065 dbus_bool_t     bus_service_remove_owner             (BusService     *service,
00066                                                       <a class="code" href="structDBusConnection.html">DBusConnection</a> *owner,
00067                                                       BusTransaction *transaction,
00068                                                       <a class="code" href="structDBusError.html">DBusError</a>      *error);
00069 dbus_bool_t     bus_service_has_owner                (BusService     *service,
00070                                                       <a class="code" href="structDBusConnection.html">DBusConnection</a> *owner);
00071 <a class="code" href="structDBusConnection.html">DBusConnection</a>* bus_service_get_primary_owner        (BusService     *service);
00072 <font class="keywordtype">void</font>            bus_service_set_prohibit_replacement (BusService     *service,
00073                                                       dbus_bool_t     prohibit_replacement);
00074 dbus_bool_t     bus_service_get_prohibit_replacement (BusService     *service);
00075 <font class="keyword">const</font> <font class="keywordtype">char</font>*     bus_service_get_name                 (BusService     *service);
00076 
00077 
00078 <font class="preprocessor">#endif </font><font class="comment">/* BUS_SERVICES_H */</font>
</pre></div><hr><address align="right"><small>Generated on Mon Sep 29 21:31:02 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>