diff options
author | PaulK <contact@paulk.fr> | 2012-02-03 20:21:36 +0100 |
---|---|---|
committer | PaulK <contact@paulk.fr> | 2012-02-03 20:21:36 +0100 |
commit | 1789f2ac0766851f078c754fe31cb87a6f013184 (patch) | |
tree | eff2fb521bcaea6b67771e95cb3849e4fd156761 /samsung-ipc/ipc_devices.c | |
parent | a1de0dcad9e1bcf8d9293eefb601b05a18fc7c9b (diff) | |
download | external_libsamsung-ipc-1789f2ac0766851f078c754fe31cb87a6f013184.zip external_libsamsung-ipc-1789f2ac0766851f078c754fe31cb87a6f013184.tar.gz external_libsamsung-ipc-1789f2ac0766851f078c754fe31cb87a6f013184.tar.bz2 |
Modified ipc devices handling to use a table and permit explicit device name
Diffstat (limited to 'samsung-ipc/ipc_devices.c')
-rw-r--r-- | samsung-ipc/ipc_devices.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/samsung-ipc/ipc_devices.c b/samsung-ipc/ipc_devices.c new file mode 100644 index 0000000..f3f2b17 --- /dev/null +++ b/samsung-ipc/ipc_devices.c @@ -0,0 +1,33 @@ +/** + * This file is part of libsamsung-ipc. + * + * Copyright (C) 2012 Paul Kocialkowski <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> + +#include "ipc_devices.h" + +struct ipc_device_desc ipc_devices[] = { + { "crespo", "herring", &crespo_default_handlers, &crespo_fmt_ops, &crespo_rfs_ops }, + { "aries", "aries", &aries_default_handlers, &aries_fmt_ops, &aries_rfs_ops }, + { "aries", "gt-p1000", &aries_default_handlers, &aries_fmt_ops, &aries_rfs_ops } +}; + +int ipc_devices_count = sizeof(ipc_devices) / sizeof(struct ipc_device_desc); + +// vim:ts=4:sw=4:expandtab |