search for: g_mapped_file_new

Displaying 2 results from an estimated 2 matches for "g_mapped_file_new".

2007 Oct 29
0
libswfdec/swfdec_buffer.c
...ta, gpointer priv) * @filename: file to read * @error: return location for a #GError or %NULL * - * Tries to create a buffer for the given @filename using a #GMappedFile. If - * the creation fails, %NULL is returned and @error is set. The error can be - * any of the errors that are valid from g_mapped_file_new(). + * Creates a buffer containing the contents of the given file. If loading the + * file fails, %NULL is returned and @error is set. The error can be + * any of the errors that are valid for g_file_get_contents(). * * Returns: a new #SwfdecBuffer or %NULL on failure **/ @@ -250,22 +250,25 @...
2007 Mar 22
0
7 commits - configure.ac doc/swfdec-docs.sgml libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_js_movie.c test/trace
...fer_new_from_file: + * @filename: file to read + * @error: return location for a #GError or %NULL + * + * Tries to create a buffer for the given @filename using a #GMappedFile. If + * the creation fails, %NULL is returned and @error is set. The error can be + * any of the errors that are valid from g_mapped_file_new(). + * + * Returns: a new #SwfdecBuffer or %NULL on failure + **/ SwfdecBuffer * swfdec_buffer_new_from_file (const char *filename, GError **error) { @@ -130,16 +228,37 @@ swfdec_buffer_new_from_file (const char return buffer; } +/** + * swfdec_buffer_ref: + * @buffer: a #SwfdecBuffer + *...