X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_block.h;h=287e4099fc83aa4a21f3dd82780531b86c9a653f;hb=2ec9d996a737986148acb5c1ce61058e9b3e4ff4;hp=780c44f736cc5a392cd13a99c78b570f99b00062;hpb=c65b4ea96c47550a8876513222aab4b81cfc42dd;p=vlc diff --git a/include/vlc_block.h b/include/vlc_block.h index 780c44f736..287e4099fc 100644 --- a/include/vlc_block.h +++ b/include/vlc_block.h @@ -148,17 +148,8 @@ static inline void block_Release( block_t *p_block ) p_block->pf_release( p_block ); } -/** - * Creates a block from a virtual address memory mapping (mmap). - * This is provided by LibVLC so that mmap blocks can safely be deallocated - * even after the allocating plugin has been unloaded from memory. - * - * @param addr base address of the mapping (as returned by mmap) - * @param length length (bytes) of the mapping (as passed to mmap) - * @return NULL if addr is MAP_FAILED, or an error occurred (in the later - * case, munmap(addr, length) is invoked before returning). - */ VLC_EXPORT( block_t *, block_mmap_Alloc, (void *addr, size_t length) ); +VLC_EXPORT( block_t *, block_File, (int fd) ); /**************************************************************************** * Chains of blocks functions helper