]> git.sesse.net Git - vlc/blobdiff - include/vlc_block.h
block_File: loads a file into a block_t
[vlc] / include / vlc_block.h
index 780c44f736cc5a392cd13a99c78b570f99b00062..287e4099fc83aa4a21f3dd82780531b86c9a653f 100644 (file)
@@ -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