"Fossies" - the Fresh Open Source Software Archive 
Member "mozplugger-2.1.6/pipe_msg.h" (17 Apr 2014, 1683 Bytes) of package /linux/www/old/mozplugger-2.1.6.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /**
2 * This file is part of mozplugger a fork of plugger, for list of developers
3 * see the README file.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
18 */
19 #ifndef _PIPE_MSG_H_
20 #define _PIPE_MSG_H_
21
22 struct Window_msg_s
23 {
24 Window window;
25 uint32_t width;
26 uint32_t height;
27 };
28
29
30 struct Progress_msg_s
31 {
32 uint8_t done;
33 unsigned long bytes;
34 };
35
36
37 enum StateChg_e
38 {
39 STOP_REQ,
40 PLAY_REQ,
41 PAUSE_REQ
42 };
43
44 struct StateChg_msg_s
45 {
46 uint8_t stateChgReq;
47 };
48
49 /**
50 * Format of messages passed from mozplugger.so to the mozplugger helpers
51 */
52 struct PipeMsg_s
53 {
54 uint8_t msgType;
55 union
56 {
57 struct Window_msg_s window_msg;
58 struct Progress_msg_s progress_msg;
59 struct StateChg_msg_s stateChg_msg;
60 };
61 };
62
63 typedef struct PipeMsg_s PipeMsg_t;
64
65 enum PipeMsg_e
66 {
67 WINDOW_MSG,
68 PROGRESS_MSG, /* file download progress */
69 STATE_CHG_MSG, /* e.g. STOP, PAUSE, PLAY */
70 SHUTDOWN_MSG /* Shutdown - nicer that sending a SIG TERM */
71 };
72
73 #endif