libdebian-installer
|
00001 /* 00002 * types.h 00003 * 00004 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald 00005 * 2003 Bastian Blank <waldi@debian.org> 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 00020 * 00021 * $Id$ 00022 */ 00023 00024 #ifndef DEBIAN_INSTALLER__TYPES_H 00025 #define DEBIAN_INSTALLER__TYPES_H 00026 00027 #include <stdbool.h> 00028 #include <stdint.h> 00029 #include <sys/types.h> 00030 00041 typedef int di_compare_func (const void *key1, const void *key2); 00048 typedef bool di_equal_func (const void *key1, const void *key2); 00053 typedef void di_destroy_notify (void *data); 00059 typedef uint32_t di_hash_func (const void *key); 00060 typedef void di_hfunc (void *key, void *value, void *user_data); 00061 typedef void di_func (void *data, void *user_data); 00062 00069 typedef int di_io_handler (const char *buf, size_t len, void *user_data); 00070 00076 typedef int di_process_handler (pid_t pid, void *user_data); 00077 00081 typedef uint32_t di_ksize_t; 00082 00084 #endif