X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/blobdiff_plain/54d55d675672cd798df82bbb02043218d3e3d129..49444d16c5c1a9faa75a715214e2436010daa7e6:/bti.h diff --git a/bti.h b/bti.h index cc93963..a8ee16f 100644 --- a/bti.h +++ b/bti.h @@ -65,6 +65,7 @@ struct session { int no_oauth; int guest; int verbose; + int column_output; enum host host; enum action action; void *readline_handle; @@ -82,7 +83,16 @@ extern const char twitter_host[]; extern const char identica_host[]; extern const char twitter_name[]; extern const char identica_name[]; +extern int debug; extern void bti_parse_configfile(struct session *session); +#define dbg(format, arg...) \ + do { \ + if (debug) \ + fprintf(stdout, "bti: %s: " format , __func__ , \ + ## arg); \ + } while (0) + + #endif