2017-04-02 22:37:56 +02:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_PAY_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_PAY_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <wire/gen_onion_wire.h>
|
|
|
|
|
2017-06-20 07:53:03 +02:00
|
|
|
struct htlc_out;
|
2017-04-02 22:37:56 +02:00
|
|
|
struct lightningd;
|
|
|
|
struct preimage;
|
|
|
|
struct pubkey;
|
|
|
|
|
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
|
|
|
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_PAY_H */
|