Files
libbsarch/libbsarch.cpp
T

154 lines
4.4 KiB
C++
Raw Normal View History

2019-04-10 05:23:38 +02:00
#ifndef BSARCH_DLL_EXPORT
#define BSARCH_DLL_EXPORT 1
#endif
#include "libbsarch.h"
BSARCH_DLL_API(bsa_entry_list_t) bsa_entry_list_create() {
return NULL;
}
BSARCH_DLL_API(bsa_result_message_t) bsa_entry_list_free(bsa_entry_list_t entry_list) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(uint32_t) bsa_entry_list_count(bsa_entry_list_t entry_list) {
2019-04-10 05:23:38 +02:00
return 0;
}
BSARCH_DLL_API(bsa_result_message_t) bsa_entry_list_add(bsa_entry_list_t entry_list, const wchar_t *entry_string) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(uint32_t) bsa_entry_list_get(bsa_entry_list_t entry_list, uint32_t index, uint32_t string_buffer_size, const wchar_t *string_buffer) {
2019-04-10 05:23:38 +02:00
return 0;
}
BSARCH_DLL_API(bsa_archive_t) bsa_create() {
return NULL;
}
BSARCH_DLL_API(bsa_result_message_t) bsa_free(bsa_archive_t archive) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
BSARCH_DLL_API(bsa_result_message_t) bsa_load_from_file(bsa_archive_t archive, const wchar_t *file_path) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
BSARCH_DLL_API(bsa_result_message_t) bsa_create_archive(bsa_archive_t archive, const wchar_t *file_path, bsa_archive_type_t archive_type, bsa_entry_list_t entry_list) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
BSARCH_DLL_API(bsa_result_message_t) bsa_save(bsa_archive_t archive) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
BSARCH_DLL_API(bsa_result_message_t) bsa_add_file_from_disk(bsa_archive_t archive, const wchar_t *file_path, const wchar_t *source_path) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
BSARCH_DLL_API(bsa_result_message_t) bsa_add_file_from_disk_root(bsa_archive_t archive, const wchar_t* root_dir, const wchar_t* source_path) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
BSARCH_DLL_API(bsa_result_message_t) bsa_add_file_from_memory(bsa_archive_t archive, const wchar_t *file_path, uint32_t size, bsa_buffer_t data) {
return { 0 };
}
BSARCH_DLL_API(bsa_file_record_t) bsa_find_file_record(bsa_archive_t archive, const wchar_t *file_path) {
2019-04-10 05:23:38 +02:00
return NULL;
}
BSARCH_DLL_API(bsa_result_message_buffer_t) bsa_extract_file_data_by_record(bsa_archive_t archive, bsa_file_record_t file_record) {
2019-04-10 05:23:38 +02:00
return { 0 };
}
BSARCH_DLL_API(bsa_result_message_buffer_t) bsa_extract_file_data_by_filename(bsa_archive_t archive, const wchar_t *file_path) {
2019-04-10 05:23:38 +02:00
return { 0 };
}
BSARCH_DLL_API(bsa_result_message_t) bsa_file_data_free(bsa_archive_t archive, bsa_result_buffer_t file_data_result) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
BSARCH_DLL_API(bsa_result_message_t) bsa_extract_file(bsa_archive_t archive, const wchar_t *file_path, const wchar_t *save_as) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
BSARCH_DLL_API(bsa_result_message_t) bsa_iterate_files(bsa_archive_t archive, bsa_file_iteration_proc_t file_iteration_proc, void *context) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
BSARCH_DLL_API(bool) bsa_file_exists(bsa_archive_t archive, const wchar_t *file_path) {
2019-04-10 05:23:38 +02:00
return false;
}
BSARCH_DLL_API(bsa_result_message_t) bsa_get_resource_list(bsa_archive_t archive, bsa_entry_list_t entry_result_list, const wchar_t *folder) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
BSARCH_DLL_API(bsa_result_message_t) bsa_resolve_hash(bsa_archive_t archive, uint64_t hash, bsa_entry_list_t entry_result_list) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
BSARCH_DLL_API(bsa_result_message_t) bsa_close(bsa_archive_t archive) {
return { 0 };
2019-04-10 05:23:38 +02:00
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(uint32_t) bsa_filename_get(bsa_archive_t archive, uint32_t string_buffer_size, const wchar_t *string_buffer) {
2019-04-10 05:23:38 +02:00
return 0;
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(bsa_archive_type_t) bsa_archive_type_get(bsa_archive_t archive) {
2019-04-10 05:23:38 +02:00
return bsa_archive_type_t::baNone;
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(uint32_t) bsa_version_get(bsa_archive_t archive) {
2019-04-10 05:23:38 +02:00
return 0;
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(uint32_t) bsa_format_name_get(bsa_archive_t archive, uint32_t string_buffer_size, const wchar_t *string_buffer) {
2019-04-10 05:23:38 +02:00
return 0;
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(uint32_t) bsa_file_count_get(bsa_archive_t archive) {
2019-04-10 05:23:38 +02:00
return 0;
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(uint32_t) bsa_archive_flags_get(bsa_archive_t archive) {
2019-04-10 05:23:38 +02:00
return 0;
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(void) bsa_archive_flags_set(bsa_archive_t archive, uint32_t flags) {
2019-04-10 05:23:38 +02:00
return;
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(uint32_t) bsa_file_flags_get(bsa_archive_t archive) {
2019-04-10 05:23:38 +02:00
return 0;
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(void) bsa_file_flags_set(bsa_archive_t archive, uint32_t flags) {
2019-04-10 05:23:38 +02:00
return;
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(bool) bsa_compress_get(bsa_archive_t archive) {
2019-04-10 05:23:38 +02:00
return false;
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(void) bsa_compress_set(bsa_archive_t archive, bool flags) {
2019-04-10 05:23:38 +02:00
return;
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(bool) bsa_share_data_get(bsa_archive_t archive) {
2019-04-10 05:23:38 +02:00
return false;
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(void) bsa_share_data_set(bsa_archive_t archive, bool flags) {
2019-04-10 05:23:38 +02:00
return;
}
2019-04-15 04:16:36 +02:00
BSARCH_DLL_API(void) bsa_file_dds_info_callback_set(bsa_archive_t archive, bsa_file_dds_info_proc_t file_dds_info_proc) {
2019-04-10 05:23:38 +02:00
return;
}