2021-12-04 12:23:56 +01:00
|
|
|
#include "config.h"
|
2018-02-23 06:53:47 +01:00
|
|
|
#include <ccan/tal/str/str.h>
|
|
|
|
#include <common/peer_billboard.h>
|
|
|
|
#include <common/status.h>
|
2020-08-25 04:19:38 +02:00
|
|
|
#include <common/status_wiregen.h>
|
2018-02-23 06:53:47 +01:00
|
|
|
|
|
|
|
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);
|
|
|
|
|
2021-06-28 06:22:03 +02:00
|
|
|
status_debug("billboard%s: %s", perm ? " perm" : "", str);
|
2018-02-23 06:53:47 +01:00
|
|
|
status_send(take(towire_status_peer_billboard(NULL, perm, str)));
|
|
|
|
tal_free(str);
|
|
|
|
}
|