-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Binary Addon] Generic interface provider callback #13706
Conversation
jenkins build this please |
1 similar comment
jenkins build this please |
OSX64 test failure unrelated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sprintf vs snprintf?
} | ||
else if (strcmp(name,"sdk_version") == 0) | ||
{ | ||
sprintf(buffer, "%d", CXBMCApp::get()->getActivity()->sdkVersion); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
namespace ADDON | ||
{ | ||
|
||
char* Interface_General::get_platform_property(void* kodiBase, const char *name) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
jenkins build this please |
Description
Binary addons may need platform specific information to work as expected.
This PR adds a generic Interface provider to the Kodi binary addon system and as an example platform specific interface to some android system propertiesan android system info.
The new interface callback is implemented in kodi::Addon base class, is named GetInterface() and is designated to provide a pointer to a function table.
Min Addon Basel API version was not modified because the change does not affect existing functionality.
Therefore old binary addons should still work after this change
Motivation and Context
Get JNI MediaDrm working in binary addon (Android), because NDK is not working as expected / some functionality is not existant in NDK.
How Has This Been Tested?
Android + DRM encrypted sample streams
Types of change