~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to src/utility.c

  • Committer: Osmo Antero
  • Date: 2012-09-29 18:12:44 UTC
  • Revision ID: osmoma@gmail.com-20120929181244-gmrxd5xww9pua60a
Support new systems; Ubuntu 12.10, Fedora 18. Improved timer and VAD-modules. Better gst-pipeline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
821
821
    list = NULL;
822
822
}
823
823
 
 
824
GList *str_list_copy(GList *list) {
 
825
    GList *new_list = NULL;
 
826
    GList *item = g_list_first(list);
 
827
    while (item) {
 
828
        gchar *s = g_strdup((gchar*)item->data);
 
829
        new_list = g_list_append(new_list, s);
 
830
        item = g_list_next(item);        
 
831
    }
 
832
    return new_list;
 
833
}
 
834
 
824
835
void str_list_print(gchar *prefix, GList *lst) {
825
836
    // Print GList of strings.
826
837