aboutsummaryrefslogtreecommitdiff
path: root/libs/libbsarch/src/libbsarch.cpp
blob: 52ded9f60deee419d02063ce0d2835f1a2b3abb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
#ifdef BSARCH_DLL_EXPORT
#include "libbsarch.h"

namespace libbsarch {

BSARCH_DLL_API(bsa_entry_list_t) bsa_entry_list_create()
{
    return nullptr;
}

BSARCH_DLL_API(bsa_result_message_t) bsa_entry_list_free(bsa_entry_list_t entry_list)
{
    return {0};
}

BSARCH_DLL_API(uint32_t) bsa_entry_list_count(bsa_entry_list_t entry_list)
{
    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};
}

BSARCH_DLL_API(uint32_t)
bsa_entry_list_get(bsa_entry_list_t entry_list, uint32_t index, uint32_t string_buffer_size, wchar_t *string_buffer)
{
    return 0;
}

BSARCH_DLL_API(bsa_archive_t) bsa_create()
{
    return nullptr;
}

BSARCH_DLL_API(bsa_result_message_t) bsa_free(bsa_archive_t archive)
{
    return {0};
}

BSARCH_DLL_API(bsa_result_message_t) bsa_load_from_file(bsa_archive_t archive, const wchar_t *file_path)
{
    return {0};
}

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};
}

BSARCH_DLL_API(bsa_result_message_t) bsa_save(bsa_archive_t archive)
{
    return {0};
}

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};
}

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};
}

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)
{
    return nullptr;
}

BSARCH_DLL_API(bsa_result_message_buffer_t)
bsa_extract_file_data_by_record(bsa_archive_t archive, bsa_file_record_t file_record)
{
    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)
{
    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};
}

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};
}

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};
}

BSARCH_DLL_API(bool) bsa_file_exists(bsa_archive_t archive, const wchar_t *file_path)
{
    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};
}

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};
}

BSARCH_DLL_API(bsa_result_message_t) bsa_close(bsa_archive_t archive)
{
    return {0};
}

BSARCH_DLL_API(uint32_t) bsa_filename_get(bsa_archive_t archive, uint32_t string_buffer_size, wchar_t *string_buffer)
{
    return 0;
}

BSARCH_DLL_API(bsa_archive_type_t) bsa_archive_type_get(bsa_archive_t archive)
{
    return bsa_archive_type_t::baNone;
}

BSARCH_DLL_API(uint32_t) bsa_version_get(bsa_archive_t archive)
{
    return 0;
}

BSARCH_DLL_API(uint32_t) bsa_format_name_get(bsa_archive_t archive, uint32_t string_buffer_size, wchar_t *string_buffer)
{
    return 0;
}

BSARCH_DLL_API(uint32_t) bsa_file_count_get(bsa_archive_t archive)
{
    return 0;
}

BSARCH_DLL_API(uint32_t) bsa_archive_flags_get(bsa_archive_t archive)
{
    return 0;
}

BSARCH_DLL_API(void) bsa_archive_flags_set(bsa_archive_t archive, uint32_t flags)
{
    return;
}

BSARCH_DLL_API(uint32_t) bsa_file_flags_get(bsa_archive_t archive)
{
    return 0;
}

BSARCH_DLL_API(void) bsa_file_flags_set(bsa_archive_t archive, uint32_t flags)
{
    return;
}

BSARCH_DLL_API(bool) bsa_compress_get(bsa_archive_t archive)
{
    return false;
}

BSARCH_DLL_API(void) bsa_compress_set(bsa_archive_t archive, bool flags)
{
    return;
}

BSARCH_DLL_API(bool) bsa_share_data_get(bsa_archive_t archive)
{
    return false;
}

BSARCH_DLL_API(void) bsa_share_data_set(bsa_archive_t archive, bool flags)
{
    return;
}

BSARCH_DLL_API(void)
bsa_file_dds_info_callback_set(bsa_archive_t archive, bsa_file_dds_info_proc_t file_dds_info_proc, void *context)
{
    return;
}
} // namespace libbsarch
#endif