From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH 4/6] Add .flush callback to backup plugin
Date: Wed, 23 Feb 2011 11:54:39 +0200 [thread overview]
Message-ID: <1298454881-7941-4-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1298454881-7941-1-git-send-email-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
---
plugins/nokia-backup.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/plugins/nokia-backup.c b/plugins/nokia-backup.c
index 4a69d8f..cf17e16 100644
--- a/plugins/nokia-backup.c
+++ b/plugins/nokia-backup.c
@@ -278,6 +278,13 @@ static ssize_t backup_write(void *object, const void *buf, size_t count)
return ret;
}
+static int backup_flush(void *object)
+{
+ DBG("%p", object);
+
+ return 0;
+}
+
static struct obex_mime_type_driver backup = {
.target = FTP_TARGET,
.target_size = TARGET_SIZE,
@@ -286,6 +293,7 @@ static struct obex_mime_type_driver backup = {
.close = backup_close,
.read = backup_read,
.write = backup_write,
+ .flush = backup_flush,
};
static int backup_init(void)
--
1.7.1
next prev parent reply other threads:[~2011-02-23 9:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-23 9:54 [PATCH 1/6] Add support for pcsuite lock file Luiz Augusto von Dentz
2011-02-23 9:54 ` [PATCH 2/6] Add more debug logs for ftp driver Luiz Augusto von Dentz
2011-02-23 9:54 ` [PATCH 3/6] Add flush callback to mimetype driver Luiz Augusto von Dentz
2011-02-23 9:54 ` Luiz Augusto von Dentz [this message]
2011-02-23 9:54 ` [PATCH 5/6] Move pcsuite drivers to its own plugin Luiz Augusto von Dentz
2011-02-23 14:44 ` Johan Hedberg
2011-02-26 18:52 ` Luiz Augusto von Dentz
2011-02-23 9:54 ` [PATCH 6/6] Remove redundante check for server when checking for usb Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1298454881-7941-4-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox