| 1430 | } |
| 1431 | |
| 1432 | GAFlightDescriptor * |
| 1433 | gaflight_descriptor_new_raw(const arrow::flight::FlightDescriptor *flight_descriptor) |
| 1434 | { |
| 1435 | GType gtype = GAFLIGHT_TYPE_DESCRIPTOR; |
| 1436 | switch (flight_descriptor->type) { |
| 1437 | case arrow::flight::FlightDescriptor::DescriptorType::PATH: |
| 1438 | gtype = GAFLIGHT_TYPE_PATH_DESCRIPTOR; |
| 1439 | break; |
| 1440 | case arrow::flight::FlightDescriptor::DescriptorType::CMD: |
| 1441 | gtype = GAFLIGHT_TYPE_COMMAND_DESCRIPTOR; |
| 1442 | break; |
| 1443 | default: |
| 1444 | break; |
| 1445 | } |
| 1446 | return GAFLIGHT_DESCRIPTOR(g_object_new(gtype, "descriptor", flight_descriptor, NULL)); |
| 1447 | } |
| 1448 | |
| 1449 | arrow::flight::FlightDescriptor * |
| 1450 | gaflight_descriptor_get_raw(GAFlightDescriptor *descriptor) |
no outgoing calls
no test coverage detected