diff options
author | PaulK <contact@paulk.fr> | 2011-12-30 21:58:30 +0100 |
---|---|---|
committer | PaulK <contact@paulk.fr> | 2011-12-30 21:58:30 +0100 |
commit | a1a3b71633b40a327c9f45ae884946fe380c9013 (patch) | |
tree | 63b25a8b74d976b8963929d7518fa55a35487daa /samsung-ipc/gen.c | |
parent | b3ae1307d322ad481de85203f1b5e06361815680 (diff) | |
download | external_libsamsung-ipc-a1a3b71633b40a327c9f45ae884946fe380c9013.zip external_libsamsung-ipc-a1a3b71633b40a327c9f45ae884946fe380c9013.tar.gz external_libsamsung-ipc-a1a3b71633b40a327c9f45ae884946fe380c9013.tar.bz2 |
Added accuracy to crespo's struct ipc_gen_phone_res and added check function
Diffstat (limited to 'samsung-ipc/gen.c')
-rw-r--r-- | samsung-ipc/gen.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/samsung-ipc/gen.c b/samsung-ipc/gen.c new file mode 100644 index 0000000..de5cfd7 --- /dev/null +++ b/samsung-ipc/gen.c @@ -0,0 +1,39 @@ +/** + * This file is part of libsamsung-ipc. + * + * Copyright (C) 2011 Paul Kocialkowsk <contact@paulk.fr> + * + * libsamsung-ipc is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * libsamsung-ipc is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#include <radio.h> + +int ipc_gen_phone_res_check(struct ipc_gen_phone_res *res) +{ + if(res == NULL) + return -1; + + switch(res->code) + { + case 0x8000: + return 0; + case 0x8001: + return 0; + default: + return -1; + } +} + +// vim:ts=4:sw=4:expandtab |