OSX, input: implement wakeup in response to Cocoa events
[mplayer.git] / osdep / cocoa_events.h
blob3f0e775e036f51181fb59a645f88176b9092b39c
1 /*
2 * Cocoa Event Handling
4 * This file is part of mplayer2.
6 * mplayer2 is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * mplayer2 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
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with mplayer2. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef MPLAYER_COCOA_EVENTS_H
21 #define MPLAYER_COCOA_EVENTS_H
23 #include "input/input.h"
25 void cocoa_events_init(struct input_ctx *ictx,
26 void (*read_all_fd_events)(struct input_ctx *ictx, int time));
27 void cocoa_events_uninit(void);
28 void cocoa_events_read_all_events(struct input_ctx *ictx, int time);
30 #endif /* MPLAYER_COCOA_EVENTS_H */