sdm: Change minHdcpEncryptionLevelChanged api to extern "C"
- Change minHdcpEncryptionLevelChanged to extern "C" so that a caller can dlsym to this api. Change-Id: I5b1b2e3f65bf3e4f588f32c45e41ca66c55ece67
This commit is contained in:
@@ -280,26 +280,6 @@ int setPanelMode(int mode) {
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
int minHdcpEncryptionLevelChanged(int dpy) {
|
|
||||||
status_t err = (status_t) FAILED_TRANSACTION;
|
|
||||||
sp<IQService> binder = getBinder();
|
|
||||||
Parcel inParcel, outParcel;
|
|
||||||
inParcel.writeInt32(dpy);
|
|
||||||
|
|
||||||
if(binder != NULL) {
|
|
||||||
err = binder->dispatch(IQService::MIN_HDCP_ENCRYPTION_LEVEL_CHANGED,
|
|
||||||
&inParcel, &outParcel);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(err) {
|
|
||||||
ALOGE("%s: Failed for dpy %d err=%d", __FUNCTION__, dpy, err);
|
|
||||||
} else {
|
|
||||||
err = outParcel.readInt32();
|
|
||||||
}
|
|
||||||
|
|
||||||
return err;
|
|
||||||
}
|
|
||||||
|
|
||||||
int setPanelBrightness(int level) {
|
int setPanelBrightness(int level) {
|
||||||
status_t err = (status_t) FAILED_TRANSACTION;
|
status_t err = (status_t) FAILED_TRANSACTION;
|
||||||
sp<IQService> binder = getBinder();
|
sp<IQService> binder = getBinder();
|
||||||
@@ -338,8 +318,28 @@ int getPanelBrightness() {
|
|||||||
}// namespace
|
}// namespace
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Screen refresh for native daemons linking dynamically to libqdutils
|
// Functions for linking dynamically to libqdutils
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
extern "C" int minHdcpEncryptionLevelChanged(int dpy) {
|
||||||
|
status_t err = (status_t) FAILED_TRANSACTION;
|
||||||
|
sp<IQService> binder = getBinder();
|
||||||
|
Parcel inParcel, outParcel;
|
||||||
|
inParcel.writeInt32(dpy);
|
||||||
|
|
||||||
|
if(binder != NULL) {
|
||||||
|
err = binder->dispatch(IQService::MIN_HDCP_ENCRYPTION_LEVEL_CHANGED,
|
||||||
|
&inParcel, &outParcel);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(err) {
|
||||||
|
ALOGE("%s: Failed for dpy %d err=%d", __FUNCTION__, dpy, err);
|
||||||
|
} else {
|
||||||
|
err = outParcel.readInt32();
|
||||||
|
}
|
||||||
|
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
extern "C" int refreshScreen() {
|
extern "C" int refreshScreen() {
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
ret = screenRefresh();
|
ret = screenRefresh();
|
||||||
|
|||||||
@@ -141,11 +141,6 @@ DisplayAttributes getDisplayAttributes(int configIndex, int dpy);
|
|||||||
// Set the primary display mode to command or video mode
|
// Set the primary display mode to command or video mode
|
||||||
int setDisplayMode(int mode);
|
int setDisplayMode(int mode);
|
||||||
|
|
||||||
// Notify change in minimum encryption level for HDCP
|
|
||||||
// Return -1 on error.
|
|
||||||
// Only HDMI display is supported as dpy for now
|
|
||||||
int minHdcpEncryptionLevelChanged(int dpy);
|
|
||||||
|
|
||||||
// Sets the panel brightness of the primary display
|
// Sets the panel brightness of the primary display
|
||||||
int setPanelBrightness(int level);
|
int setPanelBrightness(int level);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user