pmt: initial 1.8.0 update

This commit is contained in:
2024-04-25 22:08:30 +03:00
committed by GitHub
parent afc958aeb4
commit 412b697b9c

View File

@@ -1,7 +1,7 @@
/* By YZBruh */
/*
* Copyright 2024 YZBruh - Partition Manager
* Copyright 2024 Partition Manager
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,12 +28,12 @@ extern "C" {
#endif
/* compiler architecture if arm is not 32-bit or 64-bit, the compilation is stopped */
#if ! defined __arm__ || __aarch64__ || __aarch32__ || __armv8__ || __armv7l__
#if ! __SIZEOF_POINTER__ == 4 || ! __SIZEOF_POINTER__ == 8
#error "only 32-bit or 64-bit arm compilers can be used"
#endif
#ifndef _COMMON_H_
#define _COMMON_H_
#ifndef _PMT_H
#define _PMT_H
/* color definations */
#define ANSI_RED "\033[31m"
@@ -42,8 +42,8 @@ extern "C" {
#define ANSI_RESET "\033[0m"
/* info */
#define PMT_VERSION "1.7.0"
#define PMT_VERSION_CODE "170"
#define PMT_VERSION "1.8.0"
#define PMT_VERSION_CODE "180"
#define PMT_PACKAGE_NAME "Partition Manager"
#define PMT_PACKAGE_LANG "en"
@@ -53,12 +53,14 @@ extern char *outdir;
extern char *cust_cxt;
extern char *target_partition;
extern char *target_flash_file;
extern char *format_fs;
extern bool pmt_use_logical;
extern bool pmt_use_cust_cxt;
extern bool pmt_ab;
extern bool pmt_logical;
extern bool pmt_flash;
extern bool pmt_backup;
extern bool pmt_format;
extern bool pmt_force_mode;
/* function definations */
@@ -68,6 +70,7 @@ void check_psf();
void check_root();
void backup(char *target_backup_partition, char *backup_partition_style);
void flash(char *target_flash_partition, char *target_file, char *flash_partition_style);
void format(char *target_format_partition, char *format_partition_style);
void help();
void licenses();
@@ -76,4 +79,5 @@ void licenses();
#ifdef __cplusplus
}
#endif
/* end of code */