aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_cpuinfo.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2007-01-14removed all tagsmichael1-66/+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/+73
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-3/+6
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-7/+13
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-18/+23
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-11[lcd4linux @ 2004-03-11 06:39:58 by reinelt]reinelt1-9/+18
big patch from Martin: - reuse filehandles - memory leaks fixed - earlier busy-flag checking with HD44780 - reuse memory for strings in RESULT and hash - netdev_fast to wavid time-consuming regex git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@393 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-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 10:48:17 by reinelt]reinelt1-8/+9
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-2/+6
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 07:26:25 by reinelt]reinelt1-39/+51
moved various /proc parsing to own functions made some progress with /proc/stat parsing git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@315 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-15[lcd4linux @ 2004-01-15 04:29:45 by reinelt]reinelt1-2/+8
moved lcd4linux.conf.sample to *.old lcd4linux.conf.sample with new layout new plugins 'loadavg' and 'meminfo' text widget have pre- and postfix git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@311 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-14[lcd4linux @ 2004-01-14 11:33:00 by reinelt]reinelt1-6/+8
new plugin 'uname' which does what it's called text widget nearly finished first results displayed on MatrixOrbital git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@310 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-13[lcd4linux @ 2004-01-13 10:03:01 by reinelt]reinelt1-0/+115
new util 'hash' for associative arrays new plugin 'cpuinfo' git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@309 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
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 */ #ifndef _ESG_REPRESENTATION_TEXTUAL_DECODER_INIT_H #define _ESG_REPRESENTATION_TEXTUAL_DECODER_INIT_H 1 #ifdef __cplusplus extern "C" { #endif #include <stdint.h> /** * esg_namespace_prefix structure. */ struct esg_namespace_prefix { uint16_t prefix_string_ptr; uint16_t namespace_uri_ptr; struct esg_namespace_prefix *_next; }; /** * esg_fragment_type structure. */ struct esg_xml_fragment_type { uint16_t xpath_ptr; uint16_t xml_fragment_type; struct esg_xml_fragment_type *_next; }; /** * esg_textual_decoder_init structure. */ struct esg_textual_decoder_init { uint8_t version; uint8_t num_namespace_prefixes; struct esg_namespace_prefix *namespace_prefix_list; uint8_t num_fragment_types; struct esg_xml_fragment_type *xml_fragment_type_list; }; /** * Process an esg_textual_decoder_init. * * @param buffer Binary buffer to decode. * @param size Binary buffer size. * @return Pointer to an esg_textual_decoder_init structure, or NULL on error. */ extern struct esg_textual_decoder_init *esg_textual_decoder_init_decode(uint8_t *buffer, uint32_t size); /** * Free an esg_textual_decoder_init. * * @param decoder_init Pointer to an esg_textual_decoder_init structure. */ extern void esg_textual_decoder_init_free(struct esg_textual_decoder_init *decoder_init); /** * Convenience iterator for namespace_prefix_list field of an esg_textual_decoder_init. * * @param decoder_init The esg_textual_decoder_init pointer. * @param namespace_prefix Variable holding a pointer to the current esg_namespace_prefix. */ #define esg_textual_decoder_namespace_prefix_list_for_each(decoder_init, namespace_prefix) \ for ((namespace_prefix) = (decoder_init)->namespace_prefix_list; \ (namespace_prefix); \ (namespace_prefix) = (namespace_prefix)->_next) /** * Convenience iterator for xml_fragment_type_list field of an esg_textual_decoder_init. * * @param decoder_init The esg_textual_decoder_init pointer. * @param xml_fragment_type Variable holding a pointer to the current esg_xml_fragment_type. */ #define esg_textual_decoder_xml_fragment_type_list_for_each(decoder_init, xml_fragment_type) \ for ((xml_fragment_type) = (decoder_init)->xml_fragment_type_list; \ (xml_fragment_type); \ (xml_fragment_type) = (xml_fragment_type)->_next) #ifdef __cplusplus } #endif #endif