Sophie

Sophie

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

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-glib.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-glib.h</h1><div class="fragment"><pre>00001 <font class="comment">/* -*- mode: C; c-file-style: "gnu" -*- */</font>
00002 <font class="comment">/* dbus-glib.h GLib integration</font>
00003 <font class="comment"> *</font>
00004 <font class="comment"> * Copyright (C) 2002, 2003  CodeFactory AB</font>
00005 <font class="comment"> * Copyright (C) 2003 Red Hat, Inc.</font>
00006 <font class="comment"> *</font>
00007 <font class="comment"> * Licensed under the Academic Free License version 2.0</font>
00008 <font class="comment"> * </font>
00009 <font class="comment"> * This program is free software; you can redistribute it and/or modify</font>
00010 <font class="comment"> * it under the terms of the GNU General Public License as published by</font>
00011 <font class="comment"> * the Free Software Foundation; either version 2 of the License, or</font>
00012 <font class="comment"> * (at your option) any later version.</font>
00013 <font class="comment"> *</font>
00014 <font class="comment"> * This program is distributed in the hope that it will be useful,</font>
00015 <font class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</font>
00016 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</font>
00017 <font class="comment"> * GNU General Public License for more details.</font>
00018 <font class="comment"> * </font>
00019 <font class="comment"> * You should have received a copy of the GNU General Public License</font>
00020 <font class="comment"> * along with this program; if not, write to the Free Software</font>
00021 <font class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</font>
00022 <font class="comment"> *</font>
00023 <font class="comment"> */</font>
00024 <font class="preprocessor">#ifndef DBUS_GLIB_H</font>
00025 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_GLIB_H</font>
00026 <font class="preprocessor"></font>
00027 <font class="preprocessor">#include &lt;dbus/dbus.h&gt;</font>
00028 <font class="preprocessor">#include &lt;glib-object.h&gt;</font>
00029 
00030 G_BEGIN_DECLS
00031 
00032 <font class="preprocessor">#define DBUS_INSIDE_DBUS_GLIB_H 1</font>
00033 <font class="preprocessor"></font>
00034 GQuark dbus_g_error_quark (<font class="keywordtype">void</font>);
00035 <font class="preprocessor">#define DBUS_GERROR dbus_g_error_quark ()</font>
00036 <font class="preprocessor"></font>
00037 <font class="preprocessor">#define DBUS_TYPE_CONNECTION (dbus_connection_get_g_type ())</font>
00038 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_TYPE_MESSAGE    (dbus_message_get_g_type ())</font>
00039 <font class="preprocessor"></font>GType dbus_connection_get_g_type (<font class="keywordtype">void</font>) G_GNUC_CONST;
00040 GType dbus_message_get_g_type    (<font class="keywordtype">void</font>) G_GNUC_CONST;
00041 
00042 <font class="keyword">typedef</font> <font class="keyword">enum</font>
00043 {
00044   <font class="comment">/* FIXME map all the DBUS_ERROR to DBUS_GERROR, should</font>
00045 <font class="comment">   * probably be automated in some way, perhaps</font>
00046 <font class="comment">   * via lame perl script</font>
00047 <font class="comment">   */</font>
00048   DBUS_GERROR_FAILED
00049 } DBusGError;
00050 
00051 <font class="keywordtype">void</font> dbus_set_g_error (GError   **gerror,
00052                        <a class="code" href="structDBusError.html">DBusError</a> *derror);
00053 
00054 <font class="keywordtype">void</font>            dbus_g_thread_init                (<font class="keywordtype">void</font>);
00055 <font class="keywordtype">void</font>            dbus_connection_setup_with_g_main (<a class="code" href="structDBusConnection.html">DBusConnection</a>  *connection,
00056                                                    GMainContext    *context);
00057 <font class="keywordtype">void</font>            dbus_server_setup_with_g_main     (<a class="code" href="structDBusServer.html">DBusServer</a>      *server,
00058                                                    GMainContext    *context);
00059 <a class="code" href="structDBusConnection.html">DBusConnection</a>* dbus_bus_get_with_g_main          (DBusBusType      type,
00060                                                    GError         **error);
00061 
00062 <font class="keyword">typedef</font> <font class="keyword">struct </font><a class="code" href="structDBusGObjectInfo.html">DBusGObjectInfo</a> DBusGObjectInfo;
00063 <font class="keyword">typedef</font> <font class="keyword">struct </font><a class="code" href="structDBusGMethodInfo.html">DBusGMethodInfo</a> DBusGMethodInfo;
00064 
<a name="l00070"></a><a class="code" href="structDBusGMethodInfo.html">00070</a> <font class="keyword">struct </font>DBusGMethodInfo
00071 {
<a name="l00072"></a><a class="code" href="structDBusGMethodInfo.html#m0">00072</a>   GCallback                 <a class="code" href="structDBusGMethodInfo.html#m0">function</a>;    
<a name="l00073"></a><a class="code" href="structDBusGMethodInfo.html#m1">00073</a>   DBusHandleMessageFunction <a class="code" href="structDBusGMethodInfo.html#m1">marshaller</a>;  
<a name="l00074"></a><a class="code" href="structDBusGMethodInfo.html#m2">00074</a>   <font class="keywordtype">int</font>                       <a class="code" href="structDBusGMethodInfo.html#m2">data_offset</a>; 
00075 };
00076 
<a name="l00081"></a><a class="code" href="structDBusGObjectInfo.html">00081</a> <font class="keyword">struct </font>DBusGObjectInfo
00082 {
<a name="l00083"></a><a class="code" href="structDBusGObjectInfo.html#m0">00083</a>   <font class="keywordtype">int</font>   <a class="code" href="structDBusGObjectInfo.html#m0">format_version</a>;         
<a name="l00086"></a><a class="code" href="structDBusGObjectInfo.html#m1">00086</a>   <font class="keyword">const</font> DBusGMethodInfo *<a class="code" href="structDBusGObjectInfo.html#m1">infos</a>; 
<a name="l00087"></a><a class="code" href="structDBusGObjectInfo.html#m2">00087</a>   <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *<a class="code" href="structDBusGObjectInfo.html#m2">data</a>;    
00088 };
00089 
00090 <font class="keywordtype">void</font> dbus_g_object_class_install_info  (GObjectClass          *object_class,
00091                                         <font class="keyword">const</font> DBusGObjectInfo *info);
00092 <font class="keywordtype">void</font> dbus_connection_register_g_object (<a class="code" href="structDBusConnection.html">DBusConnection</a>        *connection,
00093                                         <font class="keyword">const</font> <font class="keywordtype">char</font>            *at_path,
00094                                         GObject               *object);
00095 
00096 
00097 <font class="keyword">typedef</font> <font class="keyword">struct </font><a class="code" href="structDBusGProxy.html">DBusGProxy</a>       DBusGProxy;
00098 <font class="keyword">typedef</font> <font class="keyword">struct </font><a class="code" href="structDBusGProxyClass.html">DBusGProxyClass</a>  DBusGProxyClass;
00099 
00100 <font class="keyword">typedef</font> void (* DBusGProxySignalHandler) (DBusGProxy  *proxy,
00101                                           <a class="code" href="structDBusMessage.html">DBusMessage</a> *signal,
00102                                           <font class="keywordtype">void</font>        *user_data);
00103 
00104 <font class="preprocessor">#define DBUS_TYPE_GPROXY              (dbus_gproxy_get_type ())</font>
00105 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_GPROXY(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), DBUS_TYPE_GPROXY, DBusGProxy))</font>
00106 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_GPROXY_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), DBUS_TYPE_GPROXY, DBusGProxyClass))</font>
00107 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_IS_GPROXY(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), DBUS_TYPE_GPROXY))</font>
00108 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_IS_GPROXY_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUS_TYPE_GPROXY))</font>
00109 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_GPROXY_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUS_TYPE_GPROXY, DBusGProxyClass))</font>
00110 <font class="preprocessor"></font>
00111 
00112 GType            dbus_gproxy_get_type              (<font class="keywordtype">void</font>) G_GNUC_CONST;
00113 DBusGProxy*      dbus_gproxy_new_for_service       (<a class="code" href="structDBusConnection.html">DBusConnection</a>           *connection,
00114                                                     <font class="keyword">const</font> <font class="keywordtype">char</font>               *service_name,
00115                                                     <font class="keyword">const</font> <font class="keywordtype">char</font>               *path_name,
00116                                                     <font class="keyword">const</font> <font class="keywordtype">char</font>               *interface_name);
00117 DBusGProxy*      dbus_gproxy_new_for_service_owner (<a class="code" href="structDBusConnection.html">DBusConnection</a>           *connection,
00118                                                     <font class="keyword">const</font> <font class="keywordtype">char</font>               *service_name,
00119                                                     <font class="keyword">const</font> <font class="keywordtype">char</font>               *path_name,
00120                                                     <font class="keyword">const</font> <font class="keywordtype">char</font>               *interface_name,
00121                                                     GError                  **error);
00122 DBusGProxy*      dbus_gproxy_new_for_peer          (<a class="code" href="structDBusConnection.html">DBusConnection</a>           *connection,
00123                                                     <font class="keyword">const</font> <font class="keywordtype">char</font>               *path_name,
00124                                                     <font class="keyword">const</font> <font class="keywordtype">char</font>               *interface_name);
00125 <font class="keywordtype">void</font>             dbus_gproxy_connect_signal        (DBusGProxy               *proxy,
00126                                                     <font class="keyword">const</font> <font class="keywordtype">char</font>               *signal_name,
00127                                                     DBusGProxySignalHandler   handler,
00128                                                     <font class="keywordtype">void</font>                     *data,
00129                                                     GClosureNotify            free_data_func);
00130 <font class="keywordtype">void</font>             dbus_gproxy_disconnect_signal     (DBusGProxy               *proxy,
00131                                                     <font class="keyword">const</font> <font class="keywordtype">char</font>               *signal_name,
00132                                                     DBusGProxySignalHandler   handler,
00133                                                     <font class="keywordtype">void</font>                     *data);
00134 <a class="code" href="structDBusPendingCall.html">DBusPendingCall</a>* dbus_gproxy_begin_call            (DBusGProxy               *proxy,
00135                                                     <font class="keyword">const</font> <font class="keywordtype">char</font>               *method,
00136                                                     <font class="keywordtype">int</font>                       first_arg_type,
00137                                                     ...);
00138 gboolean         dbus_gproxy_end_call              (DBusGProxy               *proxy,
00139                                                     <a class="code" href="structDBusPendingCall.html">DBusPendingCall</a>          *pending,
00140                                                     GError                  **error,
00141                                                     <font class="keywordtype">int</font>                       first_arg_type,
00142                                                     ...);
00143 <font class="keywordtype">void</font>             dbus_gproxy_call_no_reply         (DBusGProxy               *proxy,
00144                                                     <font class="keyword">const</font> <font class="keywordtype">char</font>               *method,
00145                                                     <font class="keywordtype">int</font>                       first_arg_type,
00146                                                     ...);
00147 <font class="keywordtype">void</font>             dbus_gproxy_send                  (DBusGProxy               *proxy,
00148                                                     <a class="code" href="structDBusMessage.html">DBusMessage</a>              *message,
00149                                                     dbus_uint32_t            *client_serial);
00150 
00151 
00152 <font class="preprocessor">#undef DBUS_INSIDE_DBUS_GLIB_H</font>
00153 <font class="preprocessor"></font>
00154 G_END_DECLS
00155 
00156 <font class="preprocessor">#endif </font><font class="comment">/* DBUS_GLIB_H */</font>
00157 
00158 
00159 
</pre></div><hr><address align="right"><small>Generated on Wed Jun 9 05:01:25 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>