Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rockodi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CeRiAl
rockodi
Commits
450a1b0d
Commit
450a1b0d
authored
Mar 09, 2016
by
CeRiAl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle APP_MSG_INVALID_STATE
parent
8a824f0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
common.c
src/common.c
+6
-3
No files found.
src/common.c
View file @
450a1b0d
...
...
@@ -36,12 +36,12 @@ void outbox_send(char* send_cmd){
void
outbox_send_with_data
(
char
*
send_cmd
,
char
*
send_data
){
DictionaryIterator
*
iter
;
app_message_outbox_begin
(
&
iter
);
Tuplet
code
=
TupletCString
(
MSG_KEY_CMD
,
send_cmd
);
dict_write_tuplet
(
iter
,
&
code
);
Tuplet
data
=
TupletCString
(
MSG_KEY_CMD_DATA
,
send_data
);
dict_write_tuplet
(
iter
,
&
data
);
dict_write_end
(
iter
);
app_message_outbox_send
();
}
...
...
@@ -64,6 +64,9 @@ char* translate_app_message_result(AppMessageResult app_message_error) {
case
APP_MSG_APP_NOT_RUNNING
:
msg
=
"The local application was not running."
;
break
;
case
APP_MSG_INVALID_STATE
:
msg
=
"The function was called with invalid state."
;
break
;
case
APP_MSG_INVALID_ARGS
:
msg
=
"The function was called with invalid arguments."
;
break
;
...
...
@@ -101,7 +104,7 @@ char* split_id_name_pair(char *pair) {
if
(
pipe_pos
!=
NULL
)
{
(
*
pipe_pos
)
=
'\0'
;
}
return
pipe_pos
+
1
;
}
...
...
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