1 /* Copyright 2013,2014 Akira Ohta (akohta001@gmail.com)
2 This file is part of ntch.
4 The ntch is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 The ntch is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with ntch. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef _SEARCH_2CH_H_
19 #define _SEARCH_2CH_H_
22 typedef struct tag_nt_searched_thread_handle *nt_searched_thread_handle;
23 typedef struct tag_nt_searched_thread_handle{
25 }nt_searched_thread_handle_t;
27 extern nt_searched_thread_handle nt_searched_thread_alloc(
28 const wchar_t *board_name,const wchar_t *dat_name,
29 const wchar_t *title);
30 extern nt_searched_thread_handle nt_searched_thread_alloc2(
31 nt_2ch_model_handle h_model,
33 extern int nt_searched_thread_add_ref(nt_searched_thread_handle h_searched_thread);
34 extern int nt_searched_thread_release_ref(nt_searched_thread_handle h_searched_thread);
36 extern const wchar_t* nt_searched_thread_get_board_name(
37 nt_searched_thread_handle handle);
38 extern const wchar_t* nt_searched_thread_get_dat_name(
39 nt_searched_thread_handle handle);
40 extern const wchar_t* nt_searched_thread_get_title(
41 nt_searched_thread_handle handle);
43 extern BOOL nt_get_search_text(const char *in_text, char** out_text);
44 extern nt_link_tp nt_search_all_board(nt_2ch_model_handle h_model,
45 const char *search_text, const wchar_t **error_msg);
48 #endif /* _SEARCH_2CH_H_ */