blob: e0de5c14bdbbc204f30e5d8ef8cdc7c756cc506d [file] [log] [blame]
Olivier Naudanb28313f2012-04-16 08:10:18 -04001/*
2 * GStreamer - DTMF Detection
3 *
4 * Copyright 2009 Nokia Corporation
5 * Copyright 2009 Collabora Ltd,
6 * @author: Olivier Crete <olivier.crete@collabora.co.uk>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
Sebastian Drögee6513c12013-07-14 12:12:42 +020020 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
Olivier Naudanb28313f2012-04-16 08:10:18 -040022 *
23 */
24
25#ifndef __GST_DTMF_DETECT_H__
26#define __GST_DTMF_DETECT_H__
27
28#include <gst/gst.h>
29#include <gst/base/gstbasetransform.h>
30
Sebastian Drögee6513c12013-07-14 12:12:42 +020031#include <spandsp.h>
Olivier Naudanb28313f2012-04-16 08:10:18 -040032
33G_BEGIN_DECLS
34
35/* #define's don't like whitespacey bits */
36#define GST_TYPE_DTMF_DETECT \
37 (gst_dtmf_detect_get_type())
38#define GST_DTMF_DETECT(obj) \
39 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
40 GST_TYPE_DTMF_DETECT,GstDtmfDetect))
41#define GST_DTMF_DETECT_CLASS(klass) \
42 (G_TYPE_CHECK_CLASS_CAST((klass), \
43 GST_TYPE_DTMF_DETECT,GstDtmfDetectClass))
44#define GST_IS_DTMF_DETECT(obj) \
45 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DTMF_DETECT))
46#define GST_IS_DTMF_DETECT_CLASS(obj) \
47 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DTMF_DETECT))
48
49typedef struct _GstDtmfDetect GstDtmfDetect;
50typedef struct _GstDtmfDetectClass GstDtmfDetectClass;
51typedef struct _GstDtmfDetectPrivate GstDtmfDetectPrivate;
52
53struct _GstDtmfDetect
54{
55 GstBaseTransform parent;
56
Sebastian Drögee6513c12013-07-14 12:12:42 +020057 dtmf_rx_state_t *dtmf_state;
Olivier Naudanb28313f2012-04-16 08:10:18 -040058};
59
60struct _GstDtmfDetectClass
61{
62 GstBaseTransformClass parent_class;
63};
64
65GType gst_dtmf_detect_get_type (void);
66
67gboolean gst_dtmf_detect_plugin_init (GstPlugin *plugin);
68
69G_END_DECLS
70
71#endif /* __GST_DTMF_DETECT_H__ */