| 783 | } |
| 784 | |
| 785 | struct subd *new_global_subd(struct lightningd *ld, |
| 786 | const char *name, |
| 787 | const char *(*msgname)(int msgtype), |
| 788 | unsigned int (*msgcb)(struct subd *, const u8 *, |
| 789 | const int *fds), |
| 790 | ...) |
| 791 | { |
| 792 | va_list ap; |
| 793 | struct subd *sd; |
| 794 | |
| 795 | va_start(ap, msgcb); |
| 796 | sd = new_subd(ld, ld, name, NULL, NULL, NULL, false, |
| 797 | msgname, msgcb, NULL, NULL, &ap); |
| 798 | va_end(ap); |
| 799 | |
| 800 | sd->must_not_exit = true; |
| 801 | return sd; |
| 802 | } |
| 803 | |
| 804 | struct subd *new_channel_subd_(const tal_t *ctx, |
| 805 | struct lightningd *ld, |
no test coverage detected