void legacy_camera_lock(camera_h camera, bool is_lock);
void legacy_camera_send_signal(camera_h camera);
int legacy_camera_get_platform_privilege(camera_h camera, const char **platform_privilege);
+int legacy_camera_get_log_level(void);
-/* log level - it will be set in libmm-camcorder. */
-extern int mmcam_log_level;
#define CAM_LOG_CRITICAL(format, args...) \
do { \
- if (mmcam_log_level >= MM_CAMCORDER_LOG_LEVEL_CRITICAL) \
+ if (mm_camcorder_get_log_level() >= MM_CAMCORDER_LOG_LEVEL_CRITICAL) \
SLOGF(format, ##args); \
} while (0)
#define CAM_LOG_ERROR(format, args...) \
do { \
- if (mmcam_log_level >= MM_CAMCORDER_LOG_LEVEL_ERROR) \
+ if (mm_camcorder_get_log_level() >= MM_CAMCORDER_LOG_LEVEL_ERROR) \
SLOGE(format, ##args); \
} while (0)
#define CAM_LOG_WARNING(format, args...) \
do { \
- if (mmcam_log_level >= MM_CAMCORDER_LOG_LEVEL_WARNING) \
+ if (mm_camcorder_get_log_level() >= MM_CAMCORDER_LOG_LEVEL_WARNING) \
SLOGW(format, ##args); \
} while (0)
#define CAM_LOG_INFO(format, args...) \
do { \
- if (mmcam_log_level >= MM_CAMCORDER_LOG_LEVEL_INFO) \
+ if (mm_camcorder_get_log_level() >= MM_CAMCORDER_LOG_LEVEL_INFO) \
SLOGI(format, ##args); \
} while (0)
#define CAM_LOG_DEBUG(format, args...) \
do { \
- if (mmcam_log_level >= MM_CAMCORDER_LOG_LEVEL_DEBUG) \
+ if (mm_camcorder_get_log_level() >= MM_CAMCORDER_LOG_LEVEL_DEBUG) \
SLOGD(format, ##args); \
} while (0)
#define CAM_LOG_VERBOSE(format, args...) \
do { \
- if (mmcam_log_level >= MM_CAMCORDER_LOG_LEVEL_VERBOSE) \
+ if (mm_camcorder_get_log_level() >= MM_CAMCORDER_LOG_LEVEL_VERBOSE) \
SLOGD("[V] "format, ##args); \
} while (0)
MUSE_TYPE_INT, PARAM_RET, ret,
MUSE_TYPE_INT, "preview_format", preview_format,
MUSE_TYPE_INT, "user_buffer_supported", user_buffer_supported,
- MUSE_TYPE_INT, "log_level", mmcam_log_level,
+ MUSE_TYPE_INT, "log_level", legacy_camera_get_log_level(),
MUSE_TYPE_POINTER, "handle", muse_camera,
0);