[libsoup/content-sniffing] Fix soup_content_sniffer_sniff return value
- From: Gustavo Noronha Silva <gns src gnome org>
- To: svn-commits-list gnome org
- Subject: [libsoup/content-sniffing] Fix soup_content_sniffer_sniff return value
- Date: Sat, 20 Jun 2009 22:58:20 -0400 (EDT)
commit 780e6618527232770cbbb779285d281c4d7c5d5a
Author: Gustavo Noronha Silva <gns gnome org>
Date: Sat Jun 20 23:58:00 2009 -0300
Fix soup_content_sniffer_sniff return value
libsoup/soup-content-sniffer.c | 8 ++++----
libsoup/soup-content-sniffer.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c
index 02b453b..e87f470 100644
--- a/libsoup/soup-content-sniffer.c
+++ b/libsoup/soup-content-sniffer.c
@@ -80,13 +80,13 @@ soup_content_sniffer_new ()
return g_object_new (SOUP_TYPE_CONTENT_SNIFFER, NULL);
}
-void
+char *
soup_content_sniffer_sniff (SoupContentSniffer *sniffer,
SoupMessage *msg, SoupBuffer *buffer)
{
- g_return_if_fail (SOUP_IS_CONTENT_SNIFFER (sniffer));
- g_return_if_fail (SOUP_IS_MESSAGE (msg));
- g_return_if_fail (buffer != NULL);
+ g_return_val_if_fail (SOUP_IS_CONTENT_SNIFFER (sniffer), NULL);
+ g_return_val_if_fail (SOUP_IS_MESSAGE (msg), NULL);
+ g_return_val_if_fail (buffer != NULL, NULL);
return SOUP_CONTENT_SNIFFER_GET_CLASS (sniffer)->sniff (sniffer, msg, buffer);
}
diff --git a/libsoup/soup-content-sniffer.h b/libsoup/soup-content-sniffer.h
index ad2116a..bfcc2e8 100644
--- a/libsoup/soup-content-sniffer.h
+++ b/libsoup/soup-content-sniffer.h
@@ -46,7 +46,7 @@ GType soup_content_sniffer_get_type (void);
SoupContentSniffer *soup_content_sniffer_new (void);
-void soup_content_sniffer_sniff (SoupContentSniffer *sniffer,
+char *soup_content_sniffer_sniff (SoupContentSniffer *sniffer,
SoupMessage *msg,
SoupBuffer *buffer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]