[cheese/threezero] create libcheese directory with basic boilerplate
- From: Daniel G. Siegel <dgsiegel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [cheese/threezero] create libcheese directory with basic boilerplate
- Date: Sat, 21 Nov 2009 19:05:09 +0000 (UTC)
commit 1054824617f3a0e79a7022df79d4609f12bb6fb9
Author: daniel g. siegel <siegel in tum de>
Date: Sat Nov 21 20:01:57 2009 +0100
create libcheese directory with basic boilerplate
.gitignore | 3 +++
Makefile.am | 2 +-
configure.ac | 1 +
libcheese/Makefile.am | 18 ++++++++++++++++++
libcheese/libcheese-camera.c | 42 ++++++++++++++++++++++++++++++++++++++++++
libcheese/libcheese-camera.h | 30 ++++++++++++++++++++++++++++++
6 files changed, 95 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 33a6323..82709fa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,7 @@
*.o
+*.lo
+*.la
+.libs
*.desktop
*.desktop.in
*.gmo
diff --git a/Makefile.am b/Makefile.am
index 3a3f9ee..1b696a3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = src po data help
+SUBDIRS = po help data libcheese src
EXTRA_DIST = \
$(cheesedoc_DATA) \
diff --git a/configure.ac b/configure.ac
index c91af8f..9a55db6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -151,6 +151,7 @@ data/pixmaps/Makefile
data/sounds/Makefile
help/Makefile
src/Makefile
+libcheese/Makefile
po/Makefile.in
])
diff --git a/libcheese/Makefile.am b/libcheese/Makefile.am
new file mode 100644
index 0000000..0eedb73
--- /dev/null
+++ b/libcheese/Makefile.am
@@ -0,0 +1,18 @@
+INCLUDES = \
+ -DBINDIR=\"$(bindir)\" \
+ -DDATADIR=\"$(datadir)\" \
+ -DPREFIX=\""$(prefix)"\" \
+ -DSYSCONFDIR=\""$(sysconfdir)"\" \
+ -DLIBDIR=\""$(libdir)"\" \
+ -DPACKAGE_DATADIR=\""$(datadir)/cheese"\" \
+ -DPACKAGE_LOCALEDIR=\""$(datadir)/locale"\" \
+ -DAPPNAME_DATA_DIR=\"$(pkgdatadir)\" \
+ -DGNOME_DESKTOP_USE_UNSTABLE_API=1 \
+ $(CHEESE_CFLAGS)
+
+lib_LTLIBRARIES = libcheese.la
+
+libcheese_la_SOURCES = \
+ libcheese-camera.c \
+ libcheese-camera.h \
+ $(NULL)
diff --git a/libcheese/libcheese-camera.c b/libcheese/libcheese-camera.c
new file mode 100644
index 0000000..e8b16f0
--- /dev/null
+++ b/libcheese/libcheese-camera.c
@@ -0,0 +1,42 @@
+#include <gst/gst.h>
+
+#include "libcheese-camera.h"
+
+G_DEFINE_TYPE (LibCheeseCamera, libcheese_camera, G_TYPE_OBJECT)
+
+#define LIBCHEESE_CAMERA_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), LIBCHEESE_TYPE_CAMERA, LibCheeseCameraPrivate))
+
+typedef struct
+{
+} LibCheeseCameraPrivate;
+
+
+static void
+libcheese_camera_finalize (GObject *object)
+{
+ G_OBJECT_CLASS (libcheese_camera_parent_class)->finalize (object);
+}
+
+static void
+libcheese_camera_class_init (LibCheeseCameraClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ object_class->finalize = libcheese_camera_finalize;
+
+ g_type_class_add_private (klass, sizeof (LibCheeseCameraPrivate));
+}
+
+static void
+libcheese_camera_init (LibCheeseCamera *camera)
+{
+ LibCheeseCameraPrivate *priv = LIBCHEESE_CAMERA_GET_PRIVATE(camera);
+
+}
+
+LibCheeseCamera *
+libcheese_camera_new (void)
+{
+return;
+}
+
diff --git a/libcheese/libcheese-camera.h b/libcheese/libcheese-camera.h
new file mode 100644
index 0000000..92c4034
--- /dev/null
+++ b/libcheese/libcheese-camera.h
@@ -0,0 +1,30 @@
+#ifndef __LIBCHEESE_CAMERA_H__
+#define __LIBCHEESE_CAMERA_H__
+
+#include <glib-object.h>
+#include <gst/interfaces/xoverlay.h>
+
+G_BEGIN_DECLS
+
+#define LIBCHEESE_TYPE_CAMERA (libcheese_camera_get_type ())
+#define LIBCHEESE_CAMERA(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), LIBCHEESE_TYPE_CAMERA, LibCheeseCamera))
+#define LIBCHEESE_CAMERA_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), LIBCHEESE_TYPE_CAMERA, LibCheeseCameraClass))
+#define CHEESE_IS_WEBCAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), LIBCHEESE_TYPE_CAMERA))
+#define CHEESE_IS_WEBCAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), LIBCHEESE_TYPE_CAMERA))
+#define LIBCHEESE_CAMERA_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), LIBCHEESE_TYPE_CAMERA, LibCheeseCameraClass))
+
+typedef struct
+{
+ GObject parent;
+} LibCheeseCamera;
+
+typedef struct
+{
+ GObjectClass parent_class;
+} LibCheeseCameraClass;
+
+
+GType libcheese_camera_get_type (void);
+G_END_DECLS
+
+#endif /* __LIBCHEESE_CAMERA_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]