2022-07-19 09:34:35 +02:00
|
|
|
#ifndef LIGHTNING_PLUGINS_BKPR_ACCOUNT_ENTRY_H
|
|
|
|
#define LIGHTNING_PLUGINS_BKPR_ACCOUNT_ENTRY_H
|
|
|
|
#include "config.h"
|
|
|
|
|
2022-07-19 09:34:38 +02:00
|
|
|
#define NUM_ACCOUNT_ENTRY_TAGS (INVOICEFEE + 1)
|
2022-07-19 09:34:35 +02:00
|
|
|
enum account_entry_tag {
|
|
|
|
JOURNAL_ENTRY = 0,
|
2022-07-19 09:34:36 +02:00
|
|
|
PENALTY_ADJ = 1,
|
2022-07-19 09:34:38 +02:00
|
|
|
INVOICEFEE = 2,
|
2022-07-19 09:34:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Convert an enum into a string */
|
|
|
|
const char *account_entry_tag_str(enum account_entry_tag tag);
|
|
|
|
|
|
|
|
/* True if entry tag found, false otherwise */
|
|
|
|
bool account_entry_tag_find(char *str, enum account_entry_tag *tag);
|
|
|
|
#endif /* LIGHTNING_PLUGINS_BKPR_ACCOUNT_ENTRY_H */
|