Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
hardware_ril
Commits
21ac31c0
Commit
21ac31c0
authored
14 years ago
by
Wink Saville
Committed by
Android Git Automerger
14 years ago
Browse files
Options
Download
Plain Diff
am
6883717c
: am
5b9df33c
: Add RIL_UNSOL_RIL_CONNECTED.
* commit '
6883717c
': Add RIL_UNSOL_RIL_CONNECTED.
parents
ab145719
6883717c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
include/telephony/ril.h
include/telephony/ril.h
+10
-0
libril/ril.cpp
libril/ril.cpp
+6
-0
libril/ril_unsol_commands.h
libril/ril_unsol_commands.h
+2
-1
No files found.
include/telephony/ril.h
View file @
21ac31c0
...
...
@@ -3623,6 +3623,16 @@ typedef struct {
*/
#define RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE 1033
/**
* RIL_UNSOL_RIL_CONNECTED
*
* Called the ril connects and returns the version
*
* "data" is int *
* ((int *)data)[0] is RIL_VERSION
*/
#define RIL_UNSOL_RIL_CONNECTED 1034
/***********************************************************************/
...
...
This diff is collapsed.
Click to expand it.
libril/ril.cpp
View file @
21ac31c0
...
...
@@ -2306,6 +2306,11 @@ static void processCommandsCallback(int fd, short flags, void *param) {
static
void
onNewCommandConnect
()
{
// Inform we are connected and the ril version
int
rilVer
=
RIL_VERSION
;
RIL_onUnsolicitedResponse
(
RIL_UNSOL_RIL_CONNECTED
,
&
rilVer
,
sizeof
(
rilVer
));
// implicit radio state changed
RIL_onUnsolicitedResponse
(
RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED
,
NULL
,
0
);
...
...
@@ -3217,6 +3222,7 @@ requestToString(int request) {
case
RIL_UNSOL_CDMA_SUBSCRIPTION_CHANGED
:
return
"UNSOL_CDMA_SUBSCRIPTION_CHANGED"
;
case
RIL_UNSOL_CDMA_PRL_CHANGED
:
return
"UNSOL_CDMA_PRL_CHANGED"
;
case
RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE
:
return
"UNSOL_EXIT_EMERGENCY_CALLBACK_MODE"
;
case
RIL_UNSOL_RIL_CONNECTED
:
return
"UNSOL_RIL_CONNECTED"
;
default:
return
"<unknown request>"
;
}
}
...
...
This diff is collapsed.
Click to expand it.
libril/ril_unsol_commands.h
View file @
21ac31c0
...
...
@@ -47,5 +47,6 @@
{
RIL_UNSOL_RESEND_INCALL_MUTE
,
responseVoid
,
WAKE_PARTIAL
},
{
RIL_UNSOL_CDMA_SUBSCRIPTION_CHANGED
,
responseInts
,
WAKE_PARTIAL
},
{
RIL_UNSOL_CDMA_PRL_CHANGED
,
responseInts
,
WAKE_PARTIAL
},
{
RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE
,
responseVoid
,
WAKE_PARTIAL
}
{
RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE
,
responseVoid
,
WAKE_PARTIAL
},
{
RIL_UNSOL_RIL_CONNECTED
,
responseInts
,
WAKE_PARTIAL
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment