mirror of
https://github.com/linux-msm/qdl.git
synced 2026-10-07 06:29:17 -07:00
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>
12 lines
356 B
C
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
|