projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gst: Don't pass miniobjects to GST_DEBUG_OBJECT() and similar macros
[platform/upstream/gstreamer.git]
/
gst
/
gsttaskpool.h
diff --git
a/gst/gsttaskpool.h
b/gst/gsttaskpool.h
index
6f2ac66
..
3b654d9
100644
(file)
--- a/
gst/gsttaskpool.h
+++ b/
gst/gsttaskpool.h
@@
-15,8
+15,8
@@
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
- * Free Software Foundation, Inc., 5
9 Temple Place - Suite 330
,
- * Boston, MA 0211
1-1307
, USA.
+ * Free Software Foundation, Inc., 5
1 Franklin St, Fifth Floor
,
+ * Boston, MA 0211
0-1301
, USA.
*/
#ifndef __GST_TASK_POOL_H__
*/
#ifndef __GST_TASK_POOL_H__
@@
-40,13
+40,11
@@
typedef struct _GstTaskPoolClass GstTaskPoolClass;
/**
* GstTaskPoolFunction:
/**
* GstTaskPoolFunction:
- * @data: user data for the task function
+ * @
user_
data: user data for the task function
*
* Task function, see gst_task_pool_push().
*
* Task function, see gst_task_pool_push().
- *
- * Since: 0.10.24
*/
*/
-typedef void (*GstTaskPoolFunction) (void *data);
+typedef void (*GstTaskPoolFunction) (void *
user_
data);
/**
* GstTaskPool:
/**
* GstTaskPool:
@@
-87,17
+85,28
@@
struct _GstTaskPoolClass {
gpointer _gst_reserved[GST_PADDING];
};
gpointer _gst_reserved[GST_PADDING];
};
+GST_API
GType gst_task_pool_get_type (void);
GType gst_task_pool_get_type (void);
+GST_API
GstTaskPool * gst_task_pool_new (void);
GstTaskPool * gst_task_pool_new (void);
+
+GST_API
void gst_task_pool_prepare (GstTaskPool *pool, GError **error);
void gst_task_pool_prepare (GstTaskPool *pool, GError **error);
+GST_API
gpointer gst_task_pool_push (GstTaskPool *pool, GstTaskPoolFunction func,
gpointer user_data, GError **error);
gpointer gst_task_pool_push (GstTaskPool *pool, GstTaskPoolFunction func,
gpointer user_data, GError **error);
+GST_API
void gst_task_pool_join (GstTaskPool *pool, gpointer id);
void gst_task_pool_join (GstTaskPool *pool, gpointer id);
+GST_API
void gst_task_pool_cleanup (GstTaskPool *pool);
void gst_task_pool_cleanup (GstTaskPool *pool);
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTaskPool, gst_object_unref)
+#endif
+
G_END_DECLS
#endif /* __GST_TASK_POOL_H__ */
G_END_DECLS
#endif /* __GST_TASK_POOL_H__ */