Merging gst-plugins-ugly
[platform/upstream/gstreamer.git] / ext / cdio / gstcdio.h
1 /* GStreamer
2  * Copyright (C) 1999 Erik Walthinsen <omega@cse.ogi.edu>
3  * Copyright (C) 2006 Tim-Philipp Müller <tim centricular net>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20
21 #ifndef __GST_CDIO_H__
22 #define __GST_CDIO_H__
23
24 #include <gst/gst.h>
25 #include <cdio/cdio.h>
26 #include <cdio/cdtext.h>
27 #include <cdio/logging.h>
28
29 #if LIBCDIO_VERSION_NUM <= 83 && LIBCDIO_VERSION_NUM >= 76
30   #define CDTEXT_FIELD_PERFORMER CDTEXT_PERFORMER
31   #define CDTEXT_FIELD_GENRE     CDTEXT_GENRE
32   #define CDTEXT_FIELD_TITLE     CDTEXT_TITLE
33 #endif
34
35
36 void     gst_cdio_add_cdtext_field (GstObject      * src,
37                                     cdtext_t       * cdtext,
38                                     track_t          track,
39                                     cdtext_field_t   field,
40                                     const gchar    * gst_tag,
41                                     GstTagList    ** p_tags);
42
43 GstTagList  * gst_cdio_get_cdtext  (GstObject      * src,
44 #if LIBCDIO_VERSION_NUM > 83 || LIBCDIO_VERSION_NUM < 76
45                                     cdtext_t       * t,
46 #else
47                                     CdIo           * cdio,
48 #endif
49                                     track_t          track);
50
51 void      gst_cdio_add_cdtext_album_tags (GstObject  * src,
52 #if LIBCDIO_VERSION_NUM > 83 || LIBCDIO_VERSION_NUM < 76
53                                           cdtext_t   * t,
54 #else
55                                           CdIo       * cdio,
56 #endif
57                                           GstTagList * tags);
58 void gst_cdio_log_handler (cdio_log_level_t level, const char *msg);
59
60 #endif /* __GST_CDIO_H__ */
61