core-lightning/plugins/offers_offer.h
Rusty Russell a8b3a1c29c offers: make decode command available even without experimental-offers.
It subsumes `decodepay`, and it's nicer if people can just assume it's
available at all times.

Changelog-Added: JSON-RPC: `decode` now available without `experimental-offers`
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-08-02 13:23:31 -04:00

17 lines
472 B
C

#ifndef LIGHTNING_PLUGINS_OFFERS_OFFER_H
#define LIGHTNING_PLUGINS_OFFERS_OFFER_H
#include "config.h"
#include <plugins/libplugin.h>
extern struct pubkey32 id;
extern bool offers_enabled;
struct command_result *json_offer(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
struct command_result *json_offerout(struct command *cmd,
const char *buffer,
const jsmntok_t *params);
#endif /* LIGHTNING_PLUGINS_OFFERS_OFFER_H */