mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-06 03:23:26 +08:00
obexd: Export session_get and minior fix on get_xfer_listing_progess
This commit is contained in:
parent
18c8d81de1
commit
70f6779621
@ -1073,9 +1073,15 @@ static void get_xfer_listing_progress(GwObexXfer *xfer,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
complete:
|
complete:
|
||||||
if (err == 0)
|
if (err == 0) {
|
||||||
callback->func(callback->session, callback->data);
|
agent_notify_progress(session->conn, session->agent_name,
|
||||||
|
session->agent_path, session->transfer_path,
|
||||||
|
session->filled);
|
||||||
|
agent_notify_complete(session->conn, session->agent_name,
|
||||||
|
session->agent_path, session->transfer_path);
|
||||||
|
|
||||||
|
callback->func(callback->session, callback->data);
|
||||||
|
}
|
||||||
unregister_transfer(session);
|
unregister_transfer(session);
|
||||||
|
|
||||||
session_unref(callback->session);
|
session_unref(callback->session);
|
||||||
|
@ -68,6 +68,10 @@ int session_set_agent(struct session_data *session, const char *name,
|
|||||||
const char *path);
|
const char *path);
|
||||||
int session_send(struct session_data *session, const char *filename,
|
int session_send(struct session_data *session, const char *filename,
|
||||||
const char *remotename);
|
const char *remotename);
|
||||||
|
int session_get(struct session_data *session, const char *type,
|
||||||
|
const char *filename, const char *targetname,
|
||||||
|
const guint8 *apparam, gint apparam_size,
|
||||||
|
session_callback_t func);
|
||||||
int session_pull(struct session_data *session,
|
int session_pull(struct session_data *session,
|
||||||
const char *type, const char *filename,
|
const char *type, const char *filename,
|
||||||
session_callback_t function, void *user_data);
|
session_callback_t function, void *user_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user