/* * libdvbnet - a DVB network support library * * Copyright (C) 2005 Andrew de Quincey (adq_dvb@lidskialf.net) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include #include #include #include #include #include #include #include #include #include #include "dvbvideo.h" int dvbvideo_open(int adapter, int videodeviceid) { char filename[PATH_MAX+1]; int fd; sprintf(filename, "/dev/dvb/adapter%i/video%i", adapter, videodeviceid); if ((fd = open(filename, O_RDWR)) < 0) { // if that failed, try a flat /dev structure sprintf(filename, "/dev/dvb%i.video%i", adapter, videodeviceid); fd = open(filename, O_RDWR); } return fd; } =3c658ef2174cfbaa5926a6b932ebd967b52aed08&follow=1'>commitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-10-31Removed accidentially added fileharbaum1-0/+0
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1131 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-10-31Minor description fixesharbaum5-218/+228
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1130 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-09-19patch from Jar: typo fixed, documentation which is now in the wiki removedmichael1-28/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1129 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-08-25added netmask_short in plugin_netinfo for CIDR notationvolker1-13/+52
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1128 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-07-16compile error fixed (thanks to Tom)michael1-19/+19
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1127 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-07-13support for Sure Electronics's 1602 LCD Display Board with USB from Mikhailmichael5-13/+50
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1126 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-07-11X11 driver: possibility to ignore auto-repeated KeyPress eventsmzuther1-1/+22
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1125 3ae390bd-cb1e-0410-b409-cd5a39f66f1f