mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-16 11:57:32 +00:00
32 lines
1.0 KiB
C
32 lines
1.0 KiB
C
/*
|
|
* Copyright (C) 2017 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <fwupdplugin.h>
|
|
|
|
#define FU_REDFISH_TYPE_BACKEND (fu_redfish_backend_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (FuRedfishBackend, fu_redfish_backend, FU, REDFISH_BACKEND, FuBackend)
|
|
|
|
FuRedfishBackend *fu_redfish_backend_new (FuContext *ctx);
|
|
void fu_redfish_backend_set_hostname (FuRedfishBackend *self,
|
|
const gchar *hostname);
|
|
void fu_redfish_backend_set_username (FuRedfishBackend *self,
|
|
const gchar *username);
|
|
void fu_redfish_backend_set_password (FuRedfishBackend *self,
|
|
const gchar *password);
|
|
void fu_redfish_backend_set_port (FuRedfishBackend *self,
|
|
guint port);
|
|
void fu_redfish_backend_set_https (FuRedfishBackend *self,
|
|
gboolean use_https);
|
|
void fu_redfish_backend_set_cacheck (FuRedfishBackend *self,
|
|
gboolean cacheck);
|
|
gboolean fu_redfish_backend_update (FuRedfishBackend *self,
|
|
FuDevice *device,
|
|
GBytes *blob_fw,
|
|
GError **error);
|