chiark / gitweb /
wip split into multiple files and make compile
[innduct.git] / decls-junk
1
2
3
4 /*----- function predeclarations -----*/
5
6 void conn_maybe_write(Conn *conn);
7 void conn_make_some_xmits(Conn *conn);
8 void *conn_write_some_xmits(Conn *conn);
9
10 void xmit_free(XmitDetails *d);
11
12 #define SMS(newstate, periods, why) \
13    (statemc_setstate(sm_##newstate,(periods),#newstate,(why)))
14 void statemc_setstate(StateMachineState newsms, int periods,
15                              const char *forlog, const char *why);
16
17 void statemc_start_flush(const char *why); /* Normal => Flushing */
18 void spawn_inndcomm_flush(const char *why); /* Moved => Flushing */
19 int trigger_flush_ok(const char *why /* 0 means timeout */);
20                                   /* => Flushing,FLUSHING, ret 1; or ret 0 */
21
22 void article_done(Article *art, int whichcount);
23
24 void check_assign_articles(void);
25 void queue_check_input_done(void);
26 void check_reading_pause_resume(InputFile *ipf);
27
28 void statemc_check_flushing_done(void);
29 void statemc_check_backlog_done(void);
30
31 void postfork(void);
32 void period(void);
33
34 void open_defer(void);
35 void close_defer(void);
36 void search_backlog_file(void);
37 void preterminate(void);
38 void raise_default(int signo) NORET;
39
40 void inputfile_reading_start(InputFile *ipf);
41 void inputfile_reading_stop(InputFile *ipf);
42 void inputfile_reading_pause(InputFile *ipf);
43 void inputfile_reading_resume(InputFile *ipf);
44   /* pause and resume are idempotent, and no-op if not done _reading_start */
45
46 void filemon_start(InputFile *ipf);
47 void filemon_stop(InputFile *ipf);
48 void tailing_make_readable(InputFile *ipf);
49
50 void vconnfail(Conn *conn, const char *fmt, va_list al) PRINTF(2,0);
51 void connfail(Conn *conn, const char *fmt, ...)         PRINTF(2,3);
52
53 extern const oop_rd_style peer_rd_style;
54 extern oop_rd_call peer_rd_err, peer_rd_ok;
55
56
57