monitor.h

Go to the documentation of this file.
00001 /*
00002  EasyDbus: DBUS Binding Library.
00003  Copyright (C) 2007  Daniele Rondina aka ge@@ru, geaaru@gmail.com 
00004 
00005  This program is free software; you can redistribute it and/or
00006  modify it under the terms of the GNU General Public License
00007  as published by the Free Software Foundation; either version 2
00008  of the License, or (at your option) any later version.
00009 
00010  This program is distributed in the hope that it will be useful,
00011  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  GNU General Public License for more details.
00014 
00015  You should have received a copy of the GNU General Public License
00016  along with this program; if not, write to the Free Software
00017  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00018 
00019  Filename:  monitor.h
00020  
00021  Description:  
00022  
00023  Version:  1.0
00024  Created:  09/18/07 10:54:33 CEST
00025  Revision:  none
00026  
00027  Author:   Daniele Rondina aka Ge@@ru (geaaru@gmail.com) 
00028  License:  GPL 2.0
00029 */
00030 
00031 #ifndef         EASYDBUS_MONITOR_H
00032 #define         EASYDBUS_MONITOR_H
00033 
00034 typedef struct EasyDbus_watcher EasyDbus_watcher;
00035 
00036 typedef void (*easydbus_watcher_add_cb_f) (EasyDbus_watcher *,
00037                                            void *);
00038 typedef void (*easydbus_watcher_remove_cb_f) (EasyDbus_watcher *,
00039                                               void *);
00040 typedef void (*easydbus_error_cb_f) (EasyDbus_conn *, void *);
00041 
00042 int 
00043 easydbus_object_main_loop (EasyDbus_conn *);
00044 
00045 int 
00046 easydbus_object_handle_message (EasyDbus_conn *, int);
00047 
00048 enum easydbus_ret_values 
00049 easydbus_watch_method_blocking (EasyDbus_conn *, 
00050                                 EasyDbus_method *, 
00051                                 int);
00052 
00053 enum easydbus_ret_values 
00054 easydbus_watch_signal_blocking (EasyDbus_conn *, 
00055                                 EasyDbus_signal *, 
00056                                 int);
00057 
00058 int 
00059 easydbus_watcher_enable (EasyDbus_conn *,
00060                          easydbus_watcher_add_cb_f,
00061                          easydbus_watcher_remove_cb_f, 
00062                          void *);
00063 
00064 int 
00065 easydbus_watcher_remove (EasyDbus_conn *);
00066 
00067 int *
00068 easydbus_watcher_get_fd_list (EasyDbus_conn *, int *);
00069 
00070 int 
00071 easydbus_watcher_get_fd (EasyDbus_watcher *);
00072 
00073 unsigned int
00074 easydbus_watcher_get_flags (EasyDbus_watcher *);
00075 
00076 int 
00077 easydbus_conn_set_error_cb (EasyDbus_conn *, 
00078                             easydbus_error_cb_f, void *);
00079 
00080 
00081 inline EasyDbus_conn *
00082 easydbus_watcher_get_conn (EasyDbus_watcher *);
00083 #endif
00084 // vim: ts=3 shiftwidth=3 expandtab

Generated on Thu Apr 10 10:00:18 2008 for EasyDbus-0.2 by  doxygen 1.5.4