Adding missing UV sensor API header file 51/44651/7
authorRamasamy <ram.kannan@samsung.com>
Fri, 24 Jul 2015 08:17:41 +0000 (17:17 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 12 Aug 2015 01:25:45 +0000 (18:25 -0700)
Missed to add the new API while while committing UV sensor code

Change-Id: Ifd0e7afd644dc18d9d6fc3730ce89c7bc568790d

src/libsensord/sensor_ultraviolet.h [new file with mode: 0644]

diff --git a/src/libsensord/sensor_ultraviolet.h b/src/libsensord/sensor_ultraviolet.h
new file mode 100644 (file)
index 0000000..0116221
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * libsensord
+ *
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ *
+ * 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 __SENSOR_ULTRAVIOLET_H__
+#define __SENSOR_ULTRAVIOLET_H__
+
+//! Pre-defined events for the ultraviolet sensor
+//! Sensor Plugin developer can add more event to their own headers
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * @defgroup SENSOR_ULTRAVIOLET Ultra Violet Sensor
+ * @ingroup SENSOR_FRAMEWORK
+ *
+ * These APIs are used to control the ultraviolet sensor.
+ * @{
+ */
+
+enum ultraviolet_event_type {
+       ULTRAVIOLET_RAW_DATA_EVENT      = (ULTRAVIOLET_SENSOR << 16) | 0x0001,
+};
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+//! End of a file