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., 51 Franklin St, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
23 #include "gst_private.h"
25 #include "gstelementmetadata.h"
27 /* These strings must match order and number declared in the GstQuarkId
28 * enum in gstquark.h! */
29 static const gchar *_quark_strings[] = {
30 "format", "current", "duration", "rate",
31 "seekable", "segment-start", "segment-end",
32 "src_format", "src_value", "dest_format", "dest_value",
33 "start_format", "start_value", "stop_format", "stop_value",
34 "gerror", "debug", "buffer-percent", "buffering-mode",
35 "avg-in-rate", "avg-out-rate", "buffering-left",
36 "estimated-total", "old-state", "new-state", "pending-state",
37 "clock", "ready", "position", "reset-time", "live", "min-latency",
38 "max-latency", "busy", "type", "owner", "update", "applied-rate",
39 "start", "stop", "minsize", "maxsize", "async", "proportion",
40 "diff", "timestamp", "flags", "cur-type", "cur", "stop-type",
41 "latency", "uri", "object", "taglist", "GstEventSegment",
42 "GstEventBufferSize", "GstEventQOS", "GstEventSeek", "GstEventLatency",
43 "GstMessageError", "GstMessageWarning", "GstMessageInfo",
44 "GstMessageBuffering", "GstMessageStateChanged", "GstMessageClockProvide",
45 "GstMessageClockLost", "GstMessageNewClock", "GstMessageStructureChange",
46 "GstMessageSegmentStart", "GstMessageSegmentDone",
47 "GstMessageDurationChanged",
48 "GstMessageAsyncDone", "GstMessageRequestState", "GstMessageStreamStatus",
49 "GstQueryPosition", "GstQueryDuration", "GstQueryLatency", "GstQueryConvert",
50 "GstQuerySegment", "GstQuerySeeking", "GstQueryFormats", "GstQueryBuffering",
51 "GstQueryURI", "GstEventStep", "GstMessageStepDone", "amount", "flush",
52 "intermediate", "GstMessageStepStart", "active", "eos", "sink-message",
53 "message", "GstMessageQOS", "running-time", "stream-time", "jitter",
54 "quality", "processed", "dropped", "buffering-ranges", "GstMessageProgress",
55 "code", "text", "percent", "timeout", "GstBufferPoolConfig", "caps", "size",
56 "min-buffers", "max-buffers", "prefix", "padding", "align", "time",
57 "GstQueryAllocation", "need-pool", "meta", "pool", "GstEventCaps",
58 "GstEventReconfigure", "segment", "GstQueryScheduling", "pull-mode",
59 "allocator", "GstEventFlushStop", "options", "GstQueryAcceptCaps",
60 "result", "GstQueryCaps", "filter", "modes", "GstEventStreamConfig",
61 "setup-data", "stream-headers", "GstEventGap", "GstQueryDrain", "params",
62 "GstEventTocSelect", "uid", "GstQueryToc", GST_ELEMENT_METADATA_LONGNAME,
63 GST_ELEMENT_METADATA_KLASS, GST_ELEMENT_METADATA_DESCRIPTION,
64 GST_ELEMENT_METADATA_AUTHOR, "toc", "toc-entry", "updated", "extend-uid",
65 "uid", "tags", "sub-entries", "info", "GstMessageTag", "GstEventTag",
66 "GstMessageResetTime",
67 "GstMessageToc", "GstEventTocGlobal", "GstEventTocCurrent",
68 "GstEventSegmentDone",
69 "GstEventStreamStart", "stream-id", "GstQueryContext",
70 "GstMessageNeedContext", "GstMessageHaveContext", "context", "context-type",
71 "GstMessageStreamStart", "group-id", "uri-redirection",
72 "GstMessageDeviceAdded", "GstMessageDeviceRemoved", "device",
73 "uri-redirection-permanent"
76 GQuark _priv_gst_quark_table[GST_QUARK_MAX];
79 _priv_gst_quarks_initialize (void)
83 if (G_N_ELEMENTS (_quark_strings) != GST_QUARK_MAX)
84 g_warning ("the quark table is not consistent! %d != %d",
85 (int) G_N_ELEMENTS (_quark_strings), GST_QUARK_MAX);
87 for (i = 0; i < GST_QUARK_MAX; i++) {
88 _priv_gst_quark_table[i] = g_quark_from_static_string (_quark_strings[i]);