aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2008-03-03new plugin: button_exec by Wolfgang Henerbichlermichux1-0/+114
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@859 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-03-03add new driver (st2205) by Jeroen/Sprite_tmmichux1-0/+245
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@858 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-03-03new plugin: button_exec by Wolfgang Henerbichlermichux3-1/+18
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@857 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-03-03add keypad support for module lcm162michux2-1/+26
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@856 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-03-03add new driver (st2205) by Jeroen/Sprite_tmmichux6-2/+33
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@855 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-02-27add signal handler to plugin_mpdmichux2-14/+13
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@854 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-02-27plugin_mpd, update to v0.81, fix connection issuesmichux1-31/+53
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@853 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-02-25update mpd plugin to v0.8 - makefile needs some work nowmichux1-167/+201
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@852 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-01-28disable default emulator codemichux1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@851 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-01-28minor updatesmichux1-2/+8
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@850 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-01-28added pingpong scrollingmichux2-5/+53
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@849 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-01-24git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@848 ↵michux1-312/+402
3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-10-03automatic marquee patch from Manuel Grotmichael2-5/+13
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@845 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-10-01RDTSC delay and inclusion of asm/msr.h removedmichael5-258/+14
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@844 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-10-01driver for Pertelian display by Andy Powellmichael8-16/+387
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@843 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-09-15GPS plugin V0.3 by michumichael1-40/+143
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@842 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-09-15GPS plugin V0.2 by michumichael1-69/+267
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@841 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-09-09email address changedmichael107-109/+109
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@840 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-07-27Fix compilation with kernel 2.6.22 by Guillaume LECERFmichael1-1/+4
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@833 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-07-27MPD plugin patch from michumichael1-1/+22
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@832 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-07-27GPS plugin update by michumichael1-131/+248
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@831 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-07-27indentationmichael2-106/+108
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@830 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-06-21default for Brightness is 255volker1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@813 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-06-20LCD::brightness in drv_X11 correctedvolker1-2/+10
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@812 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-06-20global variable for backlight colorvolker1-0/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@810 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-06-20keypad support completed; new property brightness implementedvolker1-40/+175
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@809 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-06-20maximum value for brightness is 8volker1-2/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@808 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-06-17buttons for X11 driver (thanks to Volker Gering)michael1-8/+49
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@807 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-06-17Apple has no utsbuf.domainname (thanks to Volker Gering)michael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@806 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-06-17strndup() replacementmichael1-0/+24
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@805 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-06-17better usage output by Volker Geringmichael1-4/+20
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@804 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-06-08Image driver libgd dependancy fixmichael5-6/+31
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@803 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-06-04big MPD patch from Robert Buchholzmichael1-79/+86
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@802 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-05-19gps plugin, code by michu / www.neophob.commichael7-0/+580
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@801 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-05-17compile error on m68k fixed (debian bug 405898)michael3-10/+170
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@799 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-05-04typo in LUIse driver fixedmichael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@798 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-05-02some compiler warnings fixedmichael6-8/+14
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@797 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-04-30LCD4Linux-0.10.1-RC2michael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@796 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-04-30ChangeLog updatedmichael1-1782/+3099
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@795 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-04-30svn2cl moved and optimizedmichael1-6/+0
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@794 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-04-30svn2cl.sh addedmichael1-0/+6
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@793 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-04-30link Cwlinux with keypad supportmichael2-0/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@791 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-04-28patch from Fox: Fix a typo that prevent Bar display to workmichael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@788 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-04-28patch from FoX that fixes compilation with kernel 2.6.21michael1-0/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@787 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-04-23MPD plugin patch from michumichael1-8/+205
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@786 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-04-20keypad and firmware support for Cwlinux (patch from Volker Gering)michael1-17/+130
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@785 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-04-20iowait,irq and softirq added (patch from Roman Jozsef)michael1-3/+17
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@784 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-03-21plugin_file patch from Mark Richardsmichael3-7/+4
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@782 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-03-13Crystalfontz keypad patch from kensonmichael1-9/+27
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@780 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-03-05ported changeset 778 from branches/0.10.1michael3-1/+3
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@779 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
p">{ error("[FIFO] Error: Too long '%s.FifoPath' entry from '%s'. " "(MAX " string(FIFO_MAXPATH) " chars)", fifosect, cfg_source()); free(path); return (-1); } info("[FIFO] Read '%s.FifoPath' value is '%s'", fifosect, path); disp = cfg_get(NULL, "Display", NULL); if (disp == NULL) { error("[FIFO] Error: Could not get the Display name from '%s'", cfg_source()); free(path); return (-1); } if ((sect = malloc(1 + strlen("Display:") + strlen(disp))) == NULL) { error("[FIFO] Error: Memory allocation failed"); free(disp); free(path); return (-1); } strcpy(sect, "Display:"); strcat(sect, disp); info("[FIFO] Using display '%s'.", disp); free(disp); disp = cfg_get(sect, "Size", NULL); if (disp != NULL) { info("[FIFO] Getting the buffer size from '%s.Size'", sect); if (sscanf(disp, "%dx%*d", &p->msglen) != 1) { info("[FIFO] Could not determine the display size. " "Assuming " string(FIFO_DEFAULT_BUFSIZE)); p->msglen = FIFO_DEFAULT_BUFSIZE; } free(disp); } else { info("[FIFO] Could not find a '%s.Size' entry.", sect); if (cfg_number(fifosect, "FifoBufSize", FIFO_DEFAULT_BUFSIZE, 0, -1, &p->msglen) > 0) { info("[FIFO] Getting the buffer size from '%s.FifoBufSize'", fifosect); } else { info("[FIFO] Could not find a valid '%s.FifoBufSize' entry. " "Assuming " string(FIFO_DEFAULT_BUFSIZE), fifosect); p->msglen = FIFO_DEFAULT_BUFSIZE; } } info("[FIFO] Read buffer size is '%d'", p->msglen); free(sect); if ((p->msg = malloc(2 + pathlen + p->msglen)) == NULL) { error("[FIFO] Error: Memory allocation failed"); free(path); return (-1); } p->msg[0] = 0; p->path = p->msg + p->msglen + 1; strcpy(p->path, path); free(path); return (0); } static int makeFifo(struct FifoData *p) { struct stat st; if (stat(p->path, &st) < 0) { if (errno == ENOENT) { if (mkfifo(p->path, 0666) == 0) { p->created = 1; return (0); } error("Couldn't create FIFO \"%s\": %s\n", p->path, strerror(errno)); return (-1); } error("Failed to stat FIFO \"%s\": %s\n", p->path, strerror(errno)); return (-1); } if (!S_ISFIFO(st.st_mode)) { error("\"%s\" already exists, but is not a FIFO", p->path); return (-1); } return (0); } static void closeFifo(struct FifoData *p) { struct stat st; if (p->input >= 0) { close(p->input); p->input = -1; } if ((p->created >= 0) && (stat(p->path, &st) == 0)) { debug("Removing FIFO \"%s\"\n", p->path); if (unlink(p->path) < 0) { error("Could not remove FIFO \"%s\": %s\n", p->path, strerror(errno)); return; } p->created = -1; } if (p->msg) { free(p->msg); p->msg = p->path = NULL; p->msglen = -1; } } static int openFifo(struct FifoData *p) { if (p->created < 0) { error("Error: FIFO \"%s\" does not exist: %s\n", p->path, strerror(errno)); return (-1); } if ((p->input = open(p->path, O_RDONLY | O_NONBLOCK)) < 0) { error("Could not open FIFO \"%s\" for reading: %s\n", p->path, strerror(errno)); closeFifo(p); return (-1); } return (0); } static int startFifo(struct FifoData *p) { int res; if ((res = confFifo(p))) return (res); if ((res = makeFifo(p))) return (res); if ((res = openFifo(p))) return (res); /* ignore broken pipe */ signal(SIGPIPE, SIG_IGN); return (res); } static void readFifo(struct FifoData *p) { int bytes; bytes = read(p->input, p->msg, p->msglen); if (bytes == 0) return; if (bytes > 0) { p->msg[bytes] = 0; while (bytes--) if (p->msg[bytes] < 0x20) p->msg[bytes] = ' '; } else { error("[FIFO] Error %i: %s", errno, strerror(errno)); strcpy(p->msg, "ERROR"); } } static void runFifo(RESULT * result) { static int state = 1; struct FifoData *p = &fd; char *s; switch (state) { case 1: /* Called for the first time. Set up everything. */ state = startFifo(p); s = ""; break; case 0: /* Init went fine. Now run in normal operation mode. */ readFifo(p); s = p->msg; break; default: /* There was an error somewhere in init. Do nothing. */ s = "ERROR"; break; } /* Store the result */ SetResult(&result, R_STRING, s); } /* plugin initialization */ int plugin_init_fifo(void) { AddFunction("fifo::read", 0, runFifo); return (0); } void plugin_exit_fifo(void) { closeFifo(&fd); }