mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
b6bdd7744a
Use `pv_` namespace for our Buffer implementation so a symbol clash with other libraries is less likely. Fixes: https://github.com/ibm-s390-linux/s390-tools/issues/109 Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
/*
|
|
* PV components related definitions and functions
|
|
*
|
|
* Copyright IBM Corp. 2020
|
|
*
|
|
* s390-tools is free software; you can redistribute it and/or modify
|
|
* it under the terms of the MIT license. See LICENSE for details.
|
|
*/
|
|
|
|
#ifndef PV_COMPS_H
|
|
#define PV_COMPS_H
|
|
|
|
#include <glib.h>
|
|
#include <openssl/evp.h>
|
|
#include <stdint.h>
|
|
|
|
#include "boot/s390.h"
|
|
#include "boot/stage3b.h"
|
|
#include "utils/buffer.h"
|
|
|
|
#include "pv_comp.h"
|
|
|
|
typedef struct _pv_img_comps PvImgComps;
|
|
|
|
PvImgComps *pv_img_comps_new(const EVP_MD *ald_md, const EVP_MD *pld_md,
|
|
const EVP_MD *tld_md, GError **err);
|
|
guint pv_img_comps_length(const PvImgComps *comps);
|
|
GSList *pv_img_comps_get_comps(const PvImgComps *comps);
|
|
struct stage3b_args *pv_img_comps_get_stage3b_args(const PvImgComps *comps,
|
|
struct psw_t *psw);
|
|
gint pv_img_comps_add_component(PvImgComps *comps, PvComponent **comp,
|
|
GError **err);
|
|
PvComponent *pv_img_comps_get_nth_comp(PvImgComps *comps, guint n);
|
|
gint pv_img_comps_set_offset(PvImgComps *comps, gsize offset, GError **err);
|
|
gint pv_img_comps_finalize(PvImgComps *comps, PvBuffer **pld_digest,
|
|
PvBuffer **ald_digest, PvBuffer **tld_digest,
|
|
uint64_t *nep, GError **err);
|
|
void pv_img_comps_free(PvImgComps *comps);
|
|
|
|
WRAPPED_G_DEFINE_AUTOPTR_CLEANUP_FUNC(PvImgComps, pv_img_comps_free)
|
|
|
|
#endif
|