npv:_reasonable_ "pedanticage" of the code
[nyanmp.git] / npv / main.c
blob1e9ab6e8e04da0c4ad2b18ff49570d0f33ad4079
1 #ifndef NPV_MAIN_C
2 #define NPV_MAIN_C
3 /*
4 * code protected with a GNU affero GPLv3 license
5 * copyright (C) 2020 Sylvain BERTRAND
6 */
7 /*
8 * this is not a library, then we could not care less about memory management
9 * and/or similar cleanup: we have a virtual machine with a garbage collector,
10 * it is linux.
12 #include <stdbool.h>
13 #include <locale.h>
14 #include <stdio.h>
15 #include <stdint.h>
16 #include <string.h>
17 #include <signal.h>
18 #include <pthread.h>
19 #include <errno.h>
20 #include <stdlib.h>
21 #include <unistd.h>
22 #include <fcntl.h>
23 #include <termios.h> /* used while waiting for the osd */
24 #include <sys/epoll.h>
25 #include <sys/signalfd.h>
26 #include <dlfcn.h>
27 #include <libavformat/avformat.h>
28 #include <libavutil/samplefmt.h>
29 #include <libavutil/mathematics.h>
30 #include <alsa/asoundlib.h>
31 /*---------------------------------------------------------------------------*/
32 #include "npv/c_fixing.h"
33 #include "npv/global.h"
34 #include "npv/public.h"
35 #include "npv/fmt/public.h"
36 #include "npv/pipeline/public.h"
37 #include "npv/audio/filt/public.h"
38 #include "npv/audio/public.h"
39 #include "npv/video/public.h"
40 #include "npv/xcb/public.h"
41 #include "npv/vk/public.h"
42 #include "npv/thdsws/public.h"
43 #include "npv/clk/public.h"
44 /*---------------------------------------------------------------------------*/
45 #include "npv/namespace/public.h"
46 #include "npv/namespace/ffmpeg.h"
47 #include "npv/audio/namespace/ffmpeg.h"
48 #include "npv/namespace/public.h"
49 #include "npv/namespace/main.c"
50 /*---------------------------------------------------------------------------*/
51 #include "config.h"
52 /*---------------------------------------------------------------------------*/
53 #include "npv/local/state.frag.c"
54 #include "npv/local/code.frag.c"
55 #include "npv/public/code.frag.c"
56 /*--------------------------------------------------------------------------*/
57 #define CLEANUP
58 #include "npv/namespace/public.h"
59 #include "npv/namespace/ffmpeg.h"
60 #include "npv/audio/namespace/ffmpeg.h"
61 #include "npv/namespace/public.h"
62 #include "npv/namespace/main.c"
63 #undef CLEANUP
64 /*============================================================================*/
65 #include "npv/pkt_q/main.c"
66 #include "npv/fmt/main.c"
67 #include "npv/audio/main.c"
68 #include "npv/audio/filt/main.c"
69 #include "npv/video/main.c"
70 #include "npv/xcb/main.c"
71 #include "npv/vk/main.c"
72 #include "npv/clk/main.c"
73 #include "npv/pipeline/main.c"
74 #include "npv/thdsws/main.c"
75 /*----------------------------------------------------------------------------*/
76 #endif