Browse Source

gossip: Make gossip_store_append private

Signed-off-by: Christian Decker <decker.christian@gmail.com>
ppa-0.6.1
Christian Decker 7 years ago
committed by Rusty Russell
parent
commit
82e1f5ade1
  1. 10
      gossipd/gossip_store.c
  2. 9
      gossipd/gossip_store.h

10
gossipd/gossip_store.c

@ -46,8 +46,14 @@ struct gossip_store *gossip_store_new(const tal_t *ctx)
return gs;
}
void gossip_store_append(struct gossip_store *gs, const u8 *msg)
/**
* Write an incoming message to the `gossip_store`
*
* @param gs The gossip_store to write to
* @param msg The message to write
* @return The newly created and initialized `gossip_store`
*/
static void gossip_store_append(struct gossip_store *gs, const u8 *msg)
{
u32 msglen = tal_len(msg);
beint32_t belen = cpu_to_be32(msglen);

9
gossipd/gossip_store.h

@ -15,15 +15,6 @@ struct routing_state;
struct gossip_store *gossip_store_new(const tal_t *ctx);
/**
* Write an incoming message to the `gossip_store`
*
* @param gs The gossip_store to write to
* @param msg The message to write
* @return The newly created and initialized `gossip_store`
*/
void gossip_store_append(struct gossip_store *gs, const u8 *msg);
/**
* Retrieve the next gossip message if any
*

Loading…
Cancel
Save