X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Finclude%2Fmm_camcorder_internal.h;h=1340fac786cfca660d1bbf2e2aa43c26de9730e8;hb=refs%2Ftags%2Faccepted%2Ftizen%2Ftv%2F20160513.004131;hp=41f9a279158142f2f363e4624de6d59f51e7fabf;hpb=43b2f380c11dadc25049498b58d0b89a98254693;p=platform%2Fcore%2Fmultimedia%2Flibmm-camcorder.git diff --git a/src/include/mm_camcorder_internal.h b/src/include/mm_camcorder_internal.h index 41f9a27..1340fac 100644 --- a/src/include/mm_camcorder_internal.h +++ b/src/include/mm_camcorder_internal.h @@ -39,6 +39,7 @@ #include #include #include +#include /* 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);