diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-05-21 12:08:09 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-05-21 12:08:09 +0100 |
commit | a72c557edd25a709598e2d470a56a40213e9dd67 (patch) | |
tree | 26e4222a7ec4fbf65e592c3868937ce592b22743 /telepathy-glib/intset.c | |
parent | d21fce565beb44bc4eea8a3be088bb9b48377a68 (diff) | |
download | telepathy-glib-a72c557edd25a709598e2d470a56a40213e9dd67.tar.gz |
TpIntSet: improve documentation of TpIntSetFastIter
Diffstat (limited to 'telepathy-glib/intset.c')
-rw-r--r-- | telepathy-glib/intset.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/telepathy-glib/intset.c b/telepathy-glib/intset.c index caa4cc205..90c9ce88b 100644 --- a/telepathy-glib/intset.c +++ b/telepathy-glib/intset.c @@ -97,6 +97,10 @@ tp_intset_get_type (void) * * A structure representing iteration over a set of integers. Must be * initialized with either TP_INTSET_ITER_INIT() or tp_intset_iter_init(). + * + * Since 0.11.UNRELEASED, consider using #TpIntSetFastIter if iteration in + * numerical order is not required. + * */ /* (public, see header) */ @@ -114,6 +118,10 @@ tp_intset_get_type (void) * /<!-- -->* ... do something with iter ... *<!-- -->/ * } * </programlisting></informalexample> + * + * Since 0.11.UNRELEASED, consider using #TpIntSetFastIter if iteration in + * numerical order is not required. + * */ /* (macro, see header) */ @@ -744,6 +752,9 @@ tp_intset_dump (const TpIntSet *set) * } * </programlisting></informalexample> * + * Since 0.11.UNRELEASED, consider using #TpIntSetFastIter if iteration in + * numerical order is not required. + * * Returns: %TRUE if (@iter->element) has been advanced */ gboolean @@ -779,6 +790,22 @@ tp_intset_iter_next (TpIntSetIter *iter) * * An opaque structure representing iteration in undefined order over a set of * integers. Must be initialized with tp_intset_fast_iter_init(). + * + * Usage is similar to #GHashTableIter: + * + * <informalexample><programlisting> + * TpIntSetFastIter iter; + * guint element; + * + * tp_intset_fast_iter_init (&iter, intset); + * + * while (tp_intset_fast_iter_next (&iter, &element)) + * { + * printf ("%u is in the intset\n", element); + * } + * </programlisting></informalexample> + * + * Since: 0.11.UNRELEASED */ typedef struct { @@ -797,6 +824,8 @@ tp_verify (sizeof (TpIntSetFastIter) >= sizeof (RealFastIter)); * * Initialize @iter to iterate over @set in arbitrary order. @iter will become * invalid if @set is modified. + * + * Since: 0.11.UNRELEASED */ void tp_intset_fast_iter_init (TpIntSetFastIter *iter, @@ -821,6 +850,8 @@ tp_intset_fast_iter_init (TpIntSetFastIter *iter, * is not necessarily in numerical order. * * Returns: %FALSE if the end of the set has been reached + * + * Since: 0.11.UNRELEASED */ gboolean tp_intset_fast_iter_next (TpIntSetFastIter *iter, |