1 /* GStreamer 2 * Copyright (C) <2009> Wim Taymans <wim.taymans@gmail.com> 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Library General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Library General Public License for more details. 13 * 14 * You should have received a copy of the GNU Library General Public 15 * License along with this library; if not, write to the 16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 17 * Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef __TEST_RT_POOL_H__ 21 #define __TEST_RT_POOL_H__ 22 23 #include <gst/gst.h> 24 25 G_BEGIN_DECLS 26 27 /* --- standard type macros --- */ 28 #define TEST_TYPE_RT_POOL (test_rt_pool_get_type ()) 29 #define TEST_RT_POOL(pool) (G_TYPE_CHECK_INSTANCE_CAST ((pool), TEST_TYPE_RT_POOL, TestRTPool)) 30 #define TEST_IS_RT_POOL(pool) (G_TYPE_CHECK_INSTANCE_TYPE ((pool), TEST_TYPE_RT_POOL)) 31 #define TEST_RT_POOL_CLASS(pclass) (G_TYPE_CHECK_CLASS_CAST ((pclass), TEST_TYPE_RT_POOL, TestRTPoolClass)) 32 #define TEST_IS_RT_POOL_CLASS(pclass) (G_TYPE_CHECK_CLASS_TYPE ((pclass), TEST_TYPE_RT_POOL)) 33 #define TEST_RT_POOL_GET_CLASS(pool) (G_TYPE_INSTANCE_GET_CLASS ((pool), TEST_TYPE_RT_POOL, TestRTPoolClass)) 34 #define TEST_RT_POOL_CAST(pool) ((TestRTPool*)(pool)) 35 36 typedef struct _TestRTPool TestRTPool; 37 typedef struct _TestRTPoolClass TestRTPoolClass; 38 39 struct _TestRTPool { 40 GstTaskPool object; 41 }; 42 43 struct _TestRTPoolClass { 44 GstTaskPoolClass parent_class; 45 }; 46 47 GType test_rt_pool_get_type (void); 48 49 GstTaskPool * test_rt_pool_new (void); 50 51 G_END_DECLS 52 53 #endif /* __TEST_RT_POOL_H__ */ 54