A couple of GQueue additions



Would anybody mind if I added:

 void g_queue_remove      (GQueue *queue, gconstpointer data);
 void g_queue_remove_link (GQueue *queue, GList *link);
 void g_queue_delete_link (GQueue *queue, GList *link);

The reason for these additions is that to implement these requires
not only reading GQueues's internals, but also modifying them.

Yes - these additions go beyond a (de)queue, but they are going
to be used fairly frequently in many uses of a GQueue.

g_queue_remove and g_queue_delete_link can be pretty trivially
implemented in terms of g_queue_remove_link, but I'd like to
have them there for parallelism to GList and GSList.

Regards,
                                        Owen




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]