projects
/
platform
/
core
/
system
/
libstorage.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply requirement for gcov automation
[platform/core/system/libstorage.git]
/
include
/
storage.h
diff --git
a/include/storage.h
b/include/storage.h
index
235c72b
..
992497e
100644
(file)
--- a/
include/storage.h
+++ b/
include/storage.h
@@
-23,33
+23,36
@@
extern "C" {
#endif
extern "C" {
#endif
+
/**
/**
- * @file
storage.h
- * @ingroup
FRAMEWORK/SYSTEM
- * @brief
This file contains the API for the status of devices.
- * @author
TIZEN
- * @date
2013-02-15
- * @version
0.1
+ * @file storage.h
+ * @ingroup FRAMEWORK/SYSTEM
+ * @brief This file contains the API for the status of devices.
+ * @author TIZEN
+ * @date 2013-02-15
+ * @version 0.1
*/
*/
+
/**
* @addtogroup CAPI_SYSTEM_STORAGE_MODULE
* @{
*/
/**
* @addtogroup CAPI_SYSTEM_STORAGE_MODULE
* @{
*/
+
#include <sys/statvfs.h>
#include <sys/statvfs.h>
-#include "storage-expand.h"
+#include <storage-expand.h>
+
/**
/**
- * @fn int storage_get_internal_memory_size(struct statvfs *buf)
- * @brief This generic API is used to get the internal memory size.
- *
+ * @brief Gets the internal memory size.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
* @param[out] buf A pointer to a statvfs structure
* @return @c 0 on success,
* otherwise a negative error value on failure
* @param[out] buf A pointer to a statvfs structure
* @return @c 0 on success,
* otherwise a negative error value on failure
- * @see
+ * @retval #STORAGE_ERROR_NONE Successful
+ * @retval #STORAGE_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #STORAGE_ERROR_OPERATION_FAILED Operation failed
* @par Example:
* @code
* ...
* @par Example:
* @code
* ...
@@
-62,26
+65,23
@@
extern "C" {
* ...
* @endcode
*/
* ...
* @endcode
*/
-#ifndef __USE_FILE_OFFSET64
-extern int storage_get_internal_memory_size(struct statvfs *buf);
-#else
-# define storage_get_internal_memory_size storage_get_internal_memory_size64
-#endif
-
#ifdef __USE_FILE_OFFSET64
#ifdef __USE_FILE_OFFSET64
+#define storage_get_internal_memory_size storage_get_internal_memory_size64
extern int storage_get_internal_memory_size64(struct statvfs *buf);
extern int storage_get_internal_memory_size64(struct statvfs *buf);
+#else
+extern int storage_get_internal_memory_size(struct statvfs *buf);
#endif
#endif
+
/**
/**
- * @fn int storage_get_external_memory_size(struct statvfs *buf)
- * @brief This generic API is used to get the external memory size.
- *
+ * @brief Gets the external memory size.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
* @param[out] buf A pointer to a statvfs structure
* @return @c 0 on success,
* otherwise a negative error value on failure
* @param[out] buf A pointer to a statvfs structure
* @return @c 0 on success,
* otherwise a negative error value on failure
- * @see
+ * @retval #STORAGE_ERROR_NONE Successful
+ * @retval #STORAGE_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #STORAGE_ERROR_OPERATION_FAILED Operation failed
* @par Example:
* @code
* ...
* @par Example:
* @code
* ...
@@
-94,22
+94,20
@@
extern int storage_get_internal_memory_size64(struct statvfs *buf);
* ...
* @endcode
*/
* ...
* @endcode
*/
-#ifndef __USE_FILE_OFFSET64
-extern int storage_get_external_memory_size(struct statvfs *buf);
-#else
-# ifdef __REDIRECT_NTH
+#ifdef __USE_FILE_OFFSET64
+#ifdef __REDIRECT_NTH
extern int __REDIRECT_NTH(storage_get_external_memory_size,
(struct statvfs *buf), storage_get_external_memory_size64)
__nonnull((1));
extern int __REDIRECT_NTH(storage_get_external_memory_size,
(struct statvfs *buf), storage_get_external_memory_size64)
__nonnull((1));
-# else
-# define storage_get_external_memory_size storage_get_external_memory_size64
-# endif
+#else
+#define storage_get_external_memory_size storage_get_external_memory_size64
#endif
#endif
-
-#ifdef __USE_FILE_OFFSET64
extern int storage_get_external_memory_size64(struct statvfs *buf);
extern int storage_get_external_memory_size64(struct statvfs *buf);
+#else
+extern int storage_get_external_memory_size(struct statvfs *buf);
#endif
#endif
+
/**
* @}
*/
/**
* @}
*/