This commit is contained in:
2024-01-25 00:51:42 +08:00
parent 0a453adcac
commit 861a038621
2 changed files with 15 additions and 2 deletions

View File

@@ -64,8 +64,8 @@ WARNINGS = -Wall
INCLUDES = -I$(INCLUDE_DIR)
BASE_FLAGS = -fPIC -fvisibility=hidden
FULL_CFLAGS = $(BASE_FLAGS) $(CFLAGS) $(DEFINES) $(WARNINGS) $(INCLUDES) \
-MMD -MP -fPIC $(shell pkg-config --cflags $(PKGS))
FULL_LDFLAGS = $(BASE_FLAGS) $(LDFLAGS) -shared \
-MMD -MP $(shell pkg-config --cflags $(PKGS))
FULL_LDFLAGS = $(BASE_FLAGS) $(LDFLAGS) -shared -fPIC \
$(shell pkg-config --libs $(LDPKGS))
DEBUG_FLAGS = -g
RELEASE_FLAGS =

View File

@@ -178,6 +178,19 @@ vendor_qti_ims_radio_response(
{
VendorQtiImsRadio* self = THIS(user_data);
const char* iface = gbinder_remote_request_interface(req);
if(gutil_strv_contains((const GStrV*)ims_radio_response_ifaces, iface)){
GBinderReader reader;
gbinder_remote_request_init_reader(req, &reader);
gint32 serial;
if (gbinder_reader_read_int32(&reader, &serial)) {
g_hash_table_lookup(self->table,serial);
}
*status = GBINDER_STATUS_OK;
}else{
GINFO("[%s] Unexpected %s %u", self->name,iface,code);
*status = GBINDER_STATUS_FAILED;
}
return NULL;
}
static