EAPI void e_notification_get_server_information(E_DBus_Callback_Func func, void *data) { DBusMessage *msg; msg = e_notify_marshal_get_server_information(); e_dbus_method_call_send(client_conn, msg, e_notify_unmarshal_get_server_information_return, func, e_notify_free_get_server_information_return, -1, data); dbus_message_unref(msg); }
/**** client api ****/ EAPI void e_notification_send(E_Notification *n, E_DBus_Callback_Func func, void *data) { DBusMessage *msg; msg = e_notify_marshal_notify(n); e_dbus_method_call_send(client_conn, msg, e_notify_unmarshal_notify_return, func, e_notify_free_notify_return, -1, data); dbus_message_unref(msg); }
EAPI DBusPendingCall * e_hal_device_get_all_properties(E_DBus_Connection *conn, const char *udi, E_DBus_Callback_Func cb_func, void *data) { DBusMessage *msg; DBusPendingCall *ret; msg = e_hal_device_call_new(udi, "GetAllProperties"); ret = e_dbus_method_call_send(conn, msg, unmarshal_device_get_all_properties, cb_func, free_device_get_all_properties, -1, data); dbus_message_unref(msg); return ret; }
EAPI DBusPendingCall * e_hal_device_get_property(E_DBus_Connection *conn, const char *udi, const char *property, E_DBus_Callback_Func cb_func, void *data) { DBusMessage *msg; DBusPendingCall *ret; msg = e_hal_device_call_new(udi, "GetProperty"); dbus_message_append_args(msg, DBUS_TYPE_STRING, &property, DBUS_TYPE_INVALID); ret = e_dbus_method_call_send(conn, msg, unmarshal_device_get_property, cb_func, free_device_get_property, -1, data); dbus_message_unref(msg); return ret; }
static void _battery_fso_get_capacity(void *data) { DBusMessage *msg; if( conn ) { msg = dbus_message_new_method_call( "org.freesmartphone.odeviced", "/org/freesmartphone/Device/PowerSupply", "org.freesmartphone.Device.PowerSupply", "GetCapacity" ); if( msg ) { e_dbus_method_call_send( conn, msg, _battery_fso_capacity_unmarshall, _battery_fso_capacity_callback, _battery_fso_result_free, -1, data); dbus_message_unref(msg); } } }