summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDongsun Lee <ds73.lee@samsung.com>2015-11-04 17:49:48 +0900
committerDongsun Lee <ds73.lee@samsung.com>2015-11-06 10:08:28 +0900
commit56d5d7edb8e612b79e448ddda7361ac30d88488e (patch)
tree33fedecf26294e577c45fe04b7460157e68ba001 /include
parenta59f1b1f2853ba347705bbdd97f587ebe946bb80 (diff)
downloadlibcryptsvc-56d5d7edb8e612b79e448ddda7361ac30d88488e.tar.gz
libcryptsvc-56d5d7edb8e612b79e448ddda7361ac30d88488e.tar.bz2
libcryptsvc-56d5d7edb8e612b79e448ddda7361ac30d88488e.zip
Change-Id: I719e3e4bcb123cd7fe5d6ac5c217e032399ea51a Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/device_info.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/include/device_info.h b/include/device_info.h
new file mode 100644
index 0000000..d4c0e24
--- /dev/null
+++ b/include/device_info.h
@@ -0,0 +1,63 @@
+/*
+ * device info
+ *
+ * Copyright (c) 2000 - 2014 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * 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 __DEVICE_INFO__
+#define __DEVICE_INFO__
+
+#include <tizen.h>
+
+/**
+ * @addtogroup CAPI_DEVICE_INFO_MODULE
+ * @{
+ */
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief Get device ID
+ * @since_tizen 2.3
+ * @return device unique ID that null terminated string
+ * @see get_device_id()
+ * @code
+ * #include <device_info.h>
+ *
+ * ...
+ *
+ * const char* device_id = NULL;
+ *
+ * device_id = get_device_id();
+ * if(device_id == NULL)
+ * {
+ * // Error handling
+ * }
+ *
+ * ...
+ * @endcode
+ *
+ */
+const char* get_device_id(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif