Lines Matching refs:lens
50 enum_lens_destroy_cb(struct lens *lens) in enum_lens_destroy_cb() argument
52 struct enum_lens *self = (void *)lens; in enum_lens_destroy_cb()
104 enum_get(struct enum_lens *lens, struct value *value, in enum_get() argument
108 for (i = 0; i < vect_size(&lens->entries); ++i) { in enum_get()
109 struct enum_entry *entry = VECT_ELEMENT(&lens->entries, in enum_get()
121 enum_lens_format_cb(struct lens *lens, FILE *stream, in enum_lens_format_cb() argument
124 struct enum_lens *self = (void *)lens; in enum_lens_format_cb()
135 lens_init_enum(struct enum_lens *lens) in lens_init_enum() argument
137 *lens = (struct enum_lens){ in lens_init_enum()
143 VECT_INIT(&lens->entries, struct enum_entry); in lens_init_enum()
147 lens_enum_add(struct enum_lens *lens, in lens_enum_add() argument
152 return VECT_PUSHBACK(&lens->entries, &entry); in lens_enum_add()
156 lens_enum_size(struct enum_lens *lens) in lens_enum_size() argument
158 return vect_size(&lens->entries); in lens_enum_size()