epoc32/include/stdapis/glib-2.0/glib/gmappedfile.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/stdapis/glib-2.0/glib/gmappedfile.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/glib-2.0/glib/gmappedfile.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,41 @@
     1.4 -gmappedfile.h
     1.5 +/* GLIB - Library of useful routines for C programming
     1.6 + * gmappedfile.h: Simplified wrapper around the mmap function
     1.7 + *
     1.8 + * Copyright 2005 Matthias Clasen
     1.9 + * Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
    1.10 + *
    1.11 + * This library is free software; you can redistribute it and/or
    1.12 + * modify it under the terms of the GNU Lesser General Public
    1.13 + * License as published by the Free Software Foundation; either
    1.14 + * version 2 of the License, or (at your option) any later version.
    1.15 + *
    1.16 + * This library is distributed in the hope that it will be useful,
    1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.19 + * Lesser General Public License for more details.
    1.20 + *
    1.21 + * You should have received a copy of the GNU Lesser General Public
    1.22 + * License along with this library; if not, write to the
    1.23 + * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    1.24 + * Boston, MA 02111-1307, USA.
    1.25 + */
    1.26 +#ifndef __G_MAPPED_FILE_H__
    1.27 +#define __G_MAPPED_FILE_H__
    1.28 +
    1.29 +#include <_ansi.h>
    1.30 +#include <glib/gerror.h>
    1.31 +
    1.32 +G_BEGIN_DECLS
    1.33 +
    1.34 +typedef struct _GMappedFile GMappedFile;
    1.35 +
    1.36 +IMPORT_C GMappedFile *g_mapped_file_new          (const gchar  *filename,
    1.37 +				         gboolean      writable,
    1.38 +				         GError      **error) G_GNUC_MALLOC;
    1.39 +IMPORT_C gsize        g_mapped_file_get_length   (GMappedFile  *file);
    1.40 +IMPORT_C gchar       *g_mapped_file_get_contents (GMappedFile  *file);
    1.41 +IMPORT_C void         g_mapped_file_free         (GMappedFile  *file);
    1.42 +
    1.43 +G_END_DECLS
    1.44 +
    1.45 +#endif /* __G_MAPPED_FILE_H__ */