mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
base: disable unused index API and make functions static
It's simply private helper API for now, until someone fixes up GstBaseParse not to need it any more.
This commit is contained in:
parent
e0270aa901
commit
3f11fc0514
3 changed files with 35 additions and 3 deletions
|
@ -297,6 +297,8 @@ gst_index_group_free (GstIndexGroup * group)
|
||||||
g_slice_free (GstIndexGroup, group);
|
g_slice_free (GstIndexGroup, group);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* do not resurrect this, add a derived dummy index class instead */
|
||||||
|
#if 0
|
||||||
/**
|
/**
|
||||||
* gst_index_new:
|
* gst_index_new:
|
||||||
*
|
*
|
||||||
|
@ -336,7 +338,6 @@ gst_index_commit (GstIndex * index, gint id)
|
||||||
iclass->commit (index, id);
|
iclass->commit (index, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_index_get_group:
|
* gst_index_get_group:
|
||||||
* @index: the index to get the current group from
|
* @index: the index to get the current group from
|
||||||
|
@ -405,7 +406,9 @@ gst_index_set_group (GstIndex * index, gint groupnum)
|
||||||
GST_DEBUG ("couldn't find index group %d", groupnum);
|
GST_DEBUG ("couldn't find index group %d", groupnum);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
/**
|
/**
|
||||||
* gst_index_set_certainty:
|
* gst_index_set_certainty:
|
||||||
* @index: the index to set the certainty on
|
* @index: the index to set the certainty on
|
||||||
|
@ -432,7 +435,9 @@ gst_index_get_certainty (GstIndex * index)
|
||||||
{
|
{
|
||||||
return index->curgroup->certainty;
|
return index->curgroup->certainty;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
/**
|
/**
|
||||||
* gst_index_set_filter:
|
* gst_index_set_filter:
|
||||||
* @index: the index to register the filter on
|
* @index: the index to register the filter on
|
||||||
|
@ -517,6 +522,7 @@ gst_index_set_resolver_full (GstIndex * index, GstIndexResolver resolver,
|
||||||
index->resolver_user_data_destroy = user_data_destroy;
|
index->resolver_user_data_destroy = user_data_destroy;
|
||||||
index->method = GST_INDEX_RESOLVER_CUSTOM;
|
index->method = GST_INDEX_RESOLVER_CUSTOM;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_index_entry_copy:
|
* gst_index_entry_copy:
|
||||||
|
@ -568,6 +574,7 @@ gst_index_entry_free (GstIndexEntry * entry)
|
||||||
g_slice_free (GstIndexEntry, entry);
|
g_slice_free (GstIndexEntry, entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
/**
|
/**
|
||||||
* gst_index_add_format:
|
* gst_index_add_format:
|
||||||
* @index: the index to add the entry to
|
* @index: the index to add the entry to
|
||||||
|
@ -606,6 +613,7 @@ gst_index_add_format (GstIndex * index, gint id, GstFormat format)
|
||||||
|
|
||||||
return entry;
|
return entry;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_index_add_id:
|
* gst_index_add_id:
|
||||||
|
@ -810,6 +818,7 @@ gst_index_add_associationv (GstIndex * index, gint id, GstAssocFlags flags,
|
||||||
return entry;
|
return entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
/**
|
/**
|
||||||
* gst_index_add_association:
|
* gst_index_add_association:
|
||||||
* @index: the index to add the entry to
|
* @index: the index to add the entry to
|
||||||
|
@ -897,6 +906,7 @@ gst_index_add_object (GstIndex * index, gint id, gchar * key,
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static gint
|
static gint
|
||||||
gst_index_compare_func (gconstpointer a, gconstpointer b, gpointer user_data)
|
gst_index_compare_func (gconstpointer a, gconstpointer b, gpointer user_data)
|
||||||
|
|
|
@ -368,7 +368,10 @@ struct _GstIndexClass {
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static
|
||||||
GType gst_index_get_type (void);
|
GType gst_index_get_type (void);
|
||||||
|
|
||||||
|
#if 0
|
||||||
GstIndex* gst_index_new (void);
|
GstIndex* gst_index_new (void);
|
||||||
void gst_index_commit (GstIndex *index, gint id);
|
void gst_index_commit (GstIndex *index, gint id);
|
||||||
|
|
||||||
|
@ -380,32 +383,47 @@ void gst_index_set_certainty (GstIndex *index,
|
||||||
GstIndexCertainty certainty);
|
GstIndexCertainty certainty);
|
||||||
GstIndexCertainty gst_index_get_certainty (GstIndex *index);
|
GstIndexCertainty gst_index_get_certainty (GstIndex *index);
|
||||||
|
|
||||||
|
static
|
||||||
void gst_index_set_filter (GstIndex *index,
|
void gst_index_set_filter (GstIndex *index,
|
||||||
GstIndexFilter filter, gpointer user_data);
|
GstIndexFilter filter, gpointer user_data);
|
||||||
|
static
|
||||||
void gst_index_set_filter_full (GstIndex *index,
|
void gst_index_set_filter_full (GstIndex *index,
|
||||||
GstIndexFilter filter, gpointer user_data,
|
GstIndexFilter filter, gpointer user_data,
|
||||||
GDestroyNotify user_data_destroy);
|
GDestroyNotify user_data_destroy);
|
||||||
|
|
||||||
void gst_index_set_resolver (GstIndex *index,
|
void gst_index_set_resolver (GstIndex *index,
|
||||||
GstIndexResolver resolver, gpointer user_data);
|
GstIndexResolver resolver, gpointer user_data);
|
||||||
void gst_index_set_resolver_full (GstIndex *index, GstIndexResolver resolver,
|
void gst_index_set_resolver_full (GstIndex *index, GstIndexResolver resolver,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
GDestroyNotify user_data_destroy);
|
GDestroyNotify user_data_destroy);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static
|
||||||
gboolean gst_index_get_writer_id (GstIndex *index, GstObject *writer, gint *id);
|
gboolean gst_index_get_writer_id (GstIndex *index, GstObject *writer, gint *id);
|
||||||
|
|
||||||
|
#if 0
|
||||||
GstIndexEntry* gst_index_add_format (GstIndex *index, gint id, GstFormat format);
|
GstIndexEntry* gst_index_add_format (GstIndex *index, gint id, GstFormat format);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static
|
||||||
GstIndexEntry* gst_index_add_associationv (GstIndex * index, gint id, GstAssocFlags flags,
|
GstIndexEntry* gst_index_add_associationv (GstIndex * index, gint id, GstAssocFlags flags,
|
||||||
gint n, const GstIndexAssociation * list);
|
gint n, const GstIndexAssociation * list);
|
||||||
|
#if 0
|
||||||
GstIndexEntry* gst_index_add_association (GstIndex *index, gint id, GstAssocFlags flags,
|
GstIndexEntry* gst_index_add_association (GstIndex *index, gint id, GstAssocFlags flags,
|
||||||
GstFormat format, gint64 value, ...);
|
GstFormat format, gint64 value, ...)
|
||||||
GstIndexEntry* gst_index_add_object (GstIndex *index, gint id, gchar *key,
|
GstIndexEntry* gst_index_add_object (GstIndex *index, gint id, gchar *key,
|
||||||
GType type, gpointer object);
|
GType type, gpointer object);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static
|
||||||
GstIndexEntry* gst_index_add_id (GstIndex *index, gint id,
|
GstIndexEntry* gst_index_add_id (GstIndex *index, gint id,
|
||||||
gchar *description);
|
gchar *description);
|
||||||
|
|
||||||
|
static
|
||||||
GstIndexEntry* gst_index_get_assoc_entry (GstIndex *index, gint id,
|
GstIndexEntry* gst_index_get_assoc_entry (GstIndex *index, gint id,
|
||||||
GstIndexLookupMethod method, GstAssocFlags flags,
|
GstIndexLookupMethod method, GstAssocFlags flags,
|
||||||
GstFormat format, gint64 value);
|
GstFormat format, gint64 value);
|
||||||
|
static
|
||||||
GstIndexEntry* gst_index_get_assoc_entry_full (GstIndex *index, gint id,
|
GstIndexEntry* gst_index_get_assoc_entry_full (GstIndex *index, gint id,
|
||||||
GstIndexLookupMethod method, GstAssocFlags flags,
|
GstIndexLookupMethod method, GstAssocFlags flags,
|
||||||
GstFormat format, gint64 value,
|
GstFormat format, gint64 value,
|
||||||
|
@ -413,9 +431,13 @@ GstIndexEntry* gst_index_get_assoc_entry_full (GstIndex *index, gint i
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
/* working with index entries */
|
/* working with index entries */
|
||||||
|
static
|
||||||
GType gst_index_entry_get_type (void);
|
GType gst_index_entry_get_type (void);
|
||||||
|
static
|
||||||
GstIndexEntry * gst_index_entry_copy (GstIndexEntry *entry);
|
GstIndexEntry * gst_index_entry_copy (GstIndexEntry *entry);
|
||||||
|
static
|
||||||
void gst_index_entry_free (GstIndexEntry *entry);
|
void gst_index_entry_free (GstIndexEntry *entry);
|
||||||
|
static
|
||||||
gboolean gst_index_entry_assoc_map (GstIndexEntry *entry,
|
gboolean gst_index_entry_assoc_map (GstIndexEntry *entry,
|
||||||
GstFormat format, gint64 *value);
|
GstFormat format, gint64 *value);
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ static GstIndexEntry *gst_mem_index_get_assoc_entry (GstIndex * index, gint id,
|
||||||
|
|
||||||
#define CLASS(mem_index) GST_MEM_INDEX_CLASS (G_OBJECT_GET_CLASS (mem_index))
|
#define CLASS(mem_index) GST_MEM_INDEX_CLASS (G_OBJECT_GET_CLASS (mem_index))
|
||||||
|
|
||||||
GType gst_mem_index_get_type (void);
|
static GType gst_mem_index_get_type (void);
|
||||||
|
|
||||||
G_DEFINE_TYPE (GstMemIndex, gst_mem_index, GST_TYPE_INDEX);
|
G_DEFINE_TYPE (GstMemIndex, gst_mem_index, GST_TYPE_INDEX);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue