camorama r350 - in trunk: . src



Author: herzi
Date: Wed May 28 14:19:26 2008
New Revision: 350
URL: http://svn.gnome.org/viewvc/camorama?rev=350&view=rev

Log:
2008-05-28  Sven Herzberg  <sven imendio com>

	Added the read() based strategy

	* src/capture-strategy-read.c: (capture_strategy_read_init),
	(capture_strategy_read_class_init), (capture_strategy_read_new):
	* src/capture-strategy-read.h:


Modified:
   trunk/ChangeLog
   trunk/src/capture-strategy-read.c
   trunk/src/capture-strategy-read.h

Modified: trunk/src/capture-strategy-read.c
==============================================================================
--- trunk/src/capture-strategy-read.c	(original)
+++ trunk/src/capture-strategy-read.c	Wed May 28 14:19:26 2008
@@ -1,4 +1,4 @@
-/* This file is part of ...
+/* This file is part of camorama
  *
  * AUTHORS
  *     Sven Herzberg  <sven imendio com>
@@ -23,3 +23,24 @@
 
 #include "capture-strategy-read.h"
 
+/* GType Implementation */
+
+G_DEFINE_TYPE (CaptureStrategyRead, capture_strategy_read, G_TYPE_OBJECT);
+
+static void
+capture_strategy_read_init (CaptureStrategyRead* self)
+{}
+
+static void
+capture_strategy_read_class_init (CaptureStrategyReadClass* self_class)
+{}
+
+/* Public API */
+
+CaptureStrategy*
+capture_strategy_read_new (void)
+{
+	return g_object_new (CAMORAMA_TYPE_CAPTURE_STRATEGY_READ,
+			     NULL);
+}
+

Modified: trunk/src/capture-strategy-read.h
==============================================================================
--- trunk/src/capture-strategy-read.h	(original)
+++ trunk/src/capture-strategy-read.h	Wed May 28 14:19:26 2008
@@ -1,4 +1,4 @@
-/* This file is part of ...
+/* This file is part of camorama
  *
  * AUTHORS
  *     Sven Herzberg  <sven imendio com>
@@ -24,5 +24,25 @@
 #ifndef CAPTURE_STRATEGY_READ_H
 #define CAPTURE_STRATEGY_READ_H
 
+#include "capture-strategy.h"
+
+G_BEGIN_DECLS
+
+typedef struct _CaptureStrategyRead        CaptureStrategyRead;
+typedef struct _CaptureStrategyReadPrivate CaptureStrategyReadPrivate;
+typedef struct _CaptureStrategyReadClass   CaptureStrategyReadClass;
+
+#define CAMORAMA_TYPE_CAPTURE_STRATEGY_READ         (capture_strategy_read_get_type ())
+
+struct _CaptureStrategyRead {
+	GObject                     base_instance;
+	CaptureStrategyReadPrivate* _private;
+};
+
+struct _CaptureStrategyReadClass {
+	GObjectClass                base_class;
+};
+
+G_END_DECLS
 
 #endif /* !CAPTURE_STRATEGY_READ_H */



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