OSDN Git Service

v1.0.2.8
[ntch/develop.git] / src / inc / _2ch / search_2ch.h
1 /* Copyright 2013,2014 Akira Ohta (akohta001@gmail.com)
2     This file is part of ntch.
3
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.
8
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.
13
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/>.
16     
17 */
18 #ifndef _SEARCH_2CH_H_
19 #define _SEARCH_2CH_H_
20
21
22 typedef struct tag_nt_searched_thread_handle *nt_searched_thread_handle;
23 typedef struct tag_nt_searched_thread_handle{
24         int chk_sum;
25 }nt_searched_thread_handle_t;
26
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, 
32                 const char *url);
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);
35
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);
42
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);
46
47
48 #endif /* _SEARCH_2CH_H_ */