X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/blobdiff_plain/c8f56274f6d6f7cb8f7f8a2f002989c396a07042..9b88bdb4ba1345728b0e27cdd40e6c861f76679c:/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