libsmbios_c library
/builddir/build/BUILD/libsmbios-2.2.28/src/include/smbios_c/system_info.h
Go to the documentation of this file.
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 
00047 LIBSMBIOS_C_DLL_SPEC  int  sysinfo_get_dell_system_id();
00048 
00049 
00051 
00066 LIBSMBIOS_C_DLL_SPEC  int  sysinfo_get_dell_oem_system_id();
00067 
00074 LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_vendor_name();
00075 
00082 LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_system_name();
00083 
00090 LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_bios_version();
00091 
00098 LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_asset_tag();
00099 
00106 LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_service_tag();
00107 
00114 LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_property_ownership_tag();
00115 
00122 LIBSMBIOS_C_DLL_SPEC int sysinfo_set_property_ownership_tag(const char *newTag, const char *pass_ascii, const char *pass_scancode);
00123 
00134 LIBSMBIOS_C_DLL_SPEC int sysinfo_set_asset_tag(const char *assetTag, const char *pass_ascii, const char *pass_scancode);
00135 
00140 LIBSMBIOS_C_DLL_SPEC const char * sysinfo_strerror();
00141 
00146 LIBSMBIOS_C_DLL_SPEC  void sysinfo_string_free(void *);
00147 
00148 // experimental functions
00149 LIBSMBIOS_C_DLL_SPEC int sysinfo_has_nvram_state_bytes();
00150 LIBSMBIOS_C_DLL_SPEC int sysinfo_get_nvram_state_bytes( int user );
00151 LIBSMBIOS_C_DLL_SPEC void sysinfo_set_nvram_state_bytes(int value, int user);
00152 
00153 LIBSMBIOS_C_DLL_SPEC int sysinfo_has_up_boot_flag();
00154 LIBSMBIOS_C_DLL_SPEC int sysinfo_set_up_boot_flag(int state);
00155 LIBSMBIOS_C_DLL_SPEC int sysinfo_get_up_boot_flag();
00156 
00157 EXTERN_C_END;
00158 
00159 #endif  /* SYSTEMINFO_H */