mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
0e37ac2433
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
20 lines
495 B
C
20 lines
495 B
C
#ifndef LIGHTNING_COMMON_GOSSIP_STORE_H
|
|
#define LIGHTNING_COMMON_GOSSIP_STORE_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <ccan/tal/tal.h>
|
|
|
|
/**
|
|
* gossip_store -- On-disk storage related information
|
|
*/
|
|
#define GOSSIP_STORE_VERSION 4
|
|
|
|
/**
|
|
* Direct store accessor: loads gossip msg from store.
|
|
*
|
|
* Doesn't return; status_failed() on error.
|
|
*/
|
|
u8 *gossip_store_read(const tal_t *ctx, int gossip_store_fd, u64 offset);
|
|
|
|
#endif /* LIGHTNING_COMMON_GOSSIP_STORE_H */
|