Each header should only include the other headers it needs to compile; `devtools/reduce-includes.sh */*.h` does this. The C files then need additional includes if they don't compile. And remove the entirely useless wire/onion_wire.h, which only serves to include wire/onion_wiregen.h. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
739 B
739 B
| 1 | #include <common/node_id.h> |
|---|---|
| 2 | # Communication between gossipd and connectd. |
| 3 | msgtype,gossipd_new_peer,4000 |
| 4 | msgdata,gossipd_new_peer,id,node_id, |
| 5 | # Did we negotiate OPT_GOSSIP_QUERIES? |
| 6 | msgdata,gossipd_new_peer,gossip_queries_feature,bool, |
| 7 | # peer is done |
| 8 | msgtype,gossipd_peer_gone,4101 |
| 9 | msgdata,gossipd_peer_gone,id,node_id, |
| 10 | # connectd tells gossipd a gossip msg it received for peer. |
| 11 | msgtype,gossipd_recv_gossip,4002 |
| 12 | msgdata,gossipd_recv_gossip,id,node_id, |
| 13 | msgdata,gossipd_recv_gossip,len,u16, |
| 14 | msgdata,gossipd_recv_gossip,msg,byte,len |
| 15 | # Gossipd asks connectd to send a gossip msg for peer. |
| 16 | msgtype,gossipd_send_gossip,4102 |
| 17 | msgdata,gossipd_send_gossip,id,node_id, |
| 18 | msgdata,gossipd_send_gossip,len,u16, |
| 19 | msgdata,gossipd_send_gossip,msg,byte,len |