2 * Copyright (C) 2006 Jan Schmidt <thaytan@noraisin.net>
4 * gstquark.c: Registered quarks for the _priv_gst_quark_table, private to
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.
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.
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.
23 #include "gst_private.h"
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 "gerror", "debug", "buffer-percent", "buffering-mode",
34 "avg-in-rate", "avg-out-rate", "buffering-left",
35 "estimated-total", "old-state", "new-state", "pending-state",
36 "clock", "ready", "position", "new-base-time", "live", "min-latency",
37 "max-latency", "busy", "type", "owner", "update", "applied-rate",
38 "start", "stop", "minsize", "maxsize", "async", "proportion",
39 "diff", "timestamp", "flags", "cur-type", "cur", "stop-type",
40 "latency", "uri", "object", "taglist", "GstEventNewsegment",
41 "GstEventBufferSize", "GstEventQOS", "GstEventSeek", "GstEventLatency",
42 "GstMessageError", "GstMessageWarning", "GstMessageInfo",
43 "GstMessageBuffering", "GstMessageState", "GstMessageClockProvide",
44 "GstMessageClockLost", "GstMessageNewClock", "GstMessageStructureChange",
45 "GstMessageSegmentStart", "GstMessageSegmentDone", "GstMessageDuration",
46 "GstMessageAsyncStart", "GstMessageRequestState", "GstMessageStreamStatus",
47 "GstQueryPosition", "GstQueryDuration", "GstQueryLatency", "GstQueryConvert",
48 "GstQuerySegment", "GstQuerySeeking", "GstQueryFormats", "GstQueryBuffering",
49 "GstQueryURI", "GstEventStep", "GstMessageStepDone", "amount", "flush",
50 "intermediate", "GstMessageStepStart", "active", "eos"
53 GQuark _priv_gst_quark_table[GST_QUARK_MAX];
56 _priv_gst_quarks_initialize (void)
60 if (G_N_ELEMENTS (_quark_strings) != GST_QUARK_MAX)
61 g_warning ("the quark table is not consistent! %d != %d",
62 (int) G_N_ELEMENTS (_quark_strings), GST_QUARK_MAX);
64 for (i = 0; i < GST_QUARK_MAX; i++) {
65 _priv_gst_quark_table[i] = g_quark_from_static_string (_quark_strings[i]);