File: main.h

package info (click to toggle)
iwd 3.11-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,164 kB
  • sloc: ansic: 140,705; sh: 5,514; makefile: 714
file content (36 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Embedded Linux library
 * Copyright (C) 2011-2014  Intel Corporation
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#ifndef __ELL_MAIN_H
#define __ELL_MAIN_H

#include <stdbool.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

bool l_main_init(void);
int l_main_prepare(void);
void l_main_iterate(int timeout);
int l_main_run(void);
bool l_main_exit(void);

bool l_main_quit(void);

typedef void (*l_main_signal_cb_t) (uint32_t signo, void *user_data);

int l_main_run_with_signal(l_main_signal_cb_t callback, void *user_data);

int l_main_get_epoll_fd(void);

#ifdef __cplusplus
}
#endif

#endif /* __ELL_MAIN_H */