[Goodies-commits] r7503 - xfburn/trunk/xfburn

David Mohr squisher at xfce.org
Mon Jun 8 07:35:32 CEST 2009


Author: squisher
Date: 2009-06-08 05:35:32 +0000 (Mon, 08 Jun 2009)
New Revision: 7503

Added:
   xfburn/trunk/xfburn/xfburn-audio-track-gst.c
   xfburn/trunk/xfburn/xfburn-audio-track-gst.h
   xfburn/trunk/xfburn/xfburn-audio-track.c
   xfburn/trunk/xfburn/xfburn-audio-track.h
Log:
Adding missing files

Added: xfburn/trunk/xfburn/xfburn-audio-track-gst.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-audio-track-gst.c	                        (rev 0)
+++ xfburn/trunk/xfburn/xfburn-audio-track-gst.c	2009-06-08 05:35:32 UTC (rev 7503)
@@ -0,0 +1,65 @@
+/* $Id$ */
+/*
+ *  Copyright (c) 2008      David Mohr (dmohr at mcbf.net)
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifdef	HAVE_CONFIG_H
+#include <config.h>
+#endif /* !HAVE_CONFIG_H */
+
+#include <libxfce4util/libxfce4util.h>
+#include "xfburn-audio-track-gst.h"
+
+/* prototypes */
+gpointer audio_track_gst_copy (gpointer boxed);
+void audio_track_gst_free (gpointer boxed);
+
+/* implementations */
+GType
+xfburn_audio_track_gst_get_type ()
+{
+  static GType type = 0;
+
+  if (type == 0) {
+    type = g_boxed_type_register_static ("XfburnAudioTrackGst", audio_track_gst_copy, audio_track_gst_free);
+  }
+
+  return type;
+}
+
+
+gpointer 
+audio_track_gst_copy (gpointer boxed)
+{
+  XfburnAudioTrackGst *copy;
+
+  copy = g_new0(XfburnAudioTrackGst, 1);
+
+  memcpy (copy, boxed, sizeof (XfburnAudioTrackGst));
+
+  return copy;
+}
+
+void 
+audio_track_gst_free (gpointer boxed)
+{
+  //XfburnAudioTrackGst *atrack = XFBURN_AUDIO_TRACK_GST (boxed);
+
+  DBG ("Freeing audio track gst");
+
+  g_free (boxed);
+}


Property changes on: xfburn/trunk/xfburn/xfburn-audio-track-gst.c
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: xfburn/trunk/xfburn/xfburn-audio-track-gst.h
===================================================================
--- xfburn/trunk/xfburn/xfburn-audio-track-gst.h	                        (rev 0)
+++ xfburn/trunk/xfburn/xfburn-audio-track-gst.h	2009-06-08 05:35:32 UTC (rev 7503)
@@ -0,0 +1,46 @@
+/* $Id$ */
+/*
+ *  Copyright (c) 2008      David Mohr (david at mcbf.net)
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __XFBURN_AUDIO_TRACK_GST_H__
+#define __XFBURN_AUDIO_TRACK_GST_H__
+
+#ifdef	HAVE_CONFIG_H
+#include <config.h>
+#endif /* !HAVE_CONFIG_H */
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <sys/types.h>
+
+G_BEGIN_DECLS
+
+#define XFBURN_TYPE_AUDIO_TRACK_GST         (xfburn_audio_track_gst_get_type ())
+#define XFBURN_AUDIO_TRACK_GST(p)           ((XfburnAudioTrackGst *) p)
+
+typedef struct {
+  int fd_in;
+  off_t size;
+} XfburnAudioTrackGst;
+
+GType xfburn_audio_track_gst_get_type ();
+
+G_END_DECLS
+
+#endif /* __XFBURN_AUDIO_TRACK_GST_H__ */


Property changes on: xfburn/trunk/xfburn/xfburn-audio-track-gst.h
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: xfburn/trunk/xfburn/xfburn-audio-track.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-audio-track.c	                        (rev 0)
+++ xfburn/trunk/xfburn/xfburn-audio-track.c	2009-06-08 05:35:32 UTC (rev 7503)
@@ -0,0 +1,71 @@
+/* $Id$ */
+/*
+ *  Copyright (c) 2008      David Mohr (dmohr at mcbf.net)
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifdef	HAVE_CONFIG_H
+#include <config.h>
+#endif /* !HAVE_CONFIG_H */
+
+#include <libxfce4util/libxfce4util.h>
+#include "xfburn-audio-track.h"
+
+/* prototypes */
+gpointer audio_track_copy (gpointer boxed);
+void audio_track_free (gpointer boxed);
+
+/* implementations */
+GType
+xfburn_audio_track_get_type ()
+{
+  static GType type = 0;
+
+  if (type == 0) {
+    type = g_boxed_type_register_static ("XfburnAudioTrack", audio_track_copy, audio_track_free);
+  }
+
+  return type;
+}
+
+
+gpointer 
+audio_track_copy (gpointer boxed)
+{
+  XfburnAudioTrack *atrack = XFBURN_AUDIO_TRACK (boxed);
+  XfburnAudioTrack *copy;
+
+  copy = g_new0(XfburnAudioTrack, 1);
+
+  memcpy (copy, boxed, sizeof (XfburnAudioTrack));
+
+  if (atrack->data)
+    copy->data = g_boxed_copy (atrack->type, atrack->data);
+
+  return copy;
+}
+
+void 
+audio_track_free (gpointer boxed)
+{
+  XfburnAudioTrack *atrack = XFBURN_AUDIO_TRACK (boxed);
+
+  DBG ("Freeing audio track");
+
+  g_boxed_free (atrack->type, atrack->data);
+
+  g_free (boxed);
+}


Property changes on: xfburn/trunk/xfburn/xfburn-audio-track.c
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: xfburn/trunk/xfburn/xfburn-audio-track.h
===================================================================
--- xfburn/trunk/xfburn/xfburn-audio-track.h	                        (rev 0)
+++ xfburn/trunk/xfburn/xfburn-audio-track.h	2009-06-08 05:35:32 UTC (rev 7503)
@@ -0,0 +1,59 @@
+/* $Id$ */
+/*
+ *  Copyright (c) 2008      David Mohr (david at mcbf.net)
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __XFBURN_AUDIO_TRACK_H__
+#define __XFBURN_AUDIO_TRACK_H__
+
+#ifdef	HAVE_CONFIG_H
+#include <config.h>
+#endif /* !HAVE_CONFIG_H */
+
+#include <glib.h>
+#include <glib-object.h>
+#include <libburn.h>
+
+G_BEGIN_DECLS
+
+#define XFBURN_TYPE_AUDIO_TRACK         (xfburn_audio_track_get_type ())
+#define XFBURN_AUDIO_TRACK(p)           ((XfburnAudioTrack *) p)
+
+typedef struct
+{
+  gchar *inputfile;
+  gint pos;
+  gchar *artist;
+  gchar *title;
+  gboolean swap;
+
+  gint length;
+
+  int sectors;
+  int fd;
+  struct burn_source *src;
+
+  /* implementations will add extra data here */
+  GType type; 
+  gpointer data; 
+} XfburnAudioTrack;
+
+GType xfburn_audio_track_get_type ();
+
+G_END_DECLS
+
+#endif /* __XFBURN_AUDIO_TRACK_H__ */


Property changes on: xfburn/trunk/xfburn/xfburn-audio-track.h
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native




More information about the Goodies-commits mailing list