1 struct rtpp_pcache; 2 struct rtpp_pcache_fd; 3 4 #if !defined(DEFINE_METHOD) 5 #error "rtpp_types.h" needs to be included 6 #endif 7 8 DEFINE_METHOD(rtpp_pcache, rtpp_pcache_dtor, void); 9 DEFINE_METHOD(rtpp_pcache, rtpp_pcache_open, struct rtpp_pcache_fd *, const char *); 10 DEFINE_METHOD(rtpp_pcache, rtpp_pcache_read, int, struct rtpp_pcache_fd *, void *, size_t); 11 DEFINE_METHOD(rtpp_pcache, rtpp_pcache_close, void, struct rtpp_pcache_fd *); 12 13 struct rtpp_pcache_priv; 14 15 struct rtpp_pcache 16 { 17 rtpp_pcache_open_t open; 18 rtpp_pcache_read_t read; 19 rtpp_pcache_close_t close; 20 rtpp_pcache_dtor_t dtor; 21 struct rtpp_pcache_priv *pvt; 22 }; 23 24 struct rtpp_pcache *rtpp_pcache_ctor(void); 25