}
void RilSapSocket::initSapSocket(const char *socketName,
- RIL_RadioFunctions *uimFuncs) {
+ const RIL_RadioFunctions *uimFuncs) {
if (strcmp(socketName, RIL1_SERVICE_NAME) == 0) {
if(!SocketExists(socketName)) {
}
void RilSapSocket::addSocketToList(const char *socketName, RIL_SOCKET_ID socketid,
- RIL_RadioFunctions *uimFuncs) {
+ const RIL_RadioFunctions *uimFuncs) {
RilSapSocket* socket = NULL;
RilSapSocketList *current;
RilSapSocket::RilSapSocket(const char *socketName,
RIL_SOCKET_ID socketId,
- RIL_RadioFunctions *inputUimFuncs):
+ const RIL_RadioFunctions *inputUimFuncs):
RilSocket(socketName, socketId) {
if (inputUimFuncs) {
uimFuncs = inputUimFuncs;
* Place holder for the radio functions returned by the initialization
* function. Currenty only onRequest handler is being used.
*/
- RIL_RadioFunctions* uimFuncs;
+ const RIL_RadioFunctions* uimFuncs;
/**
* Wrapper struct for handling the requests in the queue.
* @param Radio functions to be used by the socket.
*/
static void initSapSocket(const char *socketName,
- RIL_RadioFunctions *uimFuncs);
+ const RIL_RadioFunctions *uimFuncs);
/**
* Ril envoronment variable that holds the request and
* and add socket to the socket list.
*/
static void addSocketToList(const char *socketName, RIL_SOCKET_ID socketid,
- RIL_RadioFunctions *uimFuncs);
+ const RIL_RadioFunctions *uimFuncs);
/**
* Check if a socket of the given name exists in the socket list.
*/
RilSapSocket(const char *socketName,
RIL_SOCKET_ID socketId,
- RIL_RadioFunctions *inputUimFuncs);
+ const RIL_RadioFunctions *inputUimFuncs);
/**
* Class method that selects the socket on which the onRequestComplete
}
extern "C" void
-RIL_register_socket (RIL_RadioFunctions *(*Init)(const struct RIL_Env *, int, char **),
+RIL_register_socket (const RIL_RadioFunctions *(*Init)(const struct RIL_Env *, int, char **),
RIL_SOCKET_TYPE socketType, int argc, char **argv) {
- RIL_RadioFunctions* UimFuncs = NULL;
+ const RIL_RadioFunctions* UimFuncs = NULL;
if(Init) {
UimFuncs = Init(&RilSapSocket::uimRilEnv, argc, argv);
processResponse(rsp, sapSocket, MsgType_UNSOL_RESPONSE);
}
-void sap::registerService(RIL_RadioFunctions *callbacks) {
+void sap::registerService(const RIL_RadioFunctions *callbacks) {
using namespace android::hardware;
int simCount = 1;
const char *serviceNames[] = {
namespace sap {
-void registerService(RIL_RadioFunctions *callbacks);
+void registerService(const RIL_RadioFunctions *callbacks);
void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket);
void processUnsolResponse(MsgHeader *rsp, RilSapSocket *sapSocket);