* gaflight_server_get_flight_info: * @server: A #GAFlightServer. * @context: A #GAFlightServerCallContext. * @request: A #GAFlightDescriptor. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full): A #GAFlightInfo on success, %NULL on error. * * Since: 9.0.0 */
| 1313 | * Since: 9.0.0 |
| 1314 | */ |
| 1315 | GAFlightInfo * |
| 1316 | gaflight_server_get_flight_info(GAFlightServer *server, |
| 1317 | GAFlightServerCallContext *context, |
| 1318 | GAFlightDescriptor *request, |
| 1319 | GError **error) |
| 1320 | { |
| 1321 | auto klass = GAFLIGHT_SERVER_GET_CLASS(server); |
| 1322 | if (!(klass && klass->get_flight_info)) { |
| 1323 | g_set_error(error, GARROW_ERROR, GARROW_ERROR_NOT_IMPLEMENTED, "not implemented"); |
| 1324 | return nullptr; |
| 1325 | } |
| 1326 | return (*(klass->get_flight_info))(server, context, request, error); |
| 1327 | } |
| 1328 | |
| 1329 | /** |
| 1330 | * gaflight_server_do_get: |