/*
* Contacts Service
*
- * Copyright (c) 2010 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2010 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*
*/
-
#ifndef __CTSVC_DB_UTILS_H__
#define __CTSVC_DB_UTILS_H__
int ctsvc_begin_trans(void);
int ctsvc_end_trans(bool is_success);
int ctsvc_get_next_ver(void);
-int ctsvc_get_current_version(int* out_current_version);
+int ctsvc_get_current_version(int *out_current_version);
int ctsvc_get_transaction_ver(void);
int ctsvc_utils_copy_image(const char *dir, const char *src, const char *file);
-void ctsvc_utils_make_image_file_name(int parent_id, int id, char *src_img, char *dest, int dest_size);
+void ctsvc_utils_make_image_file_name(int parent_id, int id, char *src_img, char *dest,
+ int dest_size);
+char* ctsvc_utils_get_thumbnail_path(const char *image_path, bool check_file);
+char* ctsvc_utils_get_image_path(const char *thumbnail_path);
+char* ctsvc_utils_make_thumbnail(const char *image_path);
int SAFE_SNPRINTF(char **buf, int *buf_size, int len, const char *src);