Commit Graph

51 Commits

Author SHA1 Message Date
Al Poole b4f3a8da0a Enlightenment: Factor all sysctl battery code for bsd into e_mod_sysctl.c
This commit should now allow battery to support OpenBSD, FreeBSD, Dragonfly BSD, and NetBSD
2016-12-09 11:02:43 -06:00
Mike Blumenkrantz 1098abfb6e use snprintf for string handling in batget
CID 1039801
2016-03-22 15:10:50 -04:00
Mike Blumenkrantz 403e86d67c use snprintf for string handling in batget
CID 1039801
2016-03-22 12:06:27 -04:00
Stefan Schmidt c588867c1f modules/battery: Remove assign without effect
CID: 1316024
2015-08-12 09:26:19 +02:00
Mike Blumenkrantz 471dcb24cb __UNUSED__ -> EINA_UNUSED
this has been bugging me forever. __UNUSED__ is no longer a valid macro here.
2015-03-18 18:09:09 -04:00
Mike Blumenkrantz 07135d8b21 bugfix: use more descriptive + accurate buffer size in batget iterator
CID 1039801
2014-03-13 11:01:52 -04:00
Mike Blumenkrantz 0774c6bf65 ensure path length fits in buffer in batget
SVN revision: 80844
2012-12-13 13:18:07 +00:00
Mike Blumenkrantz 41236712d9 use PATH_MAX for path buffers
SVN revision: 80843
2012-12-13 13:16:01 +00:00
Mike Blumenkrantz c3569031ff more MAX removals
ticket #1757 (4/3)


SVN revision: 79140
2012-11-12 09:24:01 +00:00
Sebastian Dransfeld 427b6c34df e: Cleanup
Removes unused variables, drops duplicate return or break
     statements and drops unnecessary checks.

Patch by Igor Murzov

SVN revision: 77490
2012-10-04 23:26:48 +00:00
Mike Blumenkrantz 2434f5adbe more PATH_MAX cleanups
SVN revision: 75520
2012-08-22 07:32:12 +00:00
Mike Blumenkrantz 82fcf900bd formatting
SVN revision: 75196
2012-08-13 09:24:51 +00:00
Mike Blumenkrantz 08019c51a2 more bsd fd leaks--
SVN revision: 72597
2012-06-21 11:57:14 +00:00
Mike Blumenkrantz accabcade7 fix possible fd leak
SVN revision: 72595
2012-06-21 11:55:21 +00:00
Cedric BAIL c2a29811d5 e: massiv warning cleanup !
SVN revision: 70756
2012-05-04 09:38:52 +00:00
Carsten Haitzler 861f7bb901 add eina include to tempget and batget
SVN revision: 65337
2011-11-17 11:12:30 +00:00
Mike Blumenkrantz bc45b835df just return here, eh?
SVN revision: 64889
2011-11-07 22:41:02 +00:00
Carsten Haitzler 7cf548195e try now jeff. works for me with test dir based on your bat content.
use internal battery get option



SVN revision: 60613
2011-06-23 03:42:56 +00:00
Carsten Haitzler 2b7359879c jeff - try this battery change
SVN revision: 60549
2011-06-21 13:34:52 +00:00
Mike Blumenkrantz 9c200fb92e the formatting on this file was too awful to let it live
SVN revision: 55374
2010-12-08 15:35:13 +00:00
Lucas De Marchi 25113159a5 Fix common misspellings
Some misspellings were manually reverted since in E there are tons of .po with
phrases in other languages. Other than that all the changes in the following
files were reverted:

 * src/modules/illume/dicts/English_(US).dic
 * src/modules/illume-keyboard/dicts/English_(US).dic


Following misspellings were fixed:

acquited->acquitted
adres->address
adress->address
alreayd->already
aquire->acquire
arbitarily->arbitrarily
cant->can't
Capetown->Cape
carefull->careful
causalities->casualties
Celcius->Celsius
certian->certain
commandoes->commandos
considerd->considered
conveyer->conveyor
dependant->dependent
didnt->didn't
discontentment->discontent
doesnt->doesn't
everytime->every
exemple->example
existance->existence
existant->existent
existince->existence
Farenheit->Fahrenheit
forbad->forbade
funguses->fungi
guage->gauge
guerilla->guerrilla
guerillas->guerrillas
happend->happened
hasnt->hasn't
heros->heroes
inbetween->between
independant->independent
inital->initial
intrusted->entrusted
irregardless->regardless
isnt->isn't
knifes->knives
layed->laid
loosing->losing
marrage->marriage
midwifes->midwives
miniscule->minuscule
monickers->monikers
mroe->more
noone->no one
occured->occurred
omre->more
paralell->parallel
payed->paid
planed->planned
quitted->quit
quizes->quizzes
seperated->separated
seperate->separate
shoudl->should
similiar->similar
simplier->simpler
specifiying->specifying
teh->the
toke->took
torpedos->torpedoes
Tuscon->Tucson
unecessary->unnecessary
useage->usage
usefull->useful
useing->using
waht->what
wanna->want
whith->with
wich->which
withing->within




