Skip to content
Snippets Groups Projects
Commit 3903d01c authored by edgrif's avatar edgrif
Browse files

add function to destroy all the features in a feature set.

parent e9c0f13f
No related branches found
No related tags found
No related merge requests found
......@@ -27,9 +27,9 @@
*
* Exported functions: See zmapView_P.h
* HISTORY:
* Last edited: Mar 9 12:40 2007 (rds)
* Last edited: Mar 13 12:25 2007 (edgrif)
* Created: Fri Jul 16 13:05:58 2004 (edgrif)
* CVS info: $Id: zmapFeature.c,v 1.61 2007-03-09 12:44:53 rds Exp $
* CVS info: $Id: zmapFeature.c,v 1.62 2007-03-13 16:07:58 edgrif Exp $
*-------------------------------------------------------------------
*/
......@@ -142,6 +142,7 @@ static void destroyBlock(gpointer data) ;
static void destroyAlign(gpointer data) ;
static void destroyContext(gpointer data) ;
static void withdrawFeatureAny(GQuark key_id, gpointer data, gpointer user_data) ;
static void destroyAllFeatureAny(GQuark key_id, gpointer data, gpointer user_data) ;
/* datalist debug stuff */
static void getDataListLength(GQuark id, gpointer data, gpointer user_data);
......@@ -707,6 +708,18 @@ void zMapFeatureSetDestroy(ZMapFeatureSet feature_set, gboolean free_data)
return ;
}
void zMapFeatureSetDestroyFeatures(ZMapFeatureSet feature_set)
{
zMapAssert(feature_set) ;
g_datalist_clear(&(feature_set->features)) ;
return ;
}
GQuark zMapFeatureAlignmentCreateID(char *align_name, gboolean master_alignment)
{
GQuark id = 0;
......@@ -1611,6 +1624,7 @@ static void withdrawFeatureAny(GQuark key_id, gpointer data, gpointer user_data)
return ;
}
/* Returns TRUE if the target blocks match coords are within align_error bases of each other, if
* there are less than two blocks then FALSE is returned.
*
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment