00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
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