SVN revision: 52006
2010-09-08 23:59:07 +00:00
Lucas De Marchi 6638a10e20 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Carsten Haitzler 8692498308 hmm i wonder who broke batget - changed it from 5 to 4 params.
SVN revision: 48915
2010-05-16 15:00:35 +00:00
Carsten Haitzler f1bb22e498 from andrnils < fbsd build stuff
SVN revision: 48295
2010-04-25 06:26:25 +00:00
Gustavo Sverzut Barbieri 4a4faa95b5 module overhaul, passes -Wextra and reports more errors.
* check_changed for both basic and advanced dialog modes;

 * disable sliders and other widgets that depend on the checkbox;

 * smaller sliders;

 * ensure there is a timer if alert is set;

 * check all fgets() return, report error if format was not expected,
   simplify some cases.



SVN revision: 46802
2010-03-02 21:42:59 +00:00
Sebastian Dransfeld f2c243f91e make clang happy
SVN revision: 45191
2010-01-15 19:36:00 +00:00
Sebastian Dransfeld 25398b689f make clang happy
SVN revision: 45151
2010-01-14 23:48:37 +00:00
Vincent Torri 18db67b1fb batget:
* some cleanup
 * allow compilation with opensolaris


SVN revision: 44521
2009-12-17 08:20:37 +00:00
Hannes Janetzek a551323a28 e/src/modules:
- cast ints to pointer correctly
- remove unused variables
- #if 0 unusued code
- fix some function declarations for callbacks 


SVN revision: 42210
2009-09-03 16:32:48 +00:00
Carsten Haitzler 690fd53e50 disable uevent fd handler - i thought i committed this?
SVN revision: 41836
2009-08-17 07:55:01 +00:00
Vincent Torri 64f80081aa define MAX for all OS, instead of plenty #include
SVN revision: 40012
2009-04-13 10:25:11 +00:00
Carsten Haitzler d3e714523e formatting
SVN revision: 39761
2009-03-27 14:07:12 +00:00
Cedric BAIL db419867dd * estickies,
* etk,
	* PROTO/exalt,
	* E-MODULES-EXTRA/diskio,
	* E-MODULES-EXTRA/drawer,
	* E-MODULES-EXTRA/penguins,
	* E-MODULES-EXTRA/slideshow,
	* E-MODULES-EXTRA/mail,
	* E-MODULES-EXTRA/forecasts,
	* E-MODULES-EXTRA/iiirk,
	* E-MODULES-EXTRA/places,
	* e,
	* ewl,
	* ecore,
	* elitaire,
	* entrance,
	* e_dbus,
	* efreet: Here we go, move from Ecore_List to Eina_List.

	NOTE: This patch is huge, I did test it a lot, and I hope nothing is
	broken. But if you think something change after this commit, please
	contact me ASAP.


SVN revision: 39200
2009-02-25 11:03:47 +00:00
handyande 61801ee22d Fixup compile / link errors with OSX, still having a small issue with the batter module linking, but getting there
SVN revision: 38570
2009-01-13 16:30:37 +00:00
Nicholas Hughart c414d49e48 That's what I get for applying patches without looking at them well enough. Fix up a few bugs in the patch received, let me know if there are issues with it.
SVN revision: 36169
2008-09-22 14:23:15 +00:00
Nicholas Hughart 5450d03a0b Fix a couple typos and detection of sysfs acpi battery info.
SVN revision: 35971
2008-09-12 21:31:46 +00:00
Carsten Haitzler 1b3694eb00 handle other states for "state" - not charging is an... interesting one...
(as a replacement for discharging)


SVN revision: 35401
2008-08-07 23:37:14 +00:00
Sebastian Dransfeld 72dcd1c169 Remove unused variables.
SVN revision: 34862
2008-06-19 12:18:59 +00:00
Carsten Haitzler 09453fe184 remove ! apm exists check.
SVN revision: 34538
2008-05-11 16:21:21 +00:00
Carsten Haitzler 5645ce0449 suspend/resume brokeon power class - lost event file node and never got it
back. now try get them all back if they get lost.


SVN revision: 34461
2008-05-04 06:13:26 +00:00
Carsten Haitzler 9aaf72f72a better detection of apm vs powerclass... as i have no seen a system with BOTH
of them active! argh!


SVN revision: 34406
2008-04-30 05:33:44 +00:00
Carsten Haitzler c71bc63e7e if we have apm as well on a new kernel - use that as it will probably take
preference to power_supply class stuff


SVN revision: 34390
2008-04-28 11:12:25 +00:00
Carsten Haitzler 088fceedde fix batget infinie spin
SVN revision: 34273
2008-04-15 15:20:59 +00:00
Sebastian Dransfeld fe68d438c6 Fix compiler warnings.
SVN revision: 34019
2008-03-13 19:13:36 +00:00
Carsten Haitzler 6c8d35abf0 let's just put all things that multiply that could possibly be big numbers be
long long to avoid overflows. :)


SVN revision: 33911
2008-03-04 03:35:03 +00:00
Gustavo Sverzut Barbieri 617ab30c56 Integer overflow.
This fixes my battery showing 18% for on power, fully charged battery,
but possible there are many more of those.


SVN revision: 33910
2008-03-04 01:06:58 +00:00
Carsten Haitzler 55b40f3d3b seems to be behaving now.
SVN revision: 33906
2008-03-03 14:35:26 +00:00
Carsten Haitzler 29ccce4f86 dont loop forever on read from event fd
SVN revision: 33905
2008-03-03 11:36:59 +00:00
Carsten Haitzler fe6f5aa3d1 oops - pass sysev
SVN revision: 33904
2008-03-03 10:30:31 +00:00