00001 /* 00002 * kernel_libs/data_structures/data_str.c 00003 * 00004 * Copyright (c) 2003-2004 Lukasz Dembinski <dembol@nasa.com.pl> 00005 * All Rights Reserved 00006 * 00007 * Date: 2004/01 00008 * Author: Lukasz Dembinski 00009 * Info: data_str.c core file 00010 * Contact: mailto: <dembol@nasa.com.pl> 00011 * 00012 */ 00013 00014 #include <agnix/agnix.h> 00015 #include <agnix/console.h> 00016 00017 #define MOD_NAME "DATA_STR: " 00018 00019 extern int hash_static_init(void); 00020 extern int btree_init(void); 00021 00022 int data_structures_init(void) 00023 { 00024 if (hash_static_init() < 0) 00025 kernel_panic(MOD_NAME "Static hashing init error!"); 00026 00027 if (btree_init() < 0) 00028 kernel_panic(MOD_NAME "Btree init error!"); 00029 00030 return 0; 00031 }