mirror of
https://github.com/zhaarey/wrapper.git
synced 2025-07-03 00:29:54 +09:00
support get-m3u8
This commit is contained in:
25
import.h
25
import.h
@ -32,6 +32,24 @@ static inline union std_string new_std_string(const char *s) {
|
||||
return str;
|
||||
}
|
||||
|
||||
static inline struct std_vector new_std_vector(void *begin) {
|
||||
struct std_vector vector = {
|
||||
.begin = begin,
|
||||
.end = begin + 1,
|
||||
};
|
||||
vector.end_capacity = vector.end;
|
||||
return vector;
|
||||
}
|
||||
|
||||
static inline union std_string new_std_string_short_mode(const char *str) {
|
||||
short str_size = strlen(str);
|
||||
union std_string std_str = {
|
||||
.mark = str_size << 1,
|
||||
};
|
||||
strcpy(std_str.str, str);
|
||||
return std_str;
|
||||
}
|
||||
|
||||
static inline const char *std_string_data(union std_string *str) {
|
||||
if ((str->mark & 1) == 0) {
|
||||
return str->str;
|
||||
@ -215,6 +233,13 @@ extern void _ZN8FootHill24defaultContextIdentifierEv(void *);
|
||||
extern void _ZN21RequestContextManager9configureERKNSt6__ndk110shared_ptrIN17storeservicescore14RequestContextEEE(
|
||||
struct shared_ptr *);
|
||||
|
||||
extern struct shared_ptr *_ZN22SVPlaybackLeaseManager12requestAssetERKmRKNSt6__ndk16vectorINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS7_IS9_EEEERKb(
|
||||
void *, void *, unsigned long *, struct std_vector *, uint8_t *
|
||||
);
|
||||
extern int _ZNK23SVPlaybackAssetResponse13hasValidAssetEv(void *);
|
||||
extern struct shared_ptr *_ZNK23SVPlaybackAssetResponse13playbackAssetEv(void *);
|
||||
extern union std_string *_ZNK17storeservicescore13PlaybackAsset9URLStringEv(void *, uint8_t *);
|
||||
|
||||
const char *const android_id = "dc28071e981c439e";
|
||||
const char *const fairplayCert = "MIIEzjCCA7agAwIBAgIIAXAVjHFZDjgwDQYJKoZIhvcNAQEFBQAwfzELMAkGA1UEBhMCVVMxEz"
|
||||
"ARBgNVBAoMCkFwcGxlIEluYy4xJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9y"
|
||||
|
Reference in New Issue
Block a user