vo_gl3: call glFlush() after frame drawing is complete
[mplayer.git] / mp_fifo.h
blobaa7fde0f292c045465e671b06d8eb3a784c84e19
1 /*
2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer 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
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_MP_FIFO_H
20 #define MPLAYER_MP_FIFO_H
22 #include "bstr.h"
24 struct mp_fifo;
25 void mplayer_put_key(struct mp_fifo *fifo, int code);
26 void mplayer_put_key_utf8(struct mp_fifo *fifo, int mods, struct bstr code);
27 // Can be freed with talloc_free()
28 struct input_ctx;
29 struct MPOpts;
30 struct mp_fifo *mp_fifo_create(struct input_ctx *input, struct MPOpts *opts);
33 #ifdef IS_OLD_VO
34 #define mplayer_put_key(key) mplayer_put_key(global_vo->key_fifo, key)
35 #endif
37 #endif /* MPLAYER_MP_FIFO_H */