payredu

Cross-platform ledger GUI written in c99
git clone git@getsh.org:payredu.git
Log | Files | Refs | README

book.h (347B)


      1 #ifndef _LEDGER_BOOK_H
      2 #define _LEDGER_BOOK_H
      3 
      4 #include <string.h>
      5 #include <stdlib.h>
      6 
      7 typedef struct {
      8 	char* name;
      9 } Entity;
     10 
     11 typedef struct {
     12 	Entity* from;
     13 	Entity* to;
     14 	long long amt;
     15 } Entry;
     16 
     17 
     18 void ledger_parse_data(char *text, size_t text_len);
     19 
     20 Entry** ledger_read_file(const char* filename, time_t date_start, time_t date_end);
     21 
     22 #endif