1 #ifndef E_NOTIFY_PRIVATE_H
2 #define E_NOTIFY_PRIVATE_H
4 #define E_NOTIFICATION_BUS_NAME "org.freedesktop.Notifications"
5 #define E_NOTIFICATION_INTERFACE "org.freedesktop.Notifications"
6 #define E_NOTIFICATION_PATH "/org/freedesktop/Notifications"
8 #define e_notification_call_new(member) dbus_message_new_method_call(E_NOTIFICATION_BUS_NAME, E_NOTIFICATION_PATH, E_NOTIFICATION_INTERFACE, member)
10 typedef void (*E_DBus_Variant_Marshaller) (DBusMessageIter *iter, void *data);
11 #define E_DBUS_VARIANT_MARSHALLER(x) ((E_DBus_Variant_Marshaller)(x))
13 void e_notify_marshal_dict_variant(DBusMessageIter *iter, const char *key, char *type_str, E_DBus_Variant_Marshaller func, void *data);
14 void e_notify_marshal_dict_string(DBusMessageIter *iter, const char *key, const char *value);
15 void e_notify_marshal_dict_byte(DBusMessageIter *iter, const char *key, char value);
16 void e_notify_marshal_dict_int(DBusMessageIter *iter, const char *key, int value);
18 void e_notify_marshal_string_array(DBusMessageIter *iter, const char **strings);
19 void e_notify_marshal_string_list_as_array(DBusMessageIter *iter, Eina_List *strings);
20 Eina_List * e_notify_unmarshal_string_array_as_list(DBusMessageIter *iter, DBusError *err);
21 DBusMessage * e_notify_marshal_get_capabilities();
22 DBusMessage * e_notify_marshal_get_capabilities_return(DBusMessage *method_call, const char **capabilities);
23 void * e_notify_unmarshal_get_capabilities_return(DBusMessage *msg, DBusError *err);
24 void e_notify_free_get_capabilities_return(void *data);
25 DBusMessage * e_notify_marshal_get_server_information();
26 DBusMessage * e_notify_marshal_get_server_information_return(DBusMessage *method_call, const char *name, const char *vendor, const char *version, const char *spec_version);
27 void * e_notify_unmarshal_get_server_information_return(DBusMessage *msg, DBusError *err);
28 void e_notify_free_get_server_information_return(void *data);
29 DBusMessage * e_notify_marshal_close_notification(dbus_uint32_t id);
30 dbus_uint32_t e_notify_unmarshal_close_notification(DBusMessage *msg, DBusError *err);
31 DBusMessage * e_notify_marshal_notification_closed_signal(dbus_uint32_t id, dbus_uint32_t reason);
32 E_Notification_Event_Notification_Closed * e_notify_unmarshal_notification_closed_signal(DBusMessage *msg, DBusError *err);
33 DBusMessage * e_notify_marshal_action_invoked_signal(dbus_uint32_t id, const char *action_id);
34 E_Notification_Event_Action_Invoked * e_notify_unmarshal_action_invoked_signal(DBusMessage *msg, DBusError *err);
35 DBusMessage * e_notify_marshal_notify(E_Notification *n);
36 E_Notification * e_notify_unmarshal_notify(DBusMessage *msg, DBusError *err);
37 DBusMessage * e_notify_marshal_notify_return(DBusMessage *method_call, dbus_uint32_t notification_id);
38 void * e_notify_unmarshal_notify_return(DBusMessage *msg, DBusError *err);
39 void e_notify_free_notify_return(void *data);
40 void e_notify_unmarshal_notify_actions(E_Notification *n, DBusMessageIter *iter);
41 void e_notify_unmarshal_notify_hints(E_Notification *n, DBusMessageIter *iter);
42 void e_notify_marshal_hint_image(DBusMessageIter *iter, E_Notification_Image *img);
43 E_Notification_Image * e_notify_unmarshal_hint_image(DBusMessageIter *iter);
46 #ifndef E_DBUS_COLOR_DEFAULT
47 #define E_DBUS_COLOR_DEFAULT EINA_COLOR_CYAN
50 struct E_Notification_Image
65 unsigned int replaces_id;
81 E_Notification_Image *image_data;
82 E_Notification_Image *icon_data;
91 struct E_Notification_Action