Add busy field and quark for the buffering query so that the app can only use the...
[platform/upstream/gstreamer.git] / gst / gstquark.h
1 /* GStreamer
2  * Copyright (C) 2006 Jan Schmidt <thaytan@noraisin.net>
3  *
4  * gstquark.h: Private header for storing quark info 
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef __GST_QUARK_H__
23 #define __GST_QUARK_H__
24
25 /* These enums need to match the number and order
26  * of strings declared in _quark_table, in gstquark.c */
27 typedef enum _GstQuarkId
28 {
29   GST_QUARK_FORMAT = 0,
30   GST_QUARK_CURRENT = 1,
31   GST_QUARK_DURATION = 2,
32   GST_QUARK_RATE = 3,
33   GST_QUARK_SEEKABLE = 4,
34   GST_QUARK_SEGMENT_START = 5,
35   GST_QUARK_SEGMENT_END = 6,
36   GST_QUARK_SRC_FORMAT = 7,
37   GST_QUARK_SRC_VALUE = 8,
38   GST_QUARK_DEST_FORMAT = 9,
39   GST_QUARK_DEST_VALUE = 10,
40   GST_QUARK_START_FORMAT = 11,
41   GST_QUARK_START_VALUE = 12,
42   GST_QUARK_STOP_FORMAT = 13,
43   GST_QUARK_STOP_VALUE = 14,
44   GST_QUARK_GERROR = 15,
45   GST_QUARK_DEBUG = 16,
46   GST_QUARK_BUFFER_PERCENT = 17,
47   GST_QUARK_BUFFERING_MODE = 18,
48   GST_QUARK_AVG_IN_RATE = 19,
49   GST_QUARK_AVG_OUT_RATE = 20,
50   GST_QUARK_BUFFERING_LEFT = 21,
51   GST_QUARK_ESTIMATED_TOTAL = 22,
52   GST_QUARK_OLD_STATE = 23,
53   GST_QUARK_NEW_STATE = 24,
54   GST_QUARK_PENDING_STATE = 25,
55   GST_QUARK_CLOCK = 26,
56   GST_QUARK_READY = 27,
57   GST_QUARK_POSITION = 28,
58   GST_QUARK_NEW_BASE_TIME = 29,
59   GST_QUARK_LIVE = 30,
60   GST_QUARK_MIN_LATENCY = 31,
61   GST_QUARK_MAX_LATENCY = 32,
62   GST_QUARK_BUSY = 33,
63
64   GST_QUARK_MAX = 34
65 } GstQuarkId;
66
67 extern GQuark _priv_gst_quark_table[GST_QUARK_MAX];
68
69 #define GST_QUARK(q) _priv_gst_quark_table[GST_QUARK_##q]
70
71 #endif