summaryrefslogtreecommitdiffstats
path: root/util/scan/dvb-t/uk-Presely (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2013-09-03Imported Debian patch 1.1.1+rev1457-4debian/1.1.1+rev1457-4Mark Purcell4-1/+11
2013-09-03Imported Debian patch 1.1.1+rev1457-3debian/1.1.1+rev1457-3Tobias Grimm4-3/+11
2013-09-03Imported Debian patch 1.1.1+rev1457-2debian/1.1.1+rev1457-2Mark Purcell6-6/+1086
2013-09-03Imported Upstream version 1.1.1+rev1457upstream/1.1.1+rev1457etobi373-3363/+3502
2013-09-03Imported Debian patch 1.1.1+rev1355-1.1debian/1.1.1+rev1355-1.1Simon Paillard3-0/+215
2013-09-032013-09-03Imported Debian patch 1.1.1-3debian/1.1.1-3Debian VDR Team6-770/+7062
2013-09-03Imported Debian patch 1.1.1-2debian/1.1.1-2Thomas Schmidt4-1/+27
2013-09-03Imported Upstream version 1.1.1upstream/1.1.1etobi30-172/+2229
2013-09-03Imported Debian patch 1.1.0-11debian/1.1.0-11Debian VDR Team5-3/+83
2013-09-03Imported Debian patch 1.1.0-9debian/1.1.0-9Thomas Schmidt3-0/+33
2013-09-03Imported Debian patch 1.1.0-8debian/1.1.0-8Debian VDR Team9-560/+1531
2013-09-03Imported Debian patch 1.1.0-7debian/1.1.0-7Debian VDR Team4-324/+553
2013-09-03Imported Debian patch 1.1.0-6debian/1.1.0-6Debian VDR Team6-8/+21
2013-09-03Imported Debian patch 1.1.0-5debian/1.1.0-5Debian VDR Team15-0/+2186
n>RESULT * arg1, RESULT * arg2) { char value[80], val2[80]; char *pos; FILE *fp; int reqline, i, size; reqline = R2N(arg2); fp = fopen(R2S(arg1), "r"); if (!fp) { error("readline couldn't open file '%s'", R2S(arg1)); } else { i = 0; while (!feof(fp) && i < reqline) { fgets(val2, sizeof(val2), fp); size = strcspn(val2, "\n"); strncpy(value, val2, size); value[size] = '\0'; pos = strchr(val2, '\n'); /* more than 80 chars, chew up rest of line */ while (!pos) { fgets(val2, sizeof(val2), fp); pos = strchr(val2, '\n'); } i++; } fclose(fp); if (i < reqline) { error("readline requested line %d but file only had %d lines", reqline, i); value[0] = '\0'; } } /* store result */ SetResult(&result, R_STRING, &value); } /* plugin initialization */ /* MUST NOT be declared 'static'! */ int plugin_init_file(void) { /* register all our cool functions */ /* the second parameter is the number of arguments */ /* -1 stands for variable argument list */ AddFunction("file::readline", 2, my_readline); return 0; } void plugin_exit_file(void) { /* free any allocated memory */ /* close filedescriptors */ }