Daniel Lezcano | 8be5260 | 2011-06-21 00:57:08 +0200 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * Copyright (C) 2010, Linaro Limited. |
| 3 | * |
| 4 | * This file is part of PowerDebug. |
| 5 | * |
| 6 | * All rights reserved. This program and the accompanying materials |
| 7 | * are made available under the terms of the Eclipse Public License v1.0 |
| 8 | * which accompanies this distribution, and is available at |
| 9 | * http://www.eclipse.org/legal/epl-v10.html |
| 10 | * |
| 11 | * Author: |
| 12 | * Daniel Lezcano <daniel.lezcano@linaro.org> |
| 13 | * |
| 14 | *******************************************************************************/ |
| 15 | |
| 16 | typedef int (*mainloop_callback_t)(int fd, void *data); |
| 17 | |
Daniel Lezcano | db14580 | 2011-06-21 00:57:08 +0200 | [diff] [blame] | 18 | extern int mainloop(unsigned int timeout); |
Daniel Lezcano | 8be5260 | 2011-06-21 00:57:08 +0200 | [diff] [blame] | 19 | extern int mainloop_add(int fd, mainloop_callback_t cb, void *data); |
| 20 | extern int mainloop_del(int fd); |
| 21 | extern int mainloop_init(void); |
| 22 | extern void mainloop_fini(void); |