Skip to content

Commit

Permalink
field fill and terminators
Browse files Browse the repository at this point in the history
Signed-off-by: Pantelis Antoniou <[email protected]>
  • Loading branch information
pantoniou committed Jan 9, 2025
1 parent 8274e0f commit 669a76c
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 48 deletions.
4 changes: 4 additions & 0 deletions include/libfyaml.h
Original file line number Diff line number Diff line change
Expand Up @@ -9992,6 +9992,10 @@ struct fy_document *
fy_field_info_get_yaml_annotation(const struct fy_field_info *fi)
FY_EXPORT;

const char *
fy_field_info_get_yaml_comment(const struct fy_field_info *fi)
FY_EXPORT;

const char *
fy_field_info_get_yaml_string(const struct fy_field_info *fi, const char *path)
FY_EXPORT;
Expand Down
5 changes: 5 additions & 0 deletions src/reflection/fy-reflection.c
Original file line number Diff line number Diff line change
Expand Up @@ -3425,6 +3425,11 @@ struct fy_document *fy_field_info_get_yaml_annotation(const struct fy_field_info
return fy_decl_get_yaml_annotation(fy_decl_from_field_info(fi));
}

const char *fy_field_info_get_yaml_comment(const struct fy_field_info *fi)
{
return fy_decl_get_yaml_comment(fy_decl_from_field_info(fi));
}

const char *fy_type_info_get_yaml_name(const struct fy_type_info *ti)
{
struct fy_type_info_wrapper *tiw;
Expand Down
Loading

0 comments on commit 669a76c

Please sign in to comment.