Change-Id: I1b04c6c3d8e785df6eb319e90aa34967c2253530
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
return 0;
}
+int vconf_get_ext_errno(void)
+{
+ return errno * -1;
+}
+
#ifndef __VCONF_H__
#define __VCONF_H__
+#include <errno.h>
+
#include "vconf-keys.h"
#ifdef __cplusplus
extern "C" {
#endif
+#define VCONF_OK 0
+#define VCONF_ERROR -1
+#define VCONF_ERROR_FILE_NO_ENT -ENOENT
+#define VCONF_ERROR_FILE_PERM -EPERM
+
enum vconf_t {
VCONF_TYPE_NONE = 0, /**< Vconf none type for Error detection */
VCONF_TYPE_STRING = 40, /**< Vconf string type */
*/
int vconf_get_dbl(const char *key, double *dblval);
+/**
+ * Get an error code of the last API call
+ *
+ * @return error code
+ * @deprecated use buxton APIs
+ */
+int vconf_get_ext_errno(void);
+
#ifdef __cplusplus
}
#endif
vconf_get_bool;
vconf_get_str;
vconf_get_dbl;
+ vconf_get_ext_errno;
local:
*;
};