X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=lib%2Fdeclaracao.h;h=0dc2c17deb6a9e340236186ffa244077ef7815af;hb=5e747c39f1b7b09f90f6d6bb5e9f70cbe2201443;hp=eaff855e0b610d31b0473fed1e29629172c8bd92;hpb=687bc57d97d703decd2a41f224a3de0b41f5881d;p=cascardo%2Fdeclara.git diff --git a/lib/declaracao.h b/lib/declaracao.h index eaff855..0dc2c17 100644 --- a/lib/declaracao.h +++ b/lib/declaracao.h @@ -27,6 +27,8 @@ enum { SIMPLES, COMPLETA, + FORCA_SIMPLES, + FORCA_COMPLETA, }; struct declaracao { @@ -34,6 +36,7 @@ struct declaracao { char *cpf; char *nome; struct list *rendimento; + struct list *carne; struct list *isentos; struct list *pagamentos; struct list *bens; @@ -46,6 +49,7 @@ struct declaracao { long long devido; long long pagar; long long restituicao; + long long aliquota_efetiva; int obrigatoria; int tipo; char *recibo; @@ -58,9 +62,16 @@ struct declaracao { struct pmhash *totais; unsigned long hash; unsigned long rhash; + int verbose; + char *error; + void *ctx; }; struct declaracao * declaracao_new(int ano); void declaracao_free(struct declaracao *dec); +void dec_set_error(struct declaracao *dec, char *fmt, ...); + +void dec_cmd_init(void); + #endif