src/: Use intended license header
[libquvi.git] / src / _quvi_media_s.h
blob3f0fd976b7332d1521964a96f008e4645f88a962
1 /* libquvi
2 * Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA
20 #ifndef _quvi_media_s_h
21 #define _quvi_media_s_h
23 struct _quvi_media_stream_s
25 struct
27 gdouble bitrate_kbit_s;
28 GString *encoding;
29 gdouble height;
30 gdouble width;
31 } video;
32 struct
34 gdouble bitrate_kbit_s;
35 GString *encoding;
36 } audio;
37 struct
39 gboolean best;
40 } flags;
41 GString *container;
42 GString *url;
43 GString *id;
46 typedef struct _quvi_media_stream_s *_quvi_media_stream_t;
48 struct _quvi_media_s
50 struct
52 GSList *stream;
53 } curr;
54 struct
56 GString *redirect_to; /* Set in a media script ("goto_url") */
57 GString *thumbnail;
58 GString *input; /* e.g. "http://youtube.com/?watch=foo" */
59 } url;
60 struct
62 _quvi_t quvi;
63 } handle;
64 /* Other */
65 gdouble start_time_ms;
66 gdouble duration_ms;
67 GSList *streams;
68 GString *title;
69 GString *id;
72 typedef struct _quvi_media_s *_quvi_media_t;
74 #endif /* _quvi_media_s_h */
76 /* vim: set ts=2 sw=2 tw=72 expandtab: */