| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#include <stdbool.h> |
| 6 |
|
| 7 |
typedef struct session session_t; |
| 8 |
struct win; |
| 9 |
struct cdbus_data; |
| 10 |
|
| 11 |
#ifdef CONFIG_DBUS |
| 12 |
#include <dbus/dbus.h> |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
static inline const char *cdbus_repr_msgtype(DBusMessage *msg) { |
| 17 |
return dbus_message_type_to_string(dbus_message_get_type(msg)); |
| 18 |
} |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
struct cdbus_data *cdbus_init(session_t *ps, const char *uniq_name); |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
void cdbus_destroy(struct cdbus_data *cd); |
| 29 |
|
| 30 |
|
| 31 |
void cdbus_ev_win_added(struct cdbus_data *cd, struct win *w); |
| 32 |
|
| 33 |
|
| 34 |
void cdbus_ev_win_destroyed(struct cdbus_data *cd, struct win *w); |
| 35 |
|
| 36 |
|
| 37 |
void cdbus_ev_win_mapped(struct cdbus_data *cd, struct win *w); |
| 38 |
|
| 39 |
|
| 40 |
void cdbus_ev_win_unmapped(struct cdbus_data *cd, struct win *w); |
| 41 |
|
| 42 |
|
| 43 |
void cdbus_ev_win_focusout(struct cdbus_data *cd, struct win *w); |
| 44 |
|
| 45 |
|
| 46 |
void cdbus_ev_win_focusin(struct cdbus_data *cd, struct win *w); |
| 47 |
|
| 48 |
#else |
| 49 |
|
| 50 |
static inline void |
| 51 |
cdbus_ev_win_unmapped(struct cdbus_data *cd attr_unused, struct win *w attr_unused) { |
| 52 |
} |
| 53 |
|
| 54 |
static inline void |
| 55 |
cdbus_ev_win_mapped(struct cdbus_data *cd attr_unused, struct win *w attr_unused) { |
| 56 |
} |
| 57 |
|
| 58 |
static inline void |
| 59 |
cdbus_ev_win_destroyed(struct cdbus_data *cd attr_unused, struct win *w attr_unused) { |
| 60 |
} |
| 61 |
|
| 62 |
static inline void |
| 63 |
cdbus_ev_win_added(struct cdbus_data *cd attr_unused, struct win *w attr_unused) { |
| 64 |
} |
| 65 |
|
| 66 |
static inline void |
| 67 |
cdbus_ev_win_focusout(struct cdbus_data *cd attr_unused, struct win *w attr_unused) { |
| 68 |
} |
| 69 |
|
| 70 |
static inline void |
| 71 |
cdbus_ev_win_focusin(struct cdbus_data *cd attr_unused, struct win *w attr_unused) { |
| 72 |
} |
| 73 |
|
| 74 |
#endif |
| 75 |
|
| 76 |
|