Add files via upload

This commit is contained in:
Yutaka Sawada
2023-03-12 11:02:25 +09:00
committed by GitHub
parent dcd8047d73
commit dd85bf7e4f
23 changed files with 15389 additions and 0 deletions

42
source/par2j/search.h Normal file
View File

@@ -0,0 +1,42 @@
#ifndef _SEARCH_H_
#define _SEARCH_H_
#ifdef __cplusplus
extern "C" {
#endif
// リカバリ・ファイルを検索してファイル・リストに追加する
int search_recovery_files(void);
// Main packet を末尾から遡って探す
int search_main_packet(
unsigned char *buf, // 作業バッファー、File ID が戻る
unsigned char *set_id); // Recovery Set ID が戻る
// ファイル情報のパケットを探す
int search_file_packet(
char *ascii_buf,
unsigned char *buf, // 作業バッファー
wchar_t *par_commentU, // Unicode コメントを入れる
unsigned char *set_id, // Recovery Set ID を確かめる
int flag_sanitize, // 0以外 = ファイル名を浄化する
file_ctx_r *files); // 各ソース・ファイルの情報
// 修復用のパケットを探す
int search_recovery_packet(
char *ascii_buf,
unsigned char *buf, // 作業バッファー
wchar_t *uni_buf,
unsigned char *set_id, // Recovery Set ID を確かめる
HANDLE *rcv_hFile, // (verify NULL)
file_ctx_r *files, // 各ソース・ファイルの情報
source_ctx_r *s_blk, // 各ソース・ブロックの情報
parity_ctx_r *p_blk); // 各パリティ・ブロックの情報
#ifdef __cplusplus
}
#endif
#endif