From 306163dcd7d8bc08d2302ae54d947694823a813f Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Sun, 18 Jan 2009 19:27:40 +0000 Subject: [PATCH] Seek class should reside in the same place as HTTPResponse. svn path=/trunk/; revision=448 --- src/rygel/rygel-http-response.vala | 37 +++++++++++++++++++++++++++++++++++++ src/rygel/rygel-http-server.vala | 36 ------------------------------------ 2 files changed, 37 insertions(+), 36 deletions(-) diff --git a/src/rygel/rygel-http-response.vala b/src/rygel/rygel-http-response.vala index 7815284..5641c9b 100644 --- a/src/rygel/rygel-http-response.vala +++ b/src/rygel/rygel-http-response.vala @@ -23,6 +23,8 @@ * version 2 of the License, or (at your option) any later version. */ +using Gst; + public class Rygel.HTTPResponse : GLib.Object { public Soup.Server server { get; private set; } protected Soup.Message msg; @@ -71,3 +73,38 @@ public class Rygel.HTTPResponse : GLib.Object { } } +public class Rygel.Seek : GLib.Object { + public Format format { get; private set; } + + private int64 _start; + public int64 start { + get { + return this._start; + } + set { + this._start = value; + this.length = stop - start + 1; + } + } + + private int64 _stop; + public int64 stop { + get { + return this._stop; + } + set { + this._stop = value; + this.length = stop - start + 1; + } + } + + public int64 length { get; private set; } + + public Seek (Format format, + int64 start, + int64 stop) { + this.format = format; + this.start = start; + this.stop = stop; + } +} diff --git a/src/rygel/rygel-http-server.vala b/src/rygel/rygel-http-server.vala index 71aadfd..d8922f6 100644 --- a/src/rygel/rygel-http-server.vala +++ b/src/rygel/rygel-http-server.vala @@ -332,39 +332,3 @@ public class Rygel.HTTPServer : GLib.Object { } } -public class Rygel.Seek : GLib.Object { - public Format format { get; private set; } - - private int64 _start; - public int64 start { - get { - return this._start; - } - set { - this._start = value; - this.length = stop - start + 1; - } - } - - private int64 _stop; - public int64 stop { - get { - return this._stop; - } - set { - this._stop = value; - this.length = stop - start + 1; - } - } - - public int64 length { get; private set; } - - public Seek (Format format, - int64 start, - int64 stop) { - this.format = format; - this.start = start; - this.stop = stop; - } -} - -- 2.7.4