libsmbios_c library
system_info.h
Go to the documentation of this file.
1// vim:expandtab:autoindent:tabstop=4:shiftwidth=4:filetype=c:
2/*
3 * Copyright (C) 2005 Dell Inc.
4 * by Michael Brown <Michael_E_Brown@dell.com>
5 * Licensed under the Open Software License version 2.1
6 *
7 * Alternatively, you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published
9 * by the Free Software Foundation; either version 2 of the License,
10 * or (at your option) any later version.
11
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU General Public License for more details.
16 */
17
18
19#ifndef C_SYSTEM_INFO_H
20#define C_SYSTEM_INFO_H
21
22// include smbios_c/compat.h first
23#include "smbios_c/compat.h"
24#include "smbios_c/types.h"
25
27
37
38
40
48
49
51
67
75
83
91
99
107
115
122LIBSMBIOS_C_DLL_SPEC int sysinfo_set_property_ownership_tag(const char *newTag, const char *pass_ascii, const char *pass_scancode);
123
134LIBSMBIOS_C_DLL_SPEC int sysinfo_set_asset_tag(const char *assetTag, const char *pass_ascii, const char *pass_scancode);
135
141
147
148// experimental functions
152
156
158
159#endif /* SYSTEMINFO_H */
#define LIBSMBIOS_C_DLL_SPEC
Definition compat.h:48
#define EXTERN_C_BEGIN
Definition compat.h:55
#define EXTERN_C_END
Definition compat.h:56
LIBSMBIOS_C_DLL_SPEC int sysinfo_has_up_boot_flag()
LIBSMBIOS_C_DLL_SPEC int smbios_get_library_version_major()
Return a number representing the major version of the libsmbios library.
LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_asset_tag()
Return a buffer containing the system asset tag string.
LIBSMBIOS_C_DLL_SPEC void sysinfo_string_free(void *)
Free string.
LIBSMBIOS_C_DLL_SPEC int sysinfo_set_property_ownership_tag(const char *newTag, const char *pass_ascii, const char *pass_scancode)
Set system property ownership tag.
LIBSMBIOS_C_DLL_SPEC const char * smbios_get_library_version_string()
Return a string representing the version of the libsmbios library.
LIBSMBIOS_C_DLL_SPEC int sysinfo_get_dell_oem_system_id()
Return the Dell OEM System ID Byte or Word.
LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_property_ownership_tag()
copy property ownership tag into user-supplied buffer.
LIBSMBIOS_C_DLL_SPEC int sysinfo_set_up_boot_flag(int state)
LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_vendor_name()
Return a buffer containing the system vendor name.
LIBSMBIOS_C_DLL_SPEC const char * sysinfo_strerror()
Returns string describing the last error condition.
LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_bios_version()
Return a buffer containing the system bios version string.
LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_system_name()
Return a buffer containing the system name.
LIBSMBIOS_C_DLL_SPEC int sysinfo_has_nvram_state_bytes()
LIBSMBIOS_C_DLL_SPEC int sysinfo_get_up_boot_flag()
LIBSMBIOS_C_DLL_SPEC int sysinfo_set_asset_tag(const char *assetTag, const char *pass_ascii, const char *pass_scancode)
set the system asset tag.
LIBSMBIOS_C_DLL_SPEC void sysinfo_set_nvram_state_bytes(int value, int user)
LIBSMBIOS_C_DLL_SPEC int sysinfo_get_nvram_state_bytes(int user)
LIBSMBIOS_C_DLL_SPEC int sysinfo_get_dell_system_id()
Return the Dell System ID Byte or Word.
LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_service_tag()
Return a buffer containing the system service tag string.
LIBSMBIOS_C_DLL_SPEC int smbios_get_library_version_minor()
Return a number representing the minor version of the libsmbios library.