gstreamer_core/gst/gstquark.c
changeset 0 0e761a78d257
child 8 4a7fac7dd34a
equal deleted inserted replaced
-1:000000000000 0:0e761a78d257
       
     1 /* GStreamer
       
     2  * Copyright (C) 2006 Jan Schmidt <thaytan@noraisin.net>
       
     3  *
       
     4  * gstquark.c: Registered quarks for the _priv_gst_quark_table, private to 
       
     5  *   GStreamer
       
     6  *
       
     7  * This library is free software; you can redistribute it and/or
       
     8  * modify it under the terms of the GNU Library General Public
       
     9  * License as published by the Free Software Foundation; either
       
    10  * version 2 of the License, or (at your option) any later version.
       
    11  *
       
    12  * This library is distributed in the hope that it will be useful,
       
    13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    15  * Library General Public License for more details.
       
    16  *
       
    17  * You should have received a copy of the GNU Library General Public
       
    18  * License along with this library; if not, write to the
       
    19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    20  * Boston, MA 02111-1307, USA.
       
    21  */
       
    22 
       
    23 #include "gst_private.h"
       
    24 #include "gstquark.h"
       
    25 
       
    26 /* These strings must match order and number declared in the GstQuarkId
       
    27  * enum in gstquark.h! */
       
    28 static const gchar *_quark_strings[] = {
       
    29   "format", "current", "duration", "rate",
       
    30   "seekable", "segment-start", "segment-end",
       
    31   "src_format", "src_value", "dest_format", "dest_value",
       
    32   "start_format", "start_value", "stop_format", "stop_value"
       
    33 };
       
    34 
       
    35 GQuark _priv_gst_quark_table[GST_QUARK_MAX];
       
    36 #ifdef __SYMBIAN32__
       
    37 EXPORT_C
       
    38 #endif
       
    39 
       
    40 
       
    41 void
       
    42 _priv_gst_quarks_initialize (void)
       
    43 {
       
    44   gint i;
       
    45 
       
    46   for (i = 0; i < GST_QUARK_MAX; i++) {
       
    47     _priv_gst_quark_table[i] = g_quark_from_static_string (_quark_strings[i]);
       
    48   }
       
    49 }