diff options
author | Dan Winship <danw@gnome.org> | 2012-11-08 11:28:39 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-11-08 11:28:39 -0500 |
commit | 69c489d590ddeb7d532ddb99943e0990173a8110 (patch) | |
tree | 859b21c742754bfd2cb7a39631eaed20802a4cec /libsoup/soup-content-sniffer.c | |
parent | da70b77bdc45e9d6e3fd3ee76c6fec3fb4e8ba73 (diff) | |
download | libsoup-69c489d590ddeb7d532ddb99943e0990173a8110.tar.gz |
Add per-version deprecation/availability warnings
Add SOUP_VERSION_X_XX, SOUP_VERSION_MIN_REQUIRED, and
SOUP_VERSION_MAX_ALLOWED, to enable version-based warnings.
Tag all functions with appropriate SOUP_AVAILABLE_IN_ and
SOUP_DEPRECATED_IN_ macros.
Also, fix up some "Since" tags to not refer to unstable releases or
non-.0 point releases.
Diffstat (limited to 'libsoup/soup-content-sniffer.c')
-rw-r--r-- | libsoup/soup-content-sniffer.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c index 012c0dc0..e8f69d47 100644 --- a/libsoup/soup-content-sniffer.c +++ b/libsoup/soup-content-sniffer.c @@ -28,7 +28,7 @@ * content sniffing to a session with soup_session_add_feature() or * soup_session_add_feature_by_type(). * - * Since: 2.27.3 + * Since: 2.28 **/ static void soup_content_sniffer_session_feature_init (SoupSessionFeatureInterface *feature_interface, gpointer interface_data); @@ -567,7 +567,7 @@ soup_content_sniffer_session_feature_init (SoupSessionFeatureInterface *feature_ * * Returns: a new #SoupContentSniffer * - * Since: 2.27.3 + * Since: 2.28 **/ SoupContentSniffer * soup_content_sniffer_new () @@ -589,6 +589,8 @@ soup_content_sniffer_new () * * Return value: the sniffed Content-Type of @buffer; this will never be %NULL, * but may be "application/octet-stream". + * + * Since: 2.28 */ char * soup_content_sniffer_sniff (SoupContentSniffer *sniffer, @@ -602,6 +604,17 @@ soup_content_sniffer_sniff (SoupContentSniffer *sniffer, return SOUP_CONTENT_SNIFFER_GET_CLASS (sniffer)->sniff (sniffer, msg, buffer, params); } +/** + * soup_content_sniffer_get_buffer_size: + * @sniffer: a #SoupContentSniffer + * + * Gets the number of bytes @sniffer needs in order to properly sniff + * a buffer. + * + * Return value: the number of bytes to sniff + * + * Since: 2.28 + */ gsize soup_content_sniffer_get_buffer_size (SoupContentSniffer *sniffer) { |