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", "reset-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", "GstEventSegment",
41 "GstEventBufferSize", "GstEventQOS", "GstEventSeek", "GstEventLatency",
42 "GstMessageError", "GstMessageWarning", "GstMessageInfo",
43 "GstMessageBuffering", "GstMessageState", "GstMessageClockProvide",
44 "GstMessageClockLost", "GstMessageNewClock", "GstMessageStructureChange",
45 "GstMessageSegmentStart", "GstMessageSegmentDone", "GstMessageDuration",
46 "GstMessageAsyncDone", "GstMessageRequestState", "GstMessageStreamStatus",
47 "GstQueryPosition", "GstQueryDuration", "GstQueryLatency", "GstQueryConvert",
48 "GstQuerySegment", "GstQuerySeeking", "GstQueryFormats", "GstQueryBuffering",
49 "GstQueryURI", "GstEventStep", "GstMessageStepDone", "amount", "flush",
50 "intermediate", "GstMessageStepStart", "active", "eos", "sink-message",
51 "message", "GstMessageQOS", "running-time", "stream-time", "jitter",
52 "quality", "processed", "dropped", "buffering-ranges", "GstMessageProgress",
53 "code", "text", "percent", "timeout", "GstBufferPoolConfig", "caps", "size",
54 "min-buffers", "max-buffers", "prefix", "postfix", "align", "time",
55 "GstQueryAllocation", "need-pool", "meta", "pool", "GstEventCaps",
56 "GstEventReconfigure", "segment", "GstQueryScheduling", "pull-mode",
57 "random-access", "sequential", "allocator", "GstEventFlushStop", "options",
58 "GstQueryAcceptCaps", "result"
61 GQuark _priv_gst_quark_table[GST_QUARK_MAX];
64 _priv_gst_quarks_initialize (void)
68 if (G_N_ELEMENTS (_quark_strings) != GST_QUARK_MAX)
69 g_warning ("the quark table is not consistent! %d != %d",
70 (int) G_N_ELEMENTS (_quark_strings), GST_QUARK_MAX);
72 for (i = 0; i < GST_QUARK_MAX; i++) {
73 _priv_gst_quark_table[i] = g_quark_from_static_string (_quark_strings[i]);