Files
qdl/src/programmer.h
Igor Opaniuk ec78a4881e qdl: extract programmer archive handling into programmer.c
qdl.c has grown into the tool's junk drawer, and the Sahara programmer
plumbing is its largest self-contained tenant: the specifier-to-image
mapping, the CPIO archive decoder and, since the sahara-archive
subcommand arrived, the matching writer. None of it depends on the CLI
front-end it lives in, but burying it there couples it to main()'s
compilation unit, keeps the decoder and writer of the same format at
opposite ends of a 1500-line file, and puts the logic out of unit
tests' reach. Move the lot into programmer.c, where the format has one
home and the front-end shrinks to argument handling.

Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
2026-08-25 14:34:28 +02:00

12 lines
356 B
C

/* SPDX-License-Identifier: BSD-3-Clause */
#ifndef __PROGRAMMER_H__
#define __PROGRAMMER_H__
struct sahara_image;
int decode_programmer(char *s, struct sahara_image *images);
int decode_programmer_archive(struct sahara_image *blob, struct sahara_image *images);
int sahara_archive_write(const char *filename, const struct sahara_image *images);
#endif