Lines Matching refs:item_name
45 char *config_item_str(cnode *root, const char *item_name, const char *defaultvar) { in config_item_str() argument
48 if(!(tmp = config_str(root, item_name, defaultvar))) { in config_item_str()
49 logmsg(ANDROID_LOG_FATAL,"%s config item needed",item_name); in config_item_str()
62 int16_t *config_item_int16_t(cnode *root, const char *item_name, const char *defaultvar, int16_t *r… in config_item_int16_t() argument
67 if(!(tmp = config_str(root, item_name, defaultvar))) { in config_item_int16_t()
68 logmsg(ANDROID_LOG_FATAL,"%s config item needed",item_name); in config_item_int16_t()
75 …logmsg(ANDROID_LOG_FATAL,"%s config item is not numeric: %s (error=%s)",item_name,tmp,strerror(err… in config_item_int16_t()
79 logmsg(ANDROID_LOG_FATAL,"%s config item is not numeric: %s",item_name,tmp); in config_item_int16_t()
83 logmsg(ANDROID_LOG_FATAL,"%s config item contains non-numeric characters: %s",item_name,endptr); in config_item_int16_t()
87 logmsg(ANDROID_LOG_FATAL,"%s config item is too big/small: %d",item_name,conf_int); in config_item_int16_t()
101 struct in_addr *config_item_ip(cnode *root, const char *item_name, const char *defaultvar, struct i… in config_item_ip() argument
105 if(!(tmp = config_str(root, item_name, defaultvar))) { in config_item_ip()
106 logmsg(ANDROID_LOG_FATAL,"%s config item needed",item_name); in config_item_ip()
112 logmsg(ANDROID_LOG_FATAL,"invalid IPv4 address specified for %s: %s", item_name, tmp); in config_item_ip()
126 struct in6_addr *config_item_ip6(cnode *root, const char *item_name, const char *defaultvar, struct… in config_item_ip6() argument
130 if(!(tmp = config_str(root, item_name, defaultvar))) { in config_item_ip6()
131 logmsg(ANDROID_LOG_FATAL,"%s config item needed",item_name); in config_item_ip6()
137 logmsg(ANDROID_LOG_FATAL,"invalid IPv6 address specified for %s: %s", item_name, tmp); in config_item_ip6()