forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fetchinvoice.h
31 lines (24 loc) · 931 Bytes
/
fetchinvoice.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef LIGHTNING_PLUGINS_FETCHINVOICE_H
#define LIGHTNING_PLUGINS_FETCHINVOICE_H
#include "config.h"
struct command_result;
struct command;
struct command_result *json_fetchinvoice(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *json_sendinvoice(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *json_dev_rawrequest(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
/* Returns NULL if this wasn't one of ours. */
struct command_result *handle_invoice_onion_message(struct command *cmd,
const char *buf,
const jsmntok_t *om,
const struct secret *pathsecret);
/* invoice_payment hook */
struct command_result *invoice_payment(struct command *cmd,
const char *buf,
const jsmntok_t *params);
#endif /* LIGHTNING_PLUGINS_FETCHINVOICE_H */