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, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 #ifndef DEBIAN_INSTALLER__TYPES_H 00022 #define DEBIAN_INSTALLER__TYPES_H 00023 00024 #include <stdbool.h> 00025 #include <stdint.h> 00026 #include <sys/types.h> 00027 00038 typedef int di_compare_func (const void *key1, const void *key2); 00045 typedef bool di_equal_func (const void *key1, const void *key2); 00050 typedef void di_destroy_notify (void *data); 00056 typedef uint32_t di_hash_func (const void *key); 00057 typedef void di_hfunc (void *key, void *value, void *user_data); 00058 typedef void di_func (void *data, void *user_data); 00059 00066 typedef int di_io_handler (const char *buf, size_t len, void *user_data); 00067 00073 typedef int di_process_handler (pid_t pid, void *user_data); 00074 00078 typedef uint32_t di_ksize_t; 00079 00081 #endif