| 726 | } |
| 727 | |
| 728 | static void |
| 729 | garrow_function_set_property(GObject *object, |
| 730 | guint prop_id, |
| 731 | const GValue *value, |
| 732 | GParamSpec *pspec) |
| 733 | { |
| 734 | auto priv = GARROW_FUNCTION_GET_PRIVATE(object); |
| 735 | |
| 736 | switch (prop_id) { |
| 737 | case PROP_FUNCTION: |
| 738 | priv->function = *static_cast<std::shared_ptr<arrow::compute::Function> *>( |
| 739 | g_value_get_pointer(value)); |
| 740 | { |
| 741 | const auto &arrow_name = priv->function->name(); |
| 742 | priv->name = g_strndup(arrow_name.data(), arrow_name.length()); |
| 743 | } |
| 744 | break; |
| 745 | default: |
| 746 | G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); |
| 747 | break; |
| 748 | } |
| 749 | } |
| 750 | |
| 751 | static void |
| 752 | garrow_function_init(GArrowFunction *object) |