From: erickson Date: Fri, 11 Mar 2005 16:50:23 +0000 (+0000) Subject: turned on pretty print by default X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=57f65fc3b2629fb0185794c7ab93cd9306a9ed3e;p=opensrf%2Fbjwebb.git turned on pretty print by default git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@213 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/srfsh/srfsh.h b/src/srfsh/srfsh.h index bd52cfd..01fbd0e 100644 --- a/src/srfsh/srfsh.h +++ b/src/srfsh/srfsh.h @@ -23,7 +23,7 @@ char* history_file = NULL; int child_dead = 0; /* true if we're pretty printing json results */ -int pretty_print = 0; +int pretty_print = 1; /* our jabber connection */ transport_client* client = NULL; @@ -33,8 +33,14 @@ osrf_message* last_result = NULL; /* functions */ int parse_request( char* request ); + +/* handles router requests */ int handle_router( char* words[] ); + +/* utility method for print time data */ int handle_time( char* words[] ); + +/* handles app level requests */ int handle_request( char* words[], int relay ); int handle_exec(char* words[]); int handle_set( char* words[]);