00001 // vim:expandtab:autoindent:tabstop=4:shiftwidth=4:filetype=c: 00002 /* 00003 * Copyright (C) 2005 Dell Inc. 00004 * by Michael Brown <Michael_E_Brown@dell.com> 00005 * Licensed under the Open Software License version 2.1 00006 * 00007 * Alternatively, you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published 00009 * by the Free Software Foundation; either version 2 of the License, 00010 * or (at your option) any later version. 00011 00012 * This program is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00015 * See the GNU General Public License for more details. 00016 */ 00017 00018 00019 #ifndef C_SYSTEM_INFO_H 00020 #define C_SYSTEM_INFO_H 00021 00022 // include smbios_c/compat.h first 00023 #include "smbios_c/compat.h" 00024 #include "smbios_c/types.h" 00025 00026 EXTERN_C_BEGIN; 00027 00032 const char * DLL_SPEC smbios_get_library_version_string(); 00034 int DLL_SPEC smbios_get_library_version_major(); 00036 int DLL_SPEC smbios_get_library_version_minor(); 00037 00038 00040 00044 int DLL_SPEC sysinfo_get_dell_system_id(); 00045 00052 char * DLL_SPEC sysinfo_get_vendor_name(); 00053 00060 char * DLL_SPEC sysinfo_get_system_name(); 00061 00068 char * DLL_SPEC sysinfo_get_bios_version(); 00069 00076 char * DLL_SPEC sysinfo_get_asset_tag(); 00077 00084 char * DLL_SPEC sysinfo_get_service_tag(); 00085 00092 char * DLL_SPEC sysinfo_get_property_ownership_tag(); 00093 00100 int DLL_SPEC sysinfo_set_property_ownership_tag(const char *newTag, const char *pass_ascii, const char *pass_scancode); 00101 00112 int DLL_SPEC sysinfo_set_asset_tag(const char *assetTag, const char *pass_ascii, const char *pass_scancode); 00113 00118 const char * DLL_SPEC sysinfo_strerror(); 00119 00124 void DLL_SPEC sysinfo_string_free(void *); 00125 00126 // experimental functions 00127 int DLL_SPEC sysinfo_has_nvram_state_bytes(); 00128 int DLL_SPEC sysinfo_get_nvram_state_bytes( int user ); 00129 void DLL_SPEC sysinfo_set_nvram_state_bytes(int value, int user); 00130 00131 int DLL_SPEC sysinfo_has_up_boot_flag(); 00132 int DLL_SPEC sysinfo_set_up_boot_flag(int state); 00133 int DLL_SPEC sysinfo_get_up_boot_flag(); 00134 00135 EXTERN_C_END; 00136 00137 #endif /* SYSTEMINFO_H */