* @return false: skip next value, true: check next value
*/
-static bool CameraAttrSupportedDeviceCB(camera_device_type_e type, camera_device_e device,
- const char *name, const char *id, int extra_preview_stream_num, void *user_data)
+static bool CameraAttrSupportedDeviceCB(camera_device_s *device, void *user_data)
{
#if DEBUG
FPRINTF("[Line : %d][%s] reached camera supported device callback, supported type = %d\\n", __LINE__, API_NAMESPACE, type);
{
FPRINTF("[Line : %d][%s] user data is null \\n", __LINE__, API_NAMESPACE);
}
- if (type == CAMERA_DEVICE_TYPE_NETWORK) {
+ if (device->type == CAMERA_DEVICE_TYPE_NETWORK) {
g_bNetworkCameraSupported = true;
- g_eNetworkCameraDev = device;
+ g_eNetworkCameraDev = device->index;
return false;
}
* @parameter camera_device_type_e type, camera_device_e device, const char *name, const char *id, int extra_preview_stream_num, bool is_connected, void *user_data : user data to be passed
* @return NA
*/
-static void CameraAttrDeviceConnectionChangedCB(camera_device_type_e type, camera_device_e device,
- const char *name, const char *id, int extra_preview_stream_num, bool is_connected, void *user_data)
+static void CameraAttrDeviceConnectionChangedCB(camera_device_s *device, bool is_connected, void *user_data)
{
#if DEBUG
FPRINTF("[Line : %d][%s] reached camera device connection changed callback, supported type = %d, supported device = %d\\n", __LINE__, API_NAMESPACE, type, device);
{
FPRINTF("[Line : %d][%s] user data is null \\n", __LINE__, API_NAMESPACE);
}
- FPRINTF("[Line : %d][%s] device [%d], name[%s], id[%s], is_connected[%d], extra stream num[%d]\n", __LINE__, API_NAMESPACE,device, name, id, is_connected, extra_preview_stream_num);
+ FPRINTF("[Line : %d][%s] device [%d], name[%s], id[%s], is_connected[%d], extra stream num[%d]\n", __LINE__, API_NAMESPACE, device->type, device->name, device->id, is_connected, device->extra_stream_num);
return;
}