OSDN Git Service

Add thread search from all boards.
[ntch/develop.git] / src / inc / _2ch / search_2ch.h
diff --git a/src/inc/_2ch/search_2ch.h b/src/inc/_2ch/search_2ch.h
new file mode 100644 (file)
index 0000000..690bbb3
--- /dev/null
@@ -0,0 +1,37 @@
+/* Copyright 2013 Akira Ohta (akohta001@gmail.com)
+    This file is part of ntch.
+
+    The ntch is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    The ntch is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with ntch.  If not, see <http://www.gnu.org/licenses/>.
+    
+*/
+#ifndef _SEARCH_2CH_H_
+#define _SEARCH_2CH_H_
+
+
+typedef struct tag_nt_searched_thread_t *nt_searched_thread_tp;
+typedef struct tag_nt_searched_thread_t{
+       wchar_t *board_name;
+       wchar_t *dat_name;
+       wchar_t *title;
+}nt_searched_thread_t;
+
+extern BOOL nt_get_search_text(const char *in_text, char** out_text);
+extern nt_link_tp nt_search_all_board(nt_2ch_model_tp modelp, 
+                       const char *search_text, const wchar_t **error_msg);
+extern void free_searched_thread(void *ptr);
+
+
+
+
+#endif /* _SEARCH_2CH_H_ */