gst_plugins_symbian/gst/devsound/gstspeechencoderconfig.c
changeset 2 5505e8908944
child 11 1373546e05c6
equal deleted inserted replaced
1:4c282e7dd6d3 2:5505e8908944
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
       
     3 *
       
     4 * This library is free software; you can redistribute it and/or
       
     5 * modify it under the terms of the GNU Lesser General Public
       
     6 * License as published by the Free Software Foundation; either
       
     7 * version 2 of the License, or (at your option) any later version.
       
     8 *
       
     9 * This library is distributed in the hope that it will be useful,
       
    10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    12 * Lesser General Public License for more details.
       
    13 *
       
    14 * You should have received a copy of the GNU Lesser General Public
       
    15 * License along with this library; if not, write to the
       
    16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    17 * Boston, MA 02111-1307, USA.
       
    18 *
       
    19 * Description:
       
    20 *
       
    21 */
       
    22 
       
    23 #ifdef HAVE_CONFIG_H
       
    24 #include "config.h"
       
    25 #endif
       
    26 
       
    27 #include "gstregistry.h"
       
    28 
       
    29 #include "gstspeechencoderconfig.h"
       
    30 
       
    31 #ifdef __SYMBIAN32__
       
    32 #include <glib_global.h>
       
    33 #include <gobject_global.h>
       
    34 
       
    35 #endif
       
    36 
       
    37 static void gst_speech_encoder_config_base_init (gpointer g_class);
       
    38 
       
    39 EXPORT_C GType gst_speech_encoder_config_get_type (void)
       
    40 {
       
    41   static GType speech_encoder_config_type = 0;
       
    42 
       
    43   if (G_UNLIKELY (speech_encoder_config_type == 0)) {
       
    44     static const GTypeInfo speech_encoder_config_info = {
       
    45       sizeof (GstSpeechEncoderConfigIntfc),  /* class_size */
       
    46       gst_speech_encoder_config_base_init,  /* base_init */
       
    47       NULL,                     /* base_finalize */
       
    48       NULL,
       
    49       NULL,                     /* class_finalize */
       
    50       NULL,                     /* class_data */
       
    51       0,
       
    52       0,
       
    53       NULL
       
    54     };
       
    55 
       
    56   
       
    57     speech_encoder_config_type = g_type_register_static (G_TYPE_INTERFACE, "GstSpeechEncoderConfig",
       
    58         &speech_encoder_config_info, 0);
       
    59 
       
    60   }
       
    61 
       
    62   return speech_encoder_config_type;
       
    63 }
       
    64 
       
    65 static void gst_speech_encoder_config_base_init (gpointer g_class)
       
    66     {
       
    67     static gboolean initialized = FALSE;
       
    68     
       
    69     if (G_UNLIKELY (!initialized)) 
       
    70         {
       
    71         initialized = TRUE;
       
    72         }
       
    73     }