[svn r456] epg interface changed again to GList instead of GSList. It is too complicated to change gmyth api at the moment. Other applications already are using it trunk
authormelunko
Mon Mar 26 20:19:42 2007 +0100 (2007-03-26)
branchtrunk
changeset 45112308ae2d907
parent 450 b0ce3c9fe7c5
child 452 8efecea98bd7
[svn r456] epg interface changed again to GList instead of GSList. It is too complicated to change gmyth api at the moment. Other applications already are using it
gmyth/src/gmyth_common.c
gmyth/src/gmyth_common.h
     1.1 --- a/gmyth/src/gmyth_common.c	Mon Mar 26 19:42:41 2007 +0100
     1.2 +++ b/gmyth/src/gmyth_common.c	Mon Mar 26 20:19:42 2007 +0100
     1.3 @@ -45,12 +45,12 @@
     1.4   * @param list the GList containing a list of GMythChannelInfo to free.
     1.5   */
     1.6  void 
     1.7 -gmyth_free_channel_list (GSList *list) 
     1.8 +gmyth_free_channel_list (GList *list) 
     1.9  {
    1.10      g_return_if_fail (list != NULL);
    1.11  	
    1.12 -    g_slist_foreach (list, free_channel_data, NULL);
    1.13 -    g_slist_free (list);
    1.14 +    g_list_foreach (list, free_channel_data, NULL);
    1.15 +    g_list_free (list);
    1.16  }
    1.17  
    1.18  /** 
    1.19 @@ -61,12 +61,12 @@
    1.20   * @param list the GList containing a list of GMythProgramInfo to free.
    1.21   */
    1.22  void
    1.23 -gmyth_free_program_list(GSList *list)
    1.24 +gmyth_free_program_list(GList *list)
    1.25  {
    1.26      g_return_if_fail (list != NULL);
    1.27  	
    1.28 -    g_slist_foreach (list, free_program_data, NULL);
    1.29 -    g_slist_free (list);
    1.30 +    g_list_foreach (list, free_program_data, NULL);
    1.31 +    g_list_free (list);
    1.32  }
    1.33  
    1.34  #ifdef GMYTH_USE_DEBUG
     2.1 --- a/gmyth/src/gmyth_common.h	Mon Mar 26 19:42:41 2007 +0100
     2.2 +++ b/gmyth/src/gmyth_common.h	Mon Mar 26 20:19:42 2007 +0100
     2.3 @@ -51,8 +51,8 @@
     2.4  
     2.5  } GMythChannelInfo;
     2.6  
     2.7 -void gmyth_free_channel_list(GSList *list);
     2.8 -void gmyth_free_program_list(GSList *list);
     2.9 +void gmyth_free_channel_list(GList *list);
    2.10 +void gmyth_free_program_list(GList *list);
    2.11  
    2.12  #ifdef GMYTH_USE_DEBUG
    2.13  void gmyth_channel_info_print (GMythChannelInfo *channel_info);