aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_xmms.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2007-01-14removed all tagsmichael1-54/+0
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@727 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-01-14svn properties fixedmichael1-1/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@726 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2005-05-08[lcd4linux @ 2005-05-08 04:32:43 by reinelt]reinelt1-60/+72
CodingStyle added and applied git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@547 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2005-01-18[lcd4linux @ 2005-01-18 06:30:21 by reinelt]reinelt1-2/+5
added (C) to all copyright statements git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@509 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-06-26[lcd4linux @ 2004-06-26 12:04:59 by reinelt]reinelt1-2/+6
uh-oh... the last CVS log message messed up things a lot... git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@481 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-06-26[lcd4linux @ 2004-06-26 09:27:20 by reinelt]reinelt1-10/+16
added '-W' to CFLAGS changed all C++ comments to C ones ('//' => '/* */') cleaned up a lot of signed/unsigned mistakes git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@480 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-06-17[lcd4linux @ 2004-06-17 06:23:39 by reinelt]reinelt1-6/+11
hash handling rewritten to solve performance issues git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@473 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-03-03[lcd4linux @ 2004-03-03 03:47:04 by reinelt]reinelt1-1/+13
big patch from Martin Hejl: - use qprintf() where appropriate - save CPU cycles on gettimeofday() - add quit() functions to free allocated memory - fixed lots of memory leaks git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@384 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-02-05[lcd4linux @ 2004-02-05 23:58:18 by mkeil]mkeil1-3/+5
Fixed/Optimized Hashage-timings git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@357 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-29[lcd4linux @ 2004-01-29 04:40:02 by reinelt]reinelt1-1/+6
every .c file includes "config.h" now git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@344 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-21[lcd4linux @ 2004-01-21 11:31:23 by reinelt]reinelt1-1/+5
two bugs with hash_age() ixed git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@330 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-21[lcd4linux @ 2004-01-21 10:48:17 by reinelt]reinelt1-7/+8
hash_age function added git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@329 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-16[lcd4linux @ 2004-01-16 11:12:26 by reinelt]reinelt1-29/+52
some bugs in plugin_xmms fixed, parsing moved to own function plugin_proc_stat nearly finished git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@317 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-16[lcd4linux @ 2004-01-16 10:09:49 by mkeil]mkeil1-12/+29
-include caching for values git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@316 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-06[lcd4linux @ 2004-01-06 22:33:13 by reinelt]reinelt1-2/+5
Copyright statements cleaned up git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@293 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2003-12-19[lcd4linux @ 2003-12-19 06:27:33 by reinelt]reinelt1-0/+104
added XMMS plugin from Markus Keil git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@283 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
> #include <errno.h> #include <sys/utsname.h> #include "debug.h" #include "plugin.h" static void my_uname(RESULT * result, RESULT * arg1) { struct utsname utsbuf; char *key, *value; key = R2S(arg1); if (uname(&utsbuf) != 0) { error("uname() failed: %s", strerror(errno)); SetResult(&result, R_STRING, ""); return; } if (strcasecmp(key, "sysname") == 0) { value = utsbuf.sysname; } else if (strcasecmp(key, "nodename") == 0) { value = utsbuf.nodename; } else if (strcasecmp(key, "release") == 0) { value = utsbuf.release; } else if (strcasecmp(key, "version") == 0) { value = utsbuf.version; } else if (strcasecmp(key, "machine") == 0) { value = utsbuf.machine; #if defined(_GNU_SOURCE) && ! defined(__APPLE__) } else if (strcasecmp(key, "domainname") == 0) { value = utsbuf.domainname; #endif } else { error("uname: unknown field '%s'", key); value = ""; } SetResult(&result, R_STRING, value); } int plugin_init_uname(void) { AddFunction("uname", 1, my_uname); return 0; } void plugin_exit_uname(void) { }