mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
d4a172e221
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
18 lines
361 B
C
18 lines
361 B
C
#include <ccan/tal/str/str.h>
|
|
#include <common/gen_status_wire.h>
|
|
#include <common/peer_billboard.h>
|
|
#include <common/status.h>
|
|
|
|
void peer_billboard(bool perm, const char *fmt, ...)
|
|
{
|
|
va_list ap;
|
|
char *str;
|
|
|
|
va_start(ap, fmt);
|
|
str = tal_vfmt(NULL, fmt, ap);
|
|
va_end(ap);
|
|
|
|
status_send(take(towire_status_peer_billboard(NULL, perm, str)));
|
|
tal_free(str);
|
|
}
|