Files
palladum-lightning/plugins/askrene/child/entry.h
Rusty Russell 33e2f0a47b askrene: move fork() entry point into its own file.
Now there's only one file clearly shared by both parent and child.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2026-02-19 17:04:35 +10:30

30 lines
872 B
C

#ifndef LIGHTNING_PLUGINS_ASKRENE_CHILD_ENTRY_H
#define LIGHTNING_PLUGINS_ASKRENE_CHILD_ENTRY_H
#include "config.h"
#include <ccan/short_types/short_types.h>
#include <ccan/time/time.h>
#include <common/amount.h>
#include <stdbool.h>
struct route_query;
struct gossmap_node;
struct json_filter;
/* Entry point to the child process. */
int fork_router_child(struct route_query *rq,
bool single_path,
struct timemono deadline,
const struct gossmap_node *srcnode,
const struct gossmap_node *dstnode,
struct amount_msat amount, struct amount_msat maxfee,
u32 finalcltv, u32 maxdelay,
bool include_fees,
const char *cmd_id,
struct json_filter *cmd_filter,
int *log_fd,
int *child_pid);
/* FIXME: Remove this */
extern bool am_child;
#endif /* LIGHTNING_PLUGINS_ASKRENE_CHILD_ENTRY_H */