Rusty Russell
7 years ago
committed by
Christian Decker
5 changed files with 29 additions and 1 deletions
@ -0,0 +1,17 @@ |
|||
#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); |
|||
} |
@ -0,0 +1,9 @@ |
|||
#ifndef LIGHTNING_COMMON_PEER_BILLBOARD_H |
|||
#define LIGHTNING_COMMON_PEER_BILLBOARD_H |
|||
#include "config.h" |
|||
#include <stdbool.h> |
|||
|
|||
/* Key information for RPC display: perm means it outlasts this daemon. */ |
|||
void peer_billboard(bool perm, const char *fmt, ...); |
|||
|
|||
#endif /* LIGHTNING_COMMON_PEER_BILLBOARD_H */ |
Loading…
Reference in new issue