| 6616 | } |
| 6617 | |
| 6618 | static void |
| 6619 | garrow_struct_field_options_get_property(GObject *object, |
| 6620 | guint prop_id, |
| 6621 | GValue *value, |
| 6622 | GParamSpec *pspec) |
| 6623 | { |
| 6624 | auto options = garrow_struct_field_options_get_raw(GARROW_STRUCT_FIELD_OPTIONS(object)); |
| 6625 | |
| 6626 | switch (prop_id) { |
| 6627 | case PROP_STRUCT_FIELD_OPTIONS_FIELD_REF: |
| 6628 | { |
| 6629 | auto name = options->field_ref.name(); |
| 6630 | if (name) { |
| 6631 | g_value_set_string(value, name->c_str()); |
| 6632 | } else { |
| 6633 | g_value_set_string(value, options->field_ref.ToDotPath().c_str()); |
| 6634 | } |
| 6635 | } |
| 6636 | break; |
| 6637 | default: |
| 6638 | G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); |
| 6639 | break; |
| 6640 | } |
| 6641 | } |
| 6642 | |
| 6643 | static void |
| 6644 | garrow_struct_field_options_init(GArrowStructFieldOptions *object) |
nothing calls this directly
no test coverage detected