obexd: Export session_get and minior fix on get_xfer_listing_progess

This commit is contained in:
Raymond Liu 2008-12-05 11:19:42 +08:00 committed by Marcel Holtmann
parent 18c8d81de1
commit 70f6779621
2 changed files with 12 additions and 2 deletions

View File

@ -1073,9 +1073,15 @@ static void get_xfer_listing_progress(GwObexXfer *xfer,
return;
complete:
if (err == 0)
callback->func(callback->session, callback->data);
if (err == 0) {
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);
session_unref(callback->session);

View File

@ -68,6 +68,10 @@ int session_set_agent(struct session_data *session, const char *name,
const char *path);
int session_send(struct session_data *session, const char *filename,
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,
const char *type, const char *filename,
session_callback_t function, void *user_data);