2017-04-02 22:37:56 +02:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_PAY_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_PAY_H
|
|
|
|
#include "config.h"
|
|
|
|
|
2017-06-20 07:53:03 +02:00
|
|
|
struct htlc_out;
|
2017-04-02 22:37:56 +02:00
|
|
|
struct lightningd;
|
2019-01-17 16:25:32 +01:00
|
|
|
struct preimage;
|
2018-02-15 04:32:03 +01:00
|
|
|
struct sha256;
|
2017-04-02 22:37:56 +02:00
|
|
|
|
2017-06-20 07:53:03 +02:00
|
|
|
void payment_succeeded(struct lightningd *ld, struct htlc_out *hout,
|
2017-04-02 22:37:56 +02:00
|
|
|
const struct preimage *rval);
|
|
|
|
|
2017-06-20 08:12:03 +02:00
|
|
|
void payment_failed(struct lightningd *ld, const struct htlc_out *hout,
|
|
|
|
const char *localfail);
|
2017-04-02 22:37:56 +02:00
|
|
|
|
2018-03-10 07:39:11 +01:00
|
|
|
/* Inform payment system to save the payment. */
|
|
|
|
void payment_store(struct lightningd *ld, const struct sha256 *payment_hash);
|
|
|
|
|
2017-04-02 22:37:56 +02:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_PAY_H */
|