From 1789f2ac0766851f078c754fe31cb87a6f013184 Mon Sep 17 00:00:00 2001 From: PaulK Date: Fri, 3 Feb 2012 20:21:36 +0100 Subject: Modified ipc devices handling to use a table and permit explicit device name --- samsung-ipc/ipc_devices.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 samsung-ipc/ipc_devices.c (limited to 'samsung-ipc/ipc_devices.c') 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 + * + * 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 . + * + */ + +#include + +#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 -- cgit v1.1