diff options
author | Guido Günther <agx@sigxcpu.org> | 2014-03-10 23:15:54 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-03-10 23:15:54 +0100 |
commit | 4ed442ce09a161a0dc92f26e87d3194a1ab7630a (patch) | |
tree | f6fdcd3e4832527326b1c0077d9be1c8ba22d7d3 /libplanfahr/lpf-provider.c | |
parent | 79e2834af9af2ef6eef297c66c8d5fed6c680ec7 (diff) |
Add lpf_provider_free_trips
to make unrefing the whole data structure simple
Diffstat (limited to 'libplanfahr/lpf-provider.c')
-rw-r--r-- | libplanfahr/lpf-provider.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libplanfahr/lpf-provider.c b/libplanfahr/lpf-provider.c index 6f7802b..567c745 100644 --- a/libplanfahr/lpf-provider.c +++ b/libplanfahr/lpf-provider.c @@ -168,6 +168,19 @@ lpf_provider_default_init (LpfProviderInterface *iface) G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); } +/** + * lpf_provider_free_trips: + * @self: a #LpfProvider + * @trips: (element-type LpfTrips): A linked list of trips + * + * Free the trips list + */ +void +lpf_provider_free_trips(LpfProvider *self, GSList *trips) +{ + g_slist_free_full (trips, g_object_unref); +} + /** * lpf_provider_create: (skip) |