f1907390b9c35e61dbe317954c2e84528308beba
[apps/home/smartsearch.git] / include / ps_searcher.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  * 
4  * Licensed under the Flora License, Version 1.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  * 
8  *     http://www.tizenopensource.org/license
9  * 
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17
18
19
20
21
22 #ifndef __SEARCHSERVER_HEADER_H__
23 #define __SEARCHSERVER_HEADER_H__
24
25 int search_sql_stmt_init(sqlite3_stmt * sql_stmt);
26
27 int search_sql_stmt_finalize(sqlite3_stmt * stmt);
28
29 int search_sql_prepare_stmt(sqlite3 *db_handle, const char *query,
30                                          sqlite3_stmt ** stmt_out);
31
32 int search_sql_contact_search_result_by_api(int type, int offset, int limit,
33                                             void *data);
34
35 int search_sql_msg_search_result_by_api(int type, int offset, int limit,
36                                          void *data);
37
38 int search_sql_email_search_result_by_api(int type, int offset, int limit,
39                                          void *data);
40
41 int search_sql_calendar_search_result_by_api(int type, int offset, int limit,
42                                              void *data);
43
44 int search_sql_memo_search_result_by_api(int type, int offset, int limit,
45                                          void *data);
46
47 int search_sql_image_search_result_by_api(int type, int offset, int limit, 
48                                          void *data);
49
50 int search_sql_video_search_result_by_api(int type, int offset, int limit,
51                                          void *data);
52
53 int search_sql_music_search_result_by_api(int type, int offset, int limit,
54                                          void *data);
55
56 int search_sql_menu_search_result_by_api(int type, int offset, int limit,
57                                          char *keyword, void *data);
58
59 #endif                          // __SEARCHSERVER_HEADER_H__