rygel r346 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r346 - trunk/src/rygel
- Date: Sun, 14 Dec 2008 20:22:28 +0000 (UTC)
Author: zeeshanak
Date: Sun Dec 14 20:22:28 2008
New Revision: 346
URL: http://svn.gnome.org/viewvc/rygel?rev=346&view=rev
Log:
Add method to detect if stream has been accepted.
Modified:
trunk/src/rygel/rygel-stream.vala
Modified: trunk/src/rygel/rygel-stream.vala
==============================================================================
--- trunk/src/rygel/rygel-stream.vala (original)
+++ trunk/src/rygel/rygel-stream.vala Sun Dec 14 20:22:28 2008
@@ -52,6 +52,10 @@
this.msg.set_status (Soup.KnownStatusCode.NOT_FOUND);
}
+ public bool accepted () {
+ return this.msg.status_code == Soup.KnownStatusCode.OK;
+ }
+
public void set_mime_type (string mime_type) {
this.msg.response_headers.append ("Content-Type", mime_type);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]