mcabber/src/hbuf.c
changeset 368 da50f08ea058
parent 197 c289e3c39c48
child 370 dd9e2eb52916
equal deleted inserted replaced
367:eb023d6b7890 368:da50f08ea058
   236   }
   236   }
   237 
   237 
   238   return NULL;
   238   return NULL;
   239 }
   239 }
   240 
   240 
   241 //  hbuf_get_lines(hbuf, n, where)  FIXME bad comments XXX
   241 //  hbuf_get_lines(hbuf, n)
   242 // Returns an array of 2*n pointers (for n prefixes + n lines from hbuf)
   242 // Returns an array of n *hbb_line pointers
   243 // (prefix line 1, line 1, prefix line 2, line 2, etc.)
       
   244 // (The first line will be the line currently pointed by hbuf)
   243 // (The first line will be the line currently pointed by hbuf)
   245 // Note:The caller should free the array after use.
   244 // Note: The caller should free the array and the text pointers after use.
   246 hbb_line **hbuf_get_lines(GList *hbuf, unsigned int n)
   245 hbb_line **hbuf_get_lines(GList *hbuf, unsigned int n)
   247 {
   246 {
   248   unsigned int i;
   247   unsigned int i;
   249 
   248 
   250   hbb_line **array = g_new0(hbb_line*, n);
   249   hbb_line **array = g_new0(hbb_line*, n);