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 LIBSMBIOS_C_DLL_SPEC const char * smbios_get_library_version_string(); 00034 LIBSMBIOS_C_DLL_SPEC int smbios_get_library_version_major(); 00036 LIBSMBIOS_C_DLL_SPEC int smbios_get_library_version_minor(); 00037 00038 00040 00044 LIBSMBIOS_C_DLL_SPEC int sysinfo_get_dell_system_id(); 00045 00052 LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_vendor_name(); 00053 00060 LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_system_name(); 00061 00068 LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_bios_version(); 00069 00076 LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_asset_tag(); 00077 00084 LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_service_tag(); 00085 00092 LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_property_ownership_tag(); 00093 00100 LIBSMBIOS_C_DLL_SPEC int sysinfo_set_property_ownership_tag(const char *newTag, const char *pass_ascii, const char *pass_scancode); 00101 00112 LIBSMBIOS_C_DLL_SPEC int sysinfo_set_asset_tag(const char *assetTag, const char *pass_ascii, const char *pass_scancode); 00113 00118 LIBSMBIOS_C_DLL_SPEC const char * sysinfo_strerror(); 00119 00124 LIBSMBIOS_C_DLL_SPEC void sysinfo_string_free(void *); 00125 00126 // experimental functions 00127 LIBSMBIOS_C_DLL_SPEC int sysinfo_has_nvram_state_bytes(); 00128 LIBSMBIOS_C_DLL_SPEC int sysinfo_get_nvram_state_bytes( int user ); 00129 LIBSMBIOS_C_DLL_SPEC void sysinfo_set_nvram_state_bytes(int value, int user); 00130 00131 LIBSMBIOS_C_DLL_SPEC int sysinfo_has_up_boot_flag(); 00132 LIBSMBIOS_C_DLL_SPEC int sysinfo_set_up_boot_flag(int state); 00133 LIBSMBIOS_C_DLL_SPEC int sysinfo_get_up_boot_flag(); 00134 00135 EXTERN_C_END; 00136 00137 #endif /* SYSTEMINFO_H */