[Release version 0.10.45] 1. Update code for DPM - camera, mic policy, 2. Return...
[platform/core/multimedia/libmm-camcorder.git] / src / include / mm_camcorder_internal.h
index 41f9a27..1340fac 100644 (file)
@@ -39,6 +39,7 @@
 #include <gst/video/video-format.h>
 #include <ttrace.h>
 #include <errno.h>
+#include <restriction.h> /* device policy manager */
 
 #include "mm_camcorder.h"
 #include "mm_debug.h"
@@ -543,6 +544,7 @@ typedef enum {
        _MMCAMCORDER_STATE_CHANGE_NORMAL = 0,
        _MMCAMCORDER_STATE_CHANGE_BY_ASM,
        _MMCAMCORDER_STATE_CHANGE_BY_RM,
+       _MMCAMCORDER_STATE_CHANGE_BY_DPM
 } _MMCamcorderStateChange;
 
 
@@ -718,6 +720,11 @@ typedef struct mmf_camcorder {
        _MMCamcorderGDbusCbInfo gdbus_info_sound;               /**< Informations for the gbus cb of sound play */
        _MMCamcorderGDbusCbInfo gdbus_info_solo_sound;          /**< Informations for the gbus cb of solo sound play */
 
+       /* DPM(device policy manager) */
+       dpm_context_h dpm_context;                              /**< DPM context handle */
+       dpm_restriction_policy_h dpm_policy;                    /**< DPM restriction policy handle */
+       int dpm_camera_cb_id;                                   /**< DPM camera policy changed callback id */
+
        int reserved[4];                                        /**< reserved */
 } mmf_camcorder_t;
 
@@ -1197,6 +1204,9 @@ void _mmcamcorder_sound_focus_cb(int id, mm_sound_focus_type_e focus_type,
 void _mmcamcorder_sound_focus_watch_cb(mm_sound_focus_type_e focus_type, mm_sound_focus_state_e focus_state,
                                        const char *reason_for_change, const char *additional_info, void *user_data);
 
+/* device policy manager */
+void _mmcamcorder_dpm_camera_policy_changed_cb(const char *name, const char *value, void *user_data);
+
 /* For hand over the server's caps information to client */
 int _mmcamcorder_get_video_caps(MMHandleType handle, char **caps);