1 /* 2 OWFS -- One-Wire filesystem 3 OWHTTPD -- One-Wire Web Server 4 Written 2003 Paul H Alfille 5 email: paul.alfille@gmail.com 6 Released under the GPL 7 See the header file: ow.h for full attribution 8 1wire/iButton system from Dallas Semiconductor 9 */ 10 11 #include <config.h> 12 #include "owfs_config.h" 13 #include "ow.h" 14 #include "ow_server.h" 15 16 /* Globals for port and bus communication */ 17 /* connections globals stored in ow_connect.c */ 18 /* i.e. connection_in * head_inbound_list ... */ 19 20 /* State information, sent to remote or kept locally */ 21 /* presencecheck, tempscale, devform */ 22 int32_t SemiGlobal = ((uint8_t) fdi) << 24 | ((uint8_t) temp_celsius) << 16 | ((uint8_t) 1) 23 << 8 | ((uint8_t) 1); 24 25 struct global Globals = { 26 #if OW_ZERO 27 .browse = NULL, 28 #endif 29 30 .progname = NULL, // "One Wire File System" , Can't allocate here since it's freed 31 32 .error_level = e_err_default, 33 34 .readonly = 0, 35 }; 36 37 /* Statistics globals are stored in ow_stats.c */ 38 39 #include "ow_server.h" 40 struct ow_global ow_Global = { 41 .timeout_network = 1, 42 .timeout_server = 10, 43 .autoserver = 0, 44 }; 45