Added initial version of Generic Text Classifier
[platform/core/api/generic-text-classifier.git] / include / gc_internal.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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  * @file gc_internal.h
19  * @brief Internal implementation of public API's.
20  * @internal
21  * @ingroup     CAPI_GENERIC_CLASSIFIER_MODULE
22  */
23
24 #ifndef __TIZEN_GENERIC_CLASSIFIER_INTERNAL_H__
25 #define __TIZEN_GENERIC_CLASSIFIER_INTERNAL_H__
26
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif /* __cplusplus */
31
32 #include "generic_text_classifier.h"
33 #include "generic_text_classifier_type.h"
34 #include "gc_private.h"
35
36         int _initialize(void);
37
38         int _deinitialize(void);
39
40         int _create_classifier(gc_classifier_h *classifier_handle, char *app_id, char *user_id);
41
42         int _delete_classifier(gc_classifier_h *classifier_handle);
43
44         int _get_category(gc_classifier_s *classifier_handle, char *text_data, int text_data_len, gc_category_s *category_list);
45
46         int _gc_check_init_status(void);
47
48         int _gc_check_handle_creation(void);
49
50         int _gc_check_handle_validity(gc_classifier_h *classifier_handle);
51
52         int _add_category(gc_classifier_s *classifier_handle, char *category_name);
53
54         int _delete_category(gc_classifier_s *classifier_handle, char *category_name);
55
56         int _update_category(gc_classifier_s *classifier_handle, char *category_name, char *text_data, int text_data_len);
57
58 #ifdef __cplusplus
59 }
60 #endif /* __cplusplus */
61
62 #endif /* __TIZEN_GENERIC_CLASSIFIER_TYPE_H__ */