Return-Path: From: Bharat Panda To: linux-bluetooth@vger.kernel.org Cc: cpgs@samsung.com, Bharat Panda Subject: [PATCH ] obexd/ftp: Handle transfer reset for FTP Date: Fri, 31 Oct 2014 21:16:47 +0530 Message-id: <1414770407-11485-1-git-send-email-bharat.panda@samsung.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Changes made to emit transfer completed to .Transfer1 interface on ftp reset. --- obexd/plugins/ftp.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/obexd/plugins/ftp.c b/obexd/plugins/ftp.c index 4c35467..e255f48 100644 --- a/obexd/plugins/ftp.c +++ b/obexd/plugins/ftp.c @@ -494,6 +494,13 @@ static void ftp_progress(struct obex_session *os, void *user_data) manager_emit_transfer_progress(ftp->transfer); } +static void ftp_reset(struct obex_session *os, void *user_data) +{ + struct ftp_session *ftp = user_data; + + manager_emit_transfer_completed(ftp->transfer); +} + static struct obex_service_driver ftp = { .name = "File Transfer server", .service = OBEX_FTP, @@ -506,7 +513,8 @@ static struct obex_service_driver ftp = { .chkput = ftp_chkput, .setpath = ftp_setpath, .action = ftp_action, - .disconnect = ftp_disconnect + .disconnect = ftp_disconnect, + .reset = ftp_reset }; static int ftp_init(void) -- 1.9.1