summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorjunkyu han <junkyu.han@samsung.com>2018-01-25 16:56:29 +0900
committerjunkyu han <junkyu.han@samsung.com>2018-01-26 00:18:31 +0000
commit55f6e7a130bf77de4e6432216124584ca0e36303 (patch)
tree701700cac074fc1c88a2cba9dc169962e881621f /inc
parentb24d4e39d843c9e7a51dedd332c676009431eb6b (diff)
downloadrcc-55f6e7a130bf77de4e6432216124584ca0e36303.tar.gz
rcc-55f6e7a130bf77de4e6432216124584ca0e36303.tar.bz2
rcc-55f6e7a130bf77de4e6432216124584ca0e36303.zip
Add Camera Module
Change-Id: Ied88305155686af7ed9f89d464bbe3c77a746394 (cherry picked from commit 7620cf9b6c5af514c1883789092ac4761891f715)
Diffstat (limited to 'inc')
-rw-r--r--inc/controller_util.h1
-rwxr-xr-xinc/resource.h1
-rw-r--r--inc/resource/resource_camera.h30
-rw-r--r--inc/webutil.h2
4 files changed, 34 insertions, 0 deletions
diff --git a/inc/controller_util.h b/inc/controller_util.h
index 29b5e46..f36973a 100644
--- a/inc/controller_util.h
+++ b/inc/controller_util.h
@@ -24,6 +24,7 @@
int controller_util_get_path(const char **path);
int controller_util_get_address(const char **address);
+int controller_util_get_image_address(const char **image_upload);
void controller_util_free(void);
#endif /* __POSITION_FINDER_CONTROLLER_UTIL_H__ */
diff --git a/inc/resource.h b/inc/resource.h
index 783fd8f..f3ffe3c 100755
--- a/inc/resource.h
+++ b/inc/resource.h
@@ -38,5 +38,6 @@
#include "resource/resource_tilt_sensor.h"
#include "resource/resource_gas_detection_sensor.h"
#include "resource/resource_sound_level_sensor.h"
+#include "resource/resource_camera.h"
#endif /* __POSITION_FINDER_RESOURCE_H__ */
diff --git a/inc/resource/resource_camera.h b/inc/resource/resource_camera.h
new file mode 100644
index 0000000..545e9b9
--- /dev/null
+++ b/inc/resource/resource_camera.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * Contact: Jin Yoon <jinny.yoon@samsung.com>
+ * Geunsun Lee <gs86.lee@samsung.com>
+ * Eunyoung Lee <ey928.lee@samsung.com>
+ * Junkyu Han <junkyu.han@samsung.com>
+ *
+ * Licensed under the Flora License, Version 1.1 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.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.
+ */
+
+#include <camera.h>
+
+#define MAX_IMAGE_FILE_LEN 256
+#define DEFAULT_FILE_PATH "/home/owner/media"
+
+typedef void (*capture_completed_cb)(const void *image, unsigned int size, void *user_data);
+
+int resource_capture_camera(capture_completed_cb capture_completed_cb, void *data);
+void resource_close_camera(void);
diff --git a/inc/webutil.h b/inc/webutil.h
index 8947bc2..a229e07 100644
--- a/inc/webutil.h
+++ b/inc/webutil.h
@@ -68,6 +68,8 @@ struct _web_util_sensor_data_s {
int web_util_noti_init(void);
void web_util_noti_fini(void);
int web_util_noti_post(const char *resource, const char *json_data);
+int web_util_noti_post_image_data(const char *url, const char *device_id,
+ const void *image_data, unsigned int image_size);
int web_util_noti_get(const char *resource, char **res);
int web_util_json_init(void);