* A wrapper around av_refstruct_alloc_ext_c() for the common case * of a non-const qualified opaque. * * @see av_refstruct_alloc_ext_c() */
| 91 | * @see av_refstruct_alloc_ext_c() |
| 92 | */ |
| 93 | static inline |
| 94 | void *av_refstruct_alloc_ext(size_t size, unsigned flags, void *opaque, |
| 95 | void (*free_cb)(AVRefStructOpaque opaque, void *obj)) |
| 96 | { |
| 97 | return av_refstruct_alloc_ext_c(size, flags, (AVRefStructOpaque){.nc = opaque}, |
| 98 | free_cb); |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Equivalent to av_refstruct_alloc_ext(size, 0, NULL, NULL) |
no test coverage detected