[easytag/wip/et_core-refactor: 6/9] Move two more struct declarations to core_types.h
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/et_core-refactor: 6/9] Move two more struct declarations to core_types.h
- Date: Tue, 30 Dec 2014 21:07:19 +0000 (UTC)
commit 7c12ed02a4b1707bcf791db34d2438d69dcd8715
Author: David King <amigadave amigadave com>
Date: Sun Dec 28 20:08:27 2014 +0000
Move two more struct declarations to core_types.h
src/core_types.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
src/et_core.h | 49 -------------------------------------------------
2 files changed, 48 insertions(+), 49 deletions(-)
---
diff --git a/src/core_types.h b/src/core_types.h
index dbd9cb9..36e5050 100644
--- a/src/core_types.h
+++ b/src/core_types.h
@@ -70,6 +70,54 @@ typedef enum
UNKNOWN_TAG
} ET_Tag_Type;
+/*
+ * Structure containing informations of the header of file
+ * Nota: This struct was copied from an "MP3 structure", and will change later.
+ */
+typedef struct
+{
+ gint version; /* Version of bitstream (mpeg version for mp3, encoder version for ogg) */
+ gint mpeg25; /* Version is MPEG 2.5? */
+ gint layer; /* "MP3 data" */
+ gint bitrate; /* Bitrate (kb/s) */
+ gboolean variable_bitrate; /* Is a VBR file? */
+ gint samplerate; /* Samplerate (Hz) */
+ gint mode; /* Stereo, ... or channels for ogg */
+ goffset size; /* The size of file (in bytes) */
+ gint duration; /* The duration of file (in seconds) */
+ gchar *mpc_profile; /* MPC data */
+ gchar *mpc_version; /* MPC data : encoder version (also for Speex) */
+} ET_File_Info;
+
+/*
+ * EtFileHeaderFields:
+ * @description: a description of the file type, such as MP3 File
+ * @version_label: the label for the encoder version, such as MPEG
+ * @version: the encoder version (such as 2, Layer III)
+ * @bitrate: the bitrate of the file (not the bit depth of the samples)
+ * @samplerate: the sample rate of the primary audio track, generally in Hz
+ * @mode_label: the label for the audio mode, for example Mode
+ * @mode: the audio mode (stereo, mono, and so on)
+ * @size: the size of the audio file
+ * @duration: the length of the primary audio track
+ *
+ * UI-visible strings, populated by the tagging support code to be displayed in
+ * the EtFileArea.
+ */
+typedef struct
+{
+ /*< public >*/
+ gchar *description;
+ gchar *version_label;
+ gchar *version;
+ gchar *bitrate;
+ gchar *samplerate;
+ gchar *mode_label;
+ gchar *mode;
+ gchar *size;
+ gchar *duration;
+} EtFileHeaderFields;
+
G_END_DECLS
#endif /* ET_TYPES_H_ */
diff --git a/src/et_core.h b/src/et_core.h
index e8677bd..2e35c3f 100644
--- a/src/et_core.h
+++ b/src/et_core.h
@@ -50,55 +50,6 @@ struct _File_Name
};
/*
- * Structure containing informations of the header of file
- * Nota: This struct was copied from an "MP3 structure", and will change later.
- */
-typedef struct _ET_File_Info ET_File_Info;
-struct _ET_File_Info
-{
- gint version; /* Version of bitstream (mpeg version for mp3, encoder version for ogg) */
- gint mpeg25; /* Version is MPEG 2.5? */
- gint layer; /* "MP3 data" */
- gint bitrate; /* Bitrate (kb/s) */
- gboolean variable_bitrate; /* Is a VBR file? */
- gint samplerate; /* Samplerate (Hz) */
- gint mode; /* Stereo, ... or channels for ogg */
- goffset size; /* The size of file (in bytes) */
- gint duration; /* The duration of file (in seconds) */
- gchar *mpc_profile; /* MPC data */
- gchar *mpc_version; /* MPC data : encoder version (also for Speex) */
-};
-
-/*
- * EtFileHeaderFields:
- * @description: a description of the file type, such as MP3 File
- * @version_label: the label for the encoder version, such as MPEG
- * @version: the encoder version (such as 2, Layer III)
- * @bitrate: the bitrate of the file (not the bit depth of the samples)
- * @samplerate: the sample rate of the primary audio track, generally in Hz
- * @mode_label: the label for the audio mode, for example Mode
- * @mode: the audio mode (stereo, mono, and so on)
- * @size: the size of the audio file
- * @duration: the length of the primary audio track
- *
- * UI-visible strings, populated by the tagging support code to be displayed in
- * the EtFileArea.
- */
-typedef struct
-{
- /*< public >*/
- gchar *description;
- gchar *version_label;
- gchar *version;
- gchar *bitrate;
- gchar *samplerate;
- gchar *mode_label;
- gchar *mode;
- gchar *size;
- gchar *duration;
-} EtFileHeaderFields;
-
-/*
* Structure for descripting supported files
*/
typedef struct _ET_File_Description ET_File_Description;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]