mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-25 22:40:50 +00:00

This allows the Redfish plugin to "just work" when there is no username or password in the SMBIOS data. Using KCS we can create an admin account from the host OS and then automatically enumerate devices.
36 lines
971 B
C
36 lines
971 B
C
/*
|
|
* Copyright (C) 2021 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <fwupdplugin.h>
|
|
|
|
#define FU_TYPE_IPMI_DEVICE (fu_ipmi_device_get_type())
|
|
G_DECLARE_FINAL_TYPE(FuIpmiDevice, fu_ipmi_device, FU, IPMI_DEVICE, FuUdevDevice)
|
|
|
|
FuIpmiDevice *
|
|
fu_ipmi_device_new(FuContext *ctx);
|
|
gchar *
|
|
fu_ipmi_device_get_user_password(FuIpmiDevice *self, guint8 user_id, GError **error);
|
|
gboolean
|
|
fu_ipmi_device_set_user_name(FuIpmiDevice *self,
|
|
guint8 user_id,
|
|
const gchar *username,
|
|
GError **error);
|
|
gboolean
|
|
fu_ipmi_device_set_user_password(FuIpmiDevice *self,
|
|
guint8 user_id,
|
|
const gchar *password,
|
|
GError **error);
|
|
gboolean
|
|
fu_ipmi_device_set_user_enable(FuIpmiDevice *self, guint8 user_id, gboolean enable, GError **error);
|
|
gboolean
|
|
fu_ipmi_device_set_user_priv(FuIpmiDevice *self,
|
|
guint8 user_id,
|
|
guint8 priv_limit,
|
|
guint8 channel,
|
|
GError **error);
|