diff options
Diffstat (limited to 'farstream')
-rw-r--r-- | farstream/fs-candidate.c | 17 | ||||
-rw-r--r-- | farstream/fs-candidate.h | 2 |
2 files changed, 19 insertions, 0 deletions
diff --git a/farstream/fs-candidate.c b/farstream/fs-candidate.c index 13d414ff..d50bcfce 100644 --- a/farstream/fs-candidate.c +++ b/farstream/fs-candidate.c @@ -259,3 +259,20 @@ fs_candidate_new_full ( return candidate; } + +/** + * fs_value_set_candidate_list: + * @value: a #GValue of type #FS_TYPE_CANDIDATE_LIST + * @candidates: (element-type FsCandidate) (allow-none): A #GList of #FsCandidate + * + * This is for the bindings benefit. Works around the limitations of GObject + * introspection. + * + */ + +void +fs_value_set_candidate_list (GValue *value, GList *candidates) +{ + g_value_init (value, FS_TYPE_CANDIDATE_LIST); + g_value_set_boxed (value, candidates); +} diff --git a/farstream/fs-candidate.h b/farstream/fs-candidate.h index 361bf25f..b8ad723f 100644 --- a/farstream/fs-candidate.h +++ b/farstream/fs-candidate.h @@ -156,6 +156,8 @@ FsCandidate *fs_candidate_new_full ( const gchar *password, guint ttl); +void fs_value_set_candidate_list (GValue *value, GList *candidates); + G_END_DECLS #endif /* __FS_CANDIDATE_H__ */ |