Seek class should reside in the same place as HTTPResponse.
authorZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Sun, 18 Jan 2009 19:27:40 +0000 (19:27 +0000)
committerZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Sun, 18 Jan 2009 19:27:40 +0000 (19:27 +0000)
svn path=/trunk/; revision=448

src/rygel/rygel-http-response.vala
src/rygel/rygel-http-server.vala

index 7815284..5641c9b 100644 (file)
@@ -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;
+    }
+}
index 71aadfd..d8922f6 100644 (file)
@@ -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;
-    }
-}
-