next_child


Description:

public Location? next_child (owned Location? child)

Allows iterating all children of a location.

Pass `NULL` to get the first child, and any child to get the next one.

Note that the reference to child is taken, meaning iterating all children is as simple as:

```c g_autoptr (GWeatherLocation) child = NULL; while ((child = gweather_location_next_child (location, child))) { // Do something with child } ```

Parameters:

this

the location to iterate

child

the next child

Returns:

The next child, if one exists