MCPcopy Create free account
hub / github.com/ElementsProject/lightning / new_global_subd

Function new_global_subd

lightningd/subd.c:785–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785struct 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
804struct subd *new_channel_subd_(const tal_t *ctx,
805 struct lightningd *ld,

Callers 3

gossip_initFunction · 0.85
connectd_initFunction · 0.85
hsm_initFunction · 0.85

Calls 1

new_subdFunction · 0.70

Tested by

no test coverage detected