return transfer->id;
}
+
+gboolean g_obex_cancel_transfer(guint id)
+{
+ struct transfer *transfer = NULL;
+ GSList *l;
+
+ for (l = transfers; l != NULL; l = g_slist_next(l)) {
+ struct transfer *t = l->data;
+ if (t->id == id) {
+ transfer = t;
+ break;
+ }
+ }
+
+ if (transfer == NULL)
+ return FALSE;
+
+ transfer_free(transfer);
+ return TRUE;
+}
GObexDataProducer data_func, GObexFunc complete_func,
gpointer user_data, GError **err);
+gboolean g_obex_cancel_transfer(guint id);
+
#endif /* __GOBEX_TRANSFER_H_ */