Lines Matching refs:plib

68 static struct arg_type_info *parse_nonpointer_type(struct protolib *plib,
74 static struct arg_type_info *parse_type(struct protolib *plib,
79 static struct arg_type_info *parse_lens(struct protolib *plib,
84 static int parse_enum(struct protolib *plib, struct locus *loc,
395 parse_typedef_name(struct protolib *plib, char **str) in parse_typedef_name() argument
409 struct named_type *nt = protolib_lookup_type(plib, buf, true); in parse_typedef_name()
416 parse_typedef(struct protolib *plib, struct locus *loc, char **str) in parse_typedef() argument
425 struct named_type *forward = protolib_lookup_type(plib, name, true); in parse_typedef()
445 = parse_lens(plib, loc, str, NULL, 0, &own, &fwd); in parse_typedef()
454 if (protolib_add_named_type(plib, name, 1, &this_nt) < 0) { in parse_typedef()
485 parse_struct(struct protolib *plib, struct locus *loc, in parse_struct() argument
527 = parse_lens(plib, loc, str, NULL, 0, &own, NULL); in parse_struct()
556 parse_string(struct protolib *plib, struct locus *loc, in parse_string() argument
606 info = parse_type(plib, loc, str, NULL, 0, ownp, NULL); in parse_string()
712 parse_alias(struct protolib *plib, struct locus *loc, in parse_alias() argument
723 return parse_string(plib, loc, str, retp, ownp); in parse_alias()
731 if (parse_string(plib, loc, str, retp, ownp) < 0) in parse_alias()
738 return parse_enum(plib, loc, str, retp, ownp); in parse_alias()
748 parse_array(struct protolib *plib, struct locus *loc, in parse_array() argument
758 = parse_lens(plib, loc, str, NULL, 0, &own, NULL); in parse_array()
788 parse_enum(struct protolib *plib, struct locus *loc, char **str, in parse_enum() argument
796 *retp = parse_nonpointer_type(plib, loc, str, NULL, 0, ownp, 0); in parse_enum()
886 parse_nonpointer_type(struct protolib *plib, struct locus *loc, in parse_nonpointer_type() argument
894 if (parse_alias(plib, loc, str, &type, in parse_nonpointer_type()
901 if ((type = parse_typedef_name(plib, str)) == NULL) in parse_nonpointer_type()
942 if (parse_array(plib, loc, str, info) < 0) { in parse_nonpointer_type()
949 if (parse_struct(plib, loc, str, info, forwardp) < 0) in parse_nonpointer_type()
983 parse_type(struct protolib *plib, struct locus *loc, char **str, in parse_type() argument
988 = parse_nonpointer_type(plib, loc, str, extra_param, in parse_type()
1017 parse_lens(struct protolib *plib, struct locus *loc, in parse_lens() argument
1043 info = parse_type(plib, loc, str, extra_param, param_num, in parse_lens()
1110 process_line(struct protolib *plib, struct locus *loc, char *buf) in process_line() argument
1123 parse_typedef(plib, loc, &str); in process_line()
1133 fun.return_info = parse_lens(plib, loc, &str, NULL, 0, &own, NULL); in process_line()
1190 = parse_lens(plib, loc, &str, &extra_param, in process_line()
1249 if (protolib_add_prototype(plib, proto_name, 1, &fun) < 0) { in process_line()
1260 read_config_file(FILE *stream, const char *path, struct protolib *plib) in read_config_file() argument
1269 process_line(plib, &loc, line); in read_config_file()