rygel r448 - trunk/src/rygel



Author: zeeshanak
Date: Sun Jan 18 19:27:40 2009
New Revision: 448
URL: http://svn.gnome.org/viewvc/rygel?rev=448&view=rev

Log:
Seek class should reside in the same place as HTTPResponse.

Modified:
   trunk/src/rygel/rygel-http-response.vala
   trunk/src/rygel/rygel-http-server.vala

Modified: trunk/src/rygel/rygel-http-response.vala
==============================================================================
--- trunk/src/rygel/rygel-http-response.vala	(original)
+++ trunk/src/rygel/rygel-http-response.vala	Sun Jan 18 19:27:40 2009
@@ -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.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;
+    }
+}

Modified: trunk/src/rygel/rygel-http-server.vala
==============================================================================
--- trunk/src/rygel/rygel-http-server.vala	(original)
+++ trunk/src/rygel/rygel-http-server.vala	Sun Jan 18 19:27:40 2009
@@ -332,39 +332,3 @@
         }
 }
 
-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;
-    }
-}
-



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]