|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __G729_DECODER_INTERFACE__H |
|
20 #define __G729_DECODER_INTERFACE__H |
|
21 |
|
22 #include <glib.h> |
|
23 #include <gst/gstelement.h> |
|
24 #include <gst/gstpluginfeature.h> |
|
25 #include <gst/gst.h> |
|
26 #include <glib-object.h> |
|
27 |
|
28 G_BEGIN_DECLS |
|
29 |
|
30 #define GST_TYPE_G729_DECODER (gst_g729_decoder_get_type ()) |
|
31 #define GST_G729_DECODER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_G729_DECODER, GstG729Decoder)) |
|
32 #define GST_G729_DECODER_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GST_TYPE_G729_DECODER, GstG729DecoderIntfc)) |
|
33 #define GST_IS_G729_DECODER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_G729_DECODER)) |
|
34 #define GST_IS_G729_DECODER_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GST_TYPE_G729_DECODER)) |
|
35 #define GST_G729_DECODER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_G729_DECODER, GstG729DecoderIntfc)) |
|
36 |
|
37 typedef struct _GstG729Decoder GstG729Decoder; |
|
38 typedef struct _GstG729DecoderIntfc GstG729DecoderIntfc; |
|
39 |
|
40 |
|
41 /** |
|
42 * Interface for G729 decoder. |
|
43 * This abstract class just provides the static NewL function for the creation |
|
44 * of the proxy, and also defines the custom interface to be implemented by the |
|
45 * proxy and the real custom interface implementation. |
|
46 * |
|
47 */ |
|
48 |
|
49 struct _GstG729DecoderIntfc |
|
50 { |
|
51 GTypeInterface parent; |
|
52 gint (*BadLsfNextBuffer)(); |
|
53 }; |
|
54 |
|
55 IMPORT_C GType gst_g729_decoder_get_type(void); |
|
56 |
|
57 G_END_DECLS |
|
58 |
|
59 #endif /* __G711_DECODER_INTERFACE__ */ |