/* $Id$ * Client fuse interface handling of 'GnomeVFSResult' for libcaptive * Copyright (C) 2005 Jan Kratochvil * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; exactly version 2 of June 1991 is required * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "config.h" #include #include #include #include #include #include "gnomevfsresult.h" /* self */ /* Config: */ #define ERRNO_VALUE_MAX 0x400 /* map: GINT_TO_POINTER(GnomeVFSResult) -> GINT_TO_POINTER(errno) */ static GHashTable *gnomevfsresult_to_errno_hash; static void gnomevfsresult_to_errno_hash_init(void) { int errno_i; if (gnomevfsresult_to_errno_hash) return; gnomevfsresult_to_errno_hash=g_hash_table_new(g_direct_hash,g_direct_equal); for (errno_i=1;errno_i