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_connection.h" 14 BUS_Set_Config(void * v,const struct parsedname * pn)15GOOD_OR_BAD BUS_Set_Config(void * v, const struct parsedname *pn) 16 { 17 GOOD_OR_BAD (*set_config) (void * param, const struct parsedname *pn) = pn->selected_connection->iroutines.set_config ; 18 if ( set_config != NO_SET_CONFIG_ROUTINE ) { 19 return (set_config)(v,pn) ; 20 } 21 return gbBAD ; 22 } 23 BUS_Get_Config(void * v,const struct parsedname * pn)24GOOD_OR_BAD BUS_Get_Config(void * v, const struct parsedname *pn) 25 { 26 GOOD_OR_BAD (*get_config) (void * param, const struct parsedname *pn) = pn->selected_connection->iroutines.get_config ; 27 if ( get_config != NO_GET_CONFIG_ROUTINE ) { 28 return (get_config)(v,pn) ; 29 } 30 return gbBAD ; 31 } 32