summaryrefslogtreecommitdiff
path: root/common/include/ivug-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/include/ivug-util.h')
-rwxr-xr-xcommon/include/ivug-util.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/common/include/ivug-util.h b/common/include/ivug-util.h
new file mode 100755
index 0000000..fa0f99f
--- /dev/null
+++ b/common/include/ivug-util.h
@@ -0,0 +1,87 @@
+/*
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.tizenopensource.org/license
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __IVUG_UTIL_H__
+#define __IVUG_UTIL_H__
+
+#include <stdbool.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+
+*/
+bool ivug_is_web_uri(const char* uri);
+
+bool ivug_remove_file(const char *filepath);
+
+bool ivug_is_file_exist(const char* filepath);
+
+bool ivug_rename_file(const char *src, const char *dst);
+
+bool ivug_copy_file(const char *filename, const char *dest);
+
+const char *ivug_get_filename(const char *filepath);
+
+unsigned int get_distance(int prevX, int prevY, int X, int Y);
+
+/*
+ Generate temporary file name with given path and extension.
+ returned value should free() by user.
+*/
+char *ivug_mktemp(char* filepath, char*ext);
+
+
+/*
+ LCD sleep control.
+*/
+bool ivug_prohibit_lcd_off(void);
+bool ivug_allow_lcd_off(void);
+
+
+/*
+ Get mime type from file path. Can be used either DRM and non DRM.
+ should free returned after use.
+*/
+
+bool ivug_is_editable_video_file(char *filepath);
+
+
+/*
+ returned values should be freed by user
+*/
+int ivug_atoi(const char *number);
+
+double ivug_atod(const char *number);
+
+char * ivug_generate_file_name(const char *filepath);
+
+/*
+ Removes leading and trailing whitespace from string
+ This function doesn't allocate or reallocate any memory
+*/
+char * ivug_strip_string(char* name);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+
+#endif //__IVUG_UTIL_H__
+