4 * Copyright (c) 2010 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #ifndef __CTSVC_DB_UTILS_H__
21 #define __CTSVC_DB_UTILS_H__
23 const char* ctsvc_get_display_column(void);
24 const char* ctsvc_get_sort_column(void);
25 const char* ctsvc_get_sort_name_column(void);
27 int ctsvc_begin_trans(void);
28 int ctsvc_end_trans(bool is_success);
29 int ctsvc_get_next_ver(void);
30 int ctsvc_get_current_version(int* out_current_version);
31 int ctsvc_get_transaction_ver(void);
33 int ctsvc_utils_copy_image(const char *dir, const char *src, const char *file);
34 void ctsvc_utils_make_image_file_name(int parent_id, int id, char *src_img, char *dest, int dest_size);
36 int SAFE_SNPRINTF(char **buf, int *buf_size, int len, const char *src);
38 #endif /* __CTSVC_DB_UTILS_H__ */