<!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-watch.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> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>dbus-watch.h</h1><div class="fragment"><pre>00001 <font class="comment">/* -*- mode: C; c-file-style: "gnu" -*- */</font> 00002 <font class="comment">/* dbus-watch.h DBusWatch internal interfaces</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_WATCH_H</font> 00024 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_WATCH_H</font> 00025 <font class="preprocessor"></font> 00026 <font class="preprocessor">#include <dbus/dbus-internals.h></font> 00027 <font class="preprocessor">#include <dbus/dbus-connection.h></font> 00028 00029 DBUS_BEGIN_DECLS; 00030 00031 <font class="comment">/* Public methods on DBusWatch are in dbus-connection.h */</font> 00032 <a name="l00033"></a><a class="code" href="group__DBusWatchInternals.html#a12">00033</a> <font class="keyword">typedef</font> <font class="keyword">struct </font><a class="code" href="structDBusWatchList.html">DBusWatchList</a> DBusWatchList; 00034 00035 <font class="keyword">typedef</font> dbus_bool_t (* DBusWatchHandler) (<a class="code" href="structDBusWatch.html">DBusWatch</a> *watch, 00036 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> flags, 00037 <font class="keywordtype">void</font> *data); 00038 00039 <a class="code" href="structDBusWatch.html">DBusWatch</a>* _dbus_watch_new (<font class="keywordtype">int</font> fd, 00040 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> flags, 00041 dbus_bool_t enabled, 00042 DBusWatchHandler handler, 00043 <font class="keywordtype">void</font> *data, 00044 DBusFreeFunction free_data_function); 00045 <a class="code" href="structDBusWatch.html">DBusWatch</a>* _dbus_watch_ref (<a class="code" href="structDBusWatch.html">DBusWatch</a> *watch); 00046 <font class="keywordtype">void</font> _dbus_watch_unref (<a class="code" href="structDBusWatch.html">DBusWatch</a> *watch); 00047 <font class="keywordtype">void</font> _dbus_watch_invalidate (<a class="code" href="structDBusWatch.html">DBusWatch</a> *watch); 00048 <font class="keywordtype">void</font> _dbus_watch_sanitize_condition (<a class="code" href="structDBusWatch.html">DBusWatch</a> *watch, 00049 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> *condition); 00050 <font class="keywordtype">void</font> _dbus_watch_set_handler (<a class="code" href="structDBusWatch.html">DBusWatch</a> *watch, 00051 DBusWatchHandler handler, 00052 <font class="keywordtype">void</font> *data, 00053 DBusFreeFunction free_data_function); 00054 00055 00056 DBusWatchList* _dbus_watch_list_new (<font class="keywordtype">void</font>); 00057 <font class="keywordtype">void</font> _dbus_watch_list_free (DBusWatchList *watch_list); 00058 dbus_bool_t _dbus_watch_list_set_functions (DBusWatchList *watch_list, 00059 DBusAddWatchFunction add_function, 00060 DBusRemoveWatchFunction remove_function, 00061 DBusWatchToggledFunction toggled_function, 00062 <font class="keywordtype">void</font> *data, 00063 DBusFreeFunction free_data_function); 00064 dbus_bool_t _dbus_watch_list_add_watch (DBusWatchList *watch_list, 00065 <a class="code" href="structDBusWatch.html">DBusWatch</a> *watch); 00066 <font class="keywordtype">void</font> _dbus_watch_list_remove_watch (DBusWatchList *watch_list, 00067 <a class="code" href="structDBusWatch.html">DBusWatch</a> *watch); 00068 <font class="keywordtype">void</font> _dbus_watch_list_toggle_watch (DBusWatchList *watch_list, 00069 <a class="code" href="structDBusWatch.html">DBusWatch</a> *watch, 00070 dbus_bool_t enabled); 00071 00072 00073 DBUS_END_DECLS; 00074 00075 <font class="preprocessor">#endif </font><font class="comment">/* DBUS_WATCH_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>