* gaflight_call_options_foreach_header: * @options: A #GAFlightCallOptions. * @func: (scope call) (closure user_data): The user's callback function. * @user_data: Data for @func. * * Iterates over all headers in the options. * * Since: 9.0.0 */
| 344 | * Since: 9.0.0 |
| 345 | */ |
| 346 | void |
| 347 | gaflight_call_options_foreach_header(GAFlightCallOptions *options, |
| 348 | GAFlightHeaderFunc func, |
| 349 | gpointer user_data) |
| 350 | { |
| 351 | auto flight_options = gaflight_call_options_get_raw(options); |
| 352 | for (const auto &header : flight_options->headers) { |
| 353 | auto &key = header.first; |
| 354 | auto &value = header.second; |
| 355 | func(key.c_str(), value.c_str(), user_data); |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | struct GAFlightClientOptionsPrivate |
| 360 | { |
nothing calls this directly
no test coverage detected