[Bug 27414] pubsub: subscription change and node deletion notifications, retrieving subscribers and affiliates of a node

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 6 18:48:28 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=27414

--- Comment #2 from Will Thompson <will.thompson at collabora.co.uk> 2010-04-06 09:48:28 PDT ---
(In reply to comment #1)
> > -static void
> > -send_pubsub_event (WockyPorter *porter,
> > +static void send_pubsub_event (WockyPorter *porter,
> >      const gchar *service,
> >      const gchar *node)
> >  {
> 
> Please revert.

Done and squashed into the relevant commit (which is now dd7d70d).

> > -  priv->trampolines = g_ptr_array_sized_new (G_N_ELEMENTS (trampolines));
> > +  priv->trampolines = g_ptr_array_sized_new (3);
> 
> This magic number makes me a little sad. Counting the mappings, then appending
> them to the array in a second loop, is probably overkill though... perhaps just
> use g_p_a_new()?

I made _wocky_pubsub_node_get_event_mappings also yield the array size.
Excessive ricing detected? :)

> > + * @pubsub_ns: the namespace for the <pubsub/> node of the stanza
> 
> gtkdoc comments are XML, so, <pubsub/>. Sorry.

Fixed.

> > +WockyXmppStanza *wocky_pubsub_make_stanza (
> > +void wocky_pubsub_node_list_subscribers_async (
> > +gboolean wocky_pubsub_node_list_subscribers_finish (
> > +GList *wocky_list_deep_copy (GBoxedCopyFunc copy, const GList *items);
> 
> Please add new API to sections.txt (after merging this).

Okay.

> > Squash into wocky_pubsub_node_list_subscribers_async
> 
> Um. (I won't insist that you actually do so, though.)

I had already done this locally but not pushed the branch. My bad. There were
no other changes.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the telepathy-bugs mailing list