Beispiel #1
0
void manager_unregister_transfer(struct obex_session *os)
{
	char *path = g_strdup_printf("/transfer%u", os->id);

	/* Got an error during a transfer. */
	if (os->object)
		emit_transfer_completed(os, os->offset == os->size);

	g_dbus_unregister_interface(connection, path,
				TRANSFER_INTERFACE);

	g_free(path);
}
Beispiel #2
0
void manager_emit_transfer_completed(struct obex_transfer *transfer)
{
	struct obex_session *session;

	if (transfer == NULL)
		return;

	session = transfer->session;

	if (session == NULL || session->object == NULL)
		return;

	emit_transfer_completed(transfer, !session->aborted);
}
Beispiel #3
0
void manager_unregister_transfer(struct obex_transfer *transfer)
{
	struct obex_session *os;

	if (transfer == NULL)
		return;

	os = transfer->session;

	if (transfer->status == TRANSFER_STATUS_ACTIVE)
		emit_transfer_completed(transfer, os->offset == os->size);

	g_dbus_unregister_interface(connection, transfer->path,
							TRANSFER_INTERFACE);

	transfer_free(transfer);
}
Beispiel #4
0
void manager_emit_transfer_completed(struct obex_session *os)
{
	if (os->object)
		emit_transfer_completed(os, !os->aborted);
}