MCPcopy Create free account
hub / github.com/apache/arrow / gaflight_server_options_set_property

Function gaflight_server_options_set_property

c_glib/arrow-flight-glib/server.cpp:924–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

922}
923
924static void
925gaflight_server_options_set_property(GObject *object,
926 guint prop_id,
927 const GValue *value,
928 GParamSpec *pspec)
929{
930 auto priv = GAFLIGHT_SERVER_OPTIONS_GET_PRIVATE(object);
931
932 switch (prop_id) {
933 case PROP_LOCATION:
934 {
935 priv->location = GAFLIGHT_LOCATION(g_value_dup_object(value));
936 auto flight_location = gaflight_location_get_raw(priv->location);
937 new (&(priv->options)) arrow::flight::FlightServerOptions(*flight_location);
938 }
939 break;
940 case PROP_AUTH_HANDLER:
941 if (priv->auth_handler != g_value_get_object(value)) {
942 if (priv->auth_handler) {
943 g_object_unref(priv->auth_handler);
944 }
945 priv->auth_handler = GAFLIGHT_SERVER_AUTH_HANDLER(g_value_dup_object(value));
946 if (priv->auth_handler) {
947 priv->options.auth_handler =
948 gaflight_server_auth_handler_get_raw(priv->auth_handler);
949 } else {
950 priv->options.auth_handler = nullptr;
951 }
952 }
953 break;
954 default:
955 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
956 break;
957 }
958}
959
960static void
961gaflight_server_options_get_property(GObject *object,

Callers

nothing calls this directly

Tested by

no test coverage detected