mirror of
https://github.com/knutwurst/patchdl.git
synced 2026-10-19 20:01:02 +02:00
Full GPL-3.0 text in LICENSE, SPDX-License-Identifier header on every
source file, README license section updated. Copyright (C) 2026 Knutwurst.
Tidied a couple of stale comments in patchdl_tile.{c,h} while at it.
25 lines
1.1 KiB
C
25 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-3.0-or-later
|
|
* Copyright (C) 2026 Knutwurst
|
|
*
|
|
* PatchDL is free software: you can redistribute it and/or modify it under
|
|
* the terms of the GNU General Public License as published by the Free
|
|
* Software Foundation, either version 3 of the License, or (at your option)
|
|
* any later version. See the LICENSE file in the project root for details.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
char compatible_version[16]; /* highest pkg with system_ver <= fw_bin, or "" */
|
|
char latest_version[16]; /* highest pkg overall, or "" */
|
|
char latest_required_fw[16]; /* fw str for latest pkg, e.g. "11.60", or "" */
|
|
char compatible_url[512]; /* manifest_url if present, otherwise pkg URL */
|
|
char delta_url[512]; /* DP.pkg bootstrap URL (always a PKG, never JSON) */
|
|
char compatible_title[16]; /* target title id from version.xml/manifest_url */
|
|
char compatible_storage_title[16]; /* title id embedded in delta_url storage path */
|
|
} patchdl_verinfo_t;
|
|
|
|
int patchdl_verxml_query(const char *url, uint32_t fw_bin, patchdl_verinfo_t *out);
|