2017-04-03 06:07:56 +09:30
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_PAY_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_PAY_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <wire/gen_onion_wire.h>
|
|
|
|
|
2017-06-20 15:23:03 +09:30
|
|
|
struct htlc_out;
|
2017-04-03 06:07:56 +09:30
|
|
|
struct lightningd;
|
|
|
|
struct preimage;
|
|
|
|
struct pubkey;
|
|
|
|
|
2017-06-20 15:23:03 +09:30
|
|
|
void payment_succeeded(struct lightningd *ld, struct htlc_out *hout,
|
2017-04-03 06:07:56 +09:30
|
|
|
const struct preimage *rval);
|
|
|
|
|
2017-06-20 15:42:03 +09:30
|
|
|
void payment_failed(struct lightningd *ld, const struct htlc_out *hout,
|
|
|
|
const char *localfail);
|
2017-04-03 06:07:56 +09:30
|
|
|
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_PAY_H */
|