File: libacpi_8h.html

package info (click to toggle)
libacpi 0.2-7
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,120 kB
  • sloc: ansic: 870; makefile: 83; sh: 19
file content (817 lines) | stat: -rw-r--r-- 55,787 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libacpi: libacpi.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.2 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="annotated.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
  </ul>
</div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
  </ul>
</div>
<h1>libacpi.h File Reference</h1>libacpi structures <a href="#_details">More...</a>
<p>

<p>
This graph shows which files directly or indirectly include this file:<p><center><img src="libacpi_8h__dep__incl.png" border="0" usemap="#libacpi.hdep_map" alt=""></center>
<map name="libacpi.hdep_map">
<area shape="rect" href="libacpi_8c.html" title="libacpi structures" alt="" coords="123,5,189,32"></map>

<p>
<a href="libacpi_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfan__t.html">fan_t</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">fan data  <a href="structfan__t.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbattery__t.html">battery_t</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">information found about battery  <a href="structbattery__t.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structthermal__t.html">thermal_t</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">information about thermal zone  <a href="structthermal__t.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structadapter__t.html">adapter_t</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">information about ac adapater  <a href="structadapter__t.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structglobal__t.html">global_t</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">global acpi structure  <a href="structglobal__t.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#c36551fb8e9d15223e2277cceea0e472">PROC_ACPI</a>&nbsp;&nbsp;&nbsp;&quot;/proc/acpi/&quot;</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#ae3371f3a2ed27aefae9c4e26982fc99">LINE_MAX</a>&nbsp;&nbsp;&nbsp;256</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#c7c0207aa5a0e10d378be03b68041350">MAX_NAME</a>&nbsp;&nbsp;&nbsp;512</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#2491303d0fe260aaba8f46717cda66cc">MAX_BUF</a>&nbsp;&nbsp;&nbsp;1024</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#1b40ceb455086d9cdb68ed3d3bf2775f">MAX_ITEMS</a>&nbsp;&nbsp;&nbsp;10</td></tr>

<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom">{ <br>
&nbsp;&nbsp;<a class="el" href="libacpi_8h.html#06fc87d81c62e9abb8790b6e5713c55bdf704c7fc510fe0ebb57059488ad8620">ITEM_EXCEED</a> =  -5, 
<a class="el" href="libacpi_8h.html#06fc87d81c62e9abb8790b6e5713c55b40f39385238042f6ec0cbac821a19fc4">DISABLED</a> =  -4, 
<a class="el" href="libacpi_8h.html#06fc87d81c62e9abb8790b6e5713c55bcf30d1e6a6b091ca668346f50810f125">NOT_PRESENT</a> =  -3, 
<a class="el" href="libacpi_8h.html#06fc87d81c62e9abb8790b6e5713c55b32f76f1d59536aa25d0ca488b60eabc6">ALLOC_ERR</a> =  -2, 
<br>
&nbsp;&nbsp;<a class="el" href="libacpi_8h.html#06fc87d81c62e9abb8790b6e5713c55b9bf1138c8c1f4519e5b814514b750ca3">NOT_SUPPORTED</a> =  -1, 
<a class="el" href="libacpi_8h.html#06fc87d81c62e9abb8790b6e5713c55bc7f69f7c9e5aea9b8f54cf02870e2bf8">SUCCESS</a>
<br>
 }</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#cd64982bf58e213a07ae1fe0f2235cb9">power_state_t</a> { <a class="el" href="libacpi_8h.html#cd64982bf58e213a07ae1fe0f2235cb9365f2fd8a5d4bda70e8ec75ce833798b">P_AC</a>, 
<a class="el" href="libacpi_8h.html#cd64982bf58e213a07ae1fe0f2235cb9889cb9a7eabf7cdb3155692b042c32ed">P_BATT</a>, 
<a class="el" href="libacpi_8h.html#cd64982bf58e213a07ae1fe0f2235cb942c0172e4a8138a172ee75f6708a777c">P_ERR</a>
 }</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#1d0bad6943da27e84577f7f47c1558b9">thermal_state_t</a> { <br>
&nbsp;&nbsp;<a class="el" href="libacpi_8h.html#1d0bad6943da27e84577f7f47c1558b9589cd404715c593dc11efcb18a371f6d">T_CRIT</a>, 
<a class="el" href="libacpi_8h.html#1d0bad6943da27e84577f7f47c1558b95362c8e23fecdf0085e6acf41bcebb19">T_HOT</a>, 
<a class="el" href="libacpi_8h.html#1d0bad6943da27e84577f7f47c1558b9b5f5b31576cb295823151865083148c2">T_PASS</a>, 
<a class="el" href="libacpi_8h.html#1d0bad6943da27e84577f7f47c1558b980464bd7a08a317328639141249d546e">T_ACT</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="libacpi_8h.html#1d0bad6943da27e84577f7f47c1558b9666025b4022d1bf5c511c059554a80e0">T_OK</a>, 
<a class="el" href="libacpi_8h.html#1d0bad6943da27e84577f7f47c1558b9729eb9e0cada239395b6f98413b432f7">T_ERR</a>
<br>
 }</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#5d2d7d0beb018d811f56028758a95a15">charge_state_t</a> { <br>
&nbsp;&nbsp;<a class="el" href="libacpi_8h.html#5d2d7d0beb018d811f56028758a95a15b0e502264ff68c2ff209c8665b538f86">C_CHARGE</a>, 
<a class="el" href="libacpi_8h.html#5d2d7d0beb018d811f56028758a95a1506c1825628303996bc17d453faa2c8ac">C_DISCHARGE</a>, 
<a class="el" href="libacpi_8h.html#5d2d7d0beb018d811f56028758a95a15544eab0e0d55bc325ca919ec3a045c4c">C_CHARGED</a>, 
<a class="el" href="libacpi_8h.html#5d2d7d0beb018d811f56028758a95a153402b28a81bf81082ad2c01c0ba7df6a">C_NOINFO</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="libacpi_8h.html#5d2d7d0beb018d811f56028758a95a157329721814fade9a2fb276fd67ae4fbc">C_ERR</a>
<br>
 }</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#24914a3261e55c8855e08a30a73f45c6">batt_state_t</a> { <br>
&nbsp;&nbsp;<a class="el" href="libacpi_8h.html#24914a3261e55c8855e08a30a73f45c61eccc5d55e1e4658423183223319d260">B_HIGH</a>, 
<a class="el" href="libacpi_8h.html#24914a3261e55c8855e08a30a73f45c605fc34f4a67a23e276392f8ecbc84c49">B_MED</a>, 
<a class="el" href="libacpi_8h.html#24914a3261e55c8855e08a30a73f45c64c4b3d37527a42ba1bea36db99d1cf5b">B_LOW</a>, 
<a class="el" href="libacpi_8h.html#24914a3261e55c8855e08a30a73f45c6e7f919da0a313fb78e8e23d92550f2e9">B_CRIT</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="libacpi_8h.html#24914a3261e55c8855e08a30a73f45c613b45e0685cb6de1a2255ff4ba10b5e1">B_HARD_CRIT</a>, 
<a class="el" href="libacpi_8h.html#24914a3261e55c8855e08a30a73f45c6350ea1b9477c6aacbe2d4261d3285efb">B_ERR</a>
<br>
 }</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#9345f61e497d4b30e778837a8bd5c722">thermal_mode_t</a> { <a class="el" href="libacpi_8h.html#9345f61e497d4b30e778837a8bd5c722164f7068edbdc9cd76eb89665cdd16d0">CO_ACT</a>, 
<a class="el" href="libacpi_8h.html#9345f61e497d4b30e778837a8bd5c722c78c0263aab2df7ff576b98606ef8ba3">CO_PASS</a>, 
<a class="el" href="libacpi_8h.html#9345f61e497d4b30e778837a8bd5c7221bd0aa1aba789d22be60776914b5125b">CO_CRIT</a>, 
<a class="el" href="libacpi_8h.html#9345f61e497d4b30e778837a8bd5c72270f17365bf605d5a797876b137bd9c9e">CO_ERR</a>
 }</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#d92db42128e7a9e993d626e4063922df">fan_state_t</a> { <a class="el" href="libacpi_8h.html#d92db42128e7a9e993d626e4063922df11fdaecef4ee3e8137d84489f50aee56">F_ON</a>, 
<a class="el" href="libacpi_8h.html#d92db42128e7a9e993d626e4063922df0f1d7fcbc5d88495ce355805ab42752e">F_OFF</a>, 
<a class="el" href="libacpi_8h.html#d92db42128e7a9e993d626e4063922dfc54e3454d27de4569dd370b5855e7da4">F_ERR</a>
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">fan states  <a href="libacpi_8h.html#d92db42128e7a9e993d626e4063922df">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#b63d686528f867234559a0bd829f9a33">init_acpi_batt</a> (<a class="el" href="structglobal__t.html">global_t</a> *globals)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#027286cd397157bdbf9e551ef510cb59">init_acpi_acadapt</a> (<a class="el" href="structglobal__t.html">global_t</a> *globals)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#b46f89c7d7ff338842d7619c7392c0bf">init_acpi_thermal</a> (<a class="el" href="structglobal__t.html">global_t</a> *globals)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#3ee17a37e660f31b7b7e5f2f0896851b">init_acpi_fan</a> (<a class="el" href="structglobal__t.html">global_t</a> *globals)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#8954ea2d1a2dc9a7991132d1f4323c78">check_acpi_support</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#ed850c96630f208168a5408435f022d6">read_acpi_batt</a> (const int num)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#baf0f122878f23b4cc8a5cb2dea8bf71">read_acpi_acstate</a> (<a class="el" href="structglobal__t.html">global_t</a> *globals)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#ca686b7af0b4935ece6342c6e020b586">read_acpi_zone</a> (const int num, <a class="el" href="structglobal__t.html">global_t</a> *globals)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#f9608343ea3b2cbd693b009978e0d8c3">read_acpi_fan</a> (const int num)</td></tr>

<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structbattery__t.html">battery_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#3c0cd13757d04f0ca65bba3ec0de6538">batteries</a> [MAX_ITEMS]</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structthermal__t.html">thermal_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#f7add5d641271fbd8ad4fc81a849dfc4">thermals</a> [MAX_ITEMS]</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structfan__t.html">fan_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="libacpi_8h.html#12ba731d90fb5e43718edb5144e7caaa">fans</a> [MAX_ITEMS]</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
libacpi structures 
<p>

<p>
Definition in file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.<hr><h2>Define Documentation</h2>
<a class="anchor" name="ae3371f3a2ed27aefae9c4e26982fc99"></a><!-- doxytag: member="libacpi.h::LINE_MAX" ref="ae3371f3a2ed27aefae9c4e26982fc99" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LINE_MAX&nbsp;&nbsp;&nbsp;256          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00015">15</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
</div>
</div><p>
<a class="anchor" name="2491303d0fe260aaba8f46717cda66cc"></a><!-- doxytag: member="libacpi.h::MAX_BUF" ref="2491303d0fe260aaba8f46717cda66cc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAX_BUF&nbsp;&nbsp;&nbsp;1024          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00017">17</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
</div>
</div><p>
<a class="anchor" name="1b40ceb455086d9cdb68ed3d3bf2775f"></a><!-- doxytag: member="libacpi.h::MAX_ITEMS" ref="1b40ceb455086d9cdb68ed3d3bf2775f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAX_ITEMS&nbsp;&nbsp;&nbsp;10          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00018">18</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
<p>
Referenced by <a class="el" href="libacpi_8c-source.html#l00139">init_acpi_batt()</a>, <a class="el" href="libacpi_8c-source.html#l00264">init_acpi_fan()</a>, <a class="el" href="libacpi_8c-source.html#l00298">init_acpi_thermal()</a>, <a class="el" href="libacpi_8c-source.html#l00608">read_acpi_batt()</a>, <a class="el" href="libacpi_8c-source.html#l00230">read_acpi_fan()</a>, and <a class="el" href="libacpi_8c-source.html#l00359">read_acpi_zone()</a>.
</div>
</div><p>
<a class="anchor" name="c7c0207aa5a0e10d378be03b68041350"></a><!-- doxytag: member="libacpi.h::MAX_NAME" ref="c7c0207aa5a0e10d378be03b68041350" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAX_NAME&nbsp;&nbsp;&nbsp;512          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00016">16</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
<p>
Referenced by <a class="el" href="libacpi_8c-source.html#l00211">init_acpi_acadapt()</a>, <a class="el" href="libacpi_8c-source.html#l00139">init_acpi_batt()</a>, <a class="el" href="libacpi_8c-source.html#l00264">init_acpi_fan()</a>, and <a class="el" href="libacpi_8c-source.html#l00298">init_acpi_thermal()</a>.
</div>
</div><p>
<a class="anchor" name="c36551fb8e9d15223e2277cceea0e472"></a><!-- doxytag: member="libacpi.h::PROC_ACPI" ref="c36551fb8e9d15223e2277cceea0e472" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PROC_ACPI&nbsp;&nbsp;&nbsp;&quot;/proc/acpi/&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00014">14</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
<p>
Referenced by <a class="el" href="libacpi_8c-source.html#l00211">init_acpi_acadapt()</a>, <a class="el" href="libacpi_8c-source.html#l00139">init_acpi_batt()</a>, <a class="el" href="libacpi_8c-source.html#l00264">init_acpi_fan()</a>, and <a class="el" href="libacpi_8c-source.html#l00298">init_acpi_thermal()</a>.
</div>
</div><p>
<hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="06fc87d81c62e9abb8790b6e5713c55b"></a><!-- doxytag: member="libacpi.h::@0" ref="06fc87d81c62e9abb8790b6e5713c55b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">anonymous enum          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="06fc87d81c62e9abb8790b6e5713c55bdf704c7fc510fe0ebb57059488ad8620"></a><!-- doxytag: member="ITEM_EXCEED" ref="06fc87d81c62e9abb8790b6e5713c55bdf704c7fc510fe0ebb57059488ad8620" args="" -->ITEM_EXCEED</em>&nbsp;</td><td>
maximum item count reached </td></tr>
<tr><td valign="top"><em><a class="anchor" name="06fc87d81c62e9abb8790b6e5713c55b40f39385238042f6ec0cbac821a19fc4"></a><!-- doxytag: member="DISABLED" ref="06fc87d81c62e9abb8790b6e5713c55b40f39385238042f6ec0cbac821a19fc4" args="" -->DISABLED</em>&nbsp;</td><td>
feature is disabled </td></tr>
<tr><td valign="top"><em><a class="anchor" name="06fc87d81c62e9abb8790b6e5713c55bcf30d1e6a6b091ca668346f50810f125"></a><!-- doxytag: member="NOT_PRESENT" ref="06fc87d81c62e9abb8790b6e5713c55bcf30d1e6a6b091ca668346f50810f125" args="" -->NOT_PRESENT</em>&nbsp;</td><td>
something is not present </td></tr>
<tr><td valign="top"><em><a class="anchor" name="06fc87d81c62e9abb8790b6e5713c55b32f76f1d59536aa25d0ca488b60eabc6"></a><!-- doxytag: member="ALLOC_ERR" ref="06fc87d81c62e9abb8790b6e5713c55b32f76f1d59536aa25d0ca488b60eabc6" args="" -->ALLOC_ERR</em>&nbsp;</td><td>
an error occurred while allocating space </td></tr>
<tr><td valign="top"><em><a class="anchor" name="06fc87d81c62e9abb8790b6e5713c55b9bf1138c8c1f4519e5b814514b750ca3"></a><!-- doxytag: member="NOT_SUPPORTED" ref="06fc87d81c62e9abb8790b6e5713c55b9bf1138c8c1f4519e5b814514b750ca3" args="" -->NOT_SUPPORTED</em>&nbsp;</td><td>
a feature is not supported </td></tr>
<tr><td valign="top"><em><a class="anchor" name="06fc87d81c62e9abb8790b6e5713c55bc7f69f7c9e5aea9b8f54cf02870e2bf8"></a><!-- doxytag: member="SUCCESS" ref="06fc87d81c62e9abb8790b6e5713c55bc7f69f7c9e5aea9b8f54cf02870e2bf8" args="" -->SUCCESS</em>&nbsp;</td><td>
everything was fine </td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00024">24</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
</div>
</div><p>
<a class="anchor" name="24914a3261e55c8855e08a30a73f45c6"></a><!-- doxytag: member="libacpi.h::batt_state_t" ref="24914a3261e55c8855e08a30a73f45c6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="structbatt__state__t.html">batt_state_t</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="24914a3261e55c8855e08a30a73f45c61eccc5d55e1e4658423183223319d260"></a><!-- doxytag: member="B_HIGH" ref="24914a3261e55c8855e08a30a73f45c61eccc5d55e1e4658423183223319d260" args="" -->B_HIGH</em>&nbsp;</td><td>
remaining battery life is high </td></tr>
<tr><td valign="top"><em><a class="anchor" name="24914a3261e55c8855e08a30a73f45c605fc34f4a67a23e276392f8ecbc84c49"></a><!-- doxytag: member="B_MED" ref="24914a3261e55c8855e08a30a73f45c605fc34f4a67a23e276392f8ecbc84c49" args="" -->B_MED</em>&nbsp;</td><td>
remaining battery life is medium </td></tr>
<tr><td valign="top"><em><a class="anchor" name="24914a3261e55c8855e08a30a73f45c64c4b3d37527a42ba1bea36db99d1cf5b"></a><!-- doxytag: member="B_LOW" ref="24914a3261e55c8855e08a30a73f45c64c4b3d37527a42ba1bea36db99d1cf5b" args="" -->B_LOW</em>&nbsp;</td><td>
remaining battery life is low </td></tr>
<tr><td valign="top"><em><a class="anchor" name="24914a3261e55c8855e08a30a73f45c6e7f919da0a313fb78e8e23d92550f2e9"></a><!-- doxytag: member="B_CRIT" ref="24914a3261e55c8855e08a30a73f45c6e7f919da0a313fb78e8e23d92550f2e9" args="" -->B_CRIT</em>&nbsp;</td><td>
remaining battery life is critical </td></tr>
<tr><td valign="top"><em><a class="anchor" name="24914a3261e55c8855e08a30a73f45c613b45e0685cb6de1a2255ff4ba10b5e1"></a><!-- doxytag: member="B_HARD_CRIT" ref="24914a3261e55c8855e08a30a73f45c613b45e0685cb6de1a2255ff4ba10b5e1" args="" -->B_HARD_CRIT</em>&nbsp;</td><td>
remaining battery life is hard critical, you have a few minutes to charge </td></tr>
<tr><td valign="top"><em><a class="anchor" name="24914a3261e55c8855e08a30a73f45c6350ea1b9477c6aacbe2d4261d3285efb"></a><!-- doxytag: member="B_ERR" ref="24914a3261e55c8855e08a30a73f45c6350ea1b9477c6aacbe2d4261d3285efb" args="" -->B_ERR</em>&nbsp;</td><td>
some error occurred while reading the battery state </td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00072">72</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
</div>
</div><p>
<a class="anchor" name="5d2d7d0beb018d811f56028758a95a15"></a><!-- doxytag: member="libacpi.h::charge_state_t" ref="5d2d7d0beb018d811f56028758a95a15" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="structcharge__state__t.html">charge_state_t</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="5d2d7d0beb018d811f56028758a95a15b0e502264ff68c2ff209c8665b538f86"></a><!-- doxytag: member="C_CHARGE" ref="5d2d7d0beb018d811f56028758a95a15b0e502264ff68c2ff209c8665b538f86" args="" -->C_CHARGE</em>&nbsp;</td><td>
battery is currently charging </td></tr>
<tr><td valign="top"><em><a class="anchor" name="5d2d7d0beb018d811f56028758a95a1506c1825628303996bc17d453faa2c8ac"></a><!-- doxytag: member="C_DISCHARGE" ref="5d2d7d0beb018d811f56028758a95a1506c1825628303996bc17d453faa2c8ac" args="" -->C_DISCHARGE</em>&nbsp;</td><td>
battery is currently discharging </td></tr>
<tr><td valign="top"><em><a class="anchor" name="5d2d7d0beb018d811f56028758a95a15544eab0e0d55bc325ca919ec3a045c4c"></a><!-- doxytag: member="C_CHARGED" ref="5d2d7d0beb018d811f56028758a95a15544eab0e0d55bc325ca919ec3a045c4c" args="" -->C_CHARGED</em>&nbsp;</td><td>
battery is charged </td></tr>
<tr><td valign="top"><em><a class="anchor" name="5d2d7d0beb018d811f56028758a95a153402b28a81bf81082ad2c01c0ba7df6a"></a><!-- doxytag: member="C_NOINFO" ref="5d2d7d0beb018d811f56028758a95a153402b28a81bf81082ad2c01c0ba7df6a" args="" -->C_NOINFO</em>&nbsp;</td><td>
hardware doesn't give information about the state </td></tr>
<tr><td valign="top"><em><a class="anchor" name="5d2d7d0beb018d811f56028758a95a157329721814fade9a2fb276fd67ae4fbc"></a><!-- doxytag: member="C_ERR" ref="5d2d7d0beb018d811f56028758a95a157329721814fade9a2fb276fd67ae4fbc" args="" -->C_ERR</em>&nbsp;</td><td>
some error occurred while reading the charge state </td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00060">60</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
</div>
</div><p>
<a class="anchor" name="d92db42128e7a9e993d626e4063922df"></a><!-- doxytag: member="libacpi.h::fan_state_t" ref="d92db42128e7a9e993d626e4063922df" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="libacpi_8h.html#d92db42128e7a9e993d626e4063922df">fan_state_t</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
fan states 
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="d92db42128e7a9e993d626e4063922df11fdaecef4ee3e8137d84489f50aee56"></a><!-- doxytag: member="F_ON" ref="d92db42128e7a9e993d626e4063922df11fdaecef4ee3e8137d84489f50aee56" args="" -->F_ON</em>&nbsp;</td><td>
fan is on </td></tr>
<tr><td valign="top"><em><a class="anchor" name="d92db42128e7a9e993d626e4063922df0f1d7fcbc5d88495ce355805ab42752e"></a><!-- doxytag: member="F_OFF" ref="d92db42128e7a9e993d626e4063922df0f1d7fcbc5d88495ce355805ab42752e" args="" -->F_OFF</em>&nbsp;</td><td>
fan is off </td></tr>
<tr><td valign="top"><em><a class="anchor" name="d92db42128e7a9e993d626e4063922dfc54e3454d27de4569dd370b5855e7da4"></a><!-- doxytag: member="F_ERR" ref="d92db42128e7a9e993d626e4063922dfc54e3454d27de4569dd370b5855e7da4" args="" -->F_ERR</em>&nbsp;</td><td>
some error occurred with this fan </td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00096">96</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
</div>
</div><p>
<a class="anchor" name="cd64982bf58e213a07ae1fe0f2235cb9"></a><!-- doxytag: member="libacpi.h::power_state_t" ref="cd64982bf58e213a07ae1fe0f2235cb9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="structpower__state__t.html">power_state_t</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="cd64982bf58e213a07ae1fe0f2235cb9365f2fd8a5d4bda70e8ec75ce833798b"></a><!-- doxytag: member="P_AC" ref="cd64982bf58e213a07ae1fe0f2235cb9365f2fd8a5d4bda70e8ec75ce833798b" args="" -->P_AC</em>&nbsp;</td><td>
if computer runs on AC </td></tr>
<tr><td valign="top"><em><a class="anchor" name="cd64982bf58e213a07ae1fe0f2235cb9889cb9a7eabf7cdb3155692b042c32ed"></a><!-- doxytag: member="P_BATT" ref="cd64982bf58e213a07ae1fe0f2235cb9889cb9a7eabf7cdb3155692b042c32ed" args="" -->P_BATT</em>&nbsp;</td><td>
if computer runs on battery </td></tr>
<tr><td valign="top"><em><a class="anchor" name="cd64982bf58e213a07ae1fe0f2235cb942c0172e4a8138a172ee75f6708a777c"></a><!-- doxytag: member="P_ERR" ref="cd64982bf58e213a07ae1fe0f2235cb942c0172e4a8138a172ee75f6708a777c" args="" -->P_ERR</em>&nbsp;</td><td>
no information can be found </td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00037">37</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
</div>
</div><p>
<a class="anchor" name="9345f61e497d4b30e778837a8bd5c722"></a><!-- doxytag: member="libacpi.h::thermal_mode_t" ref="9345f61e497d4b30e778837a8bd5c722" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="structthermal__mode__t.html">thermal_mode_t</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="9345f61e497d4b30e778837a8bd5c722164f7068edbdc9cd76eb89665cdd16d0"></a><!-- doxytag: member="CO_ACT" ref="9345f61e497d4b30e778837a8bd5c722164f7068edbdc9cd76eb89665cdd16d0" args="" -->CO_ACT</em>&nbsp;</td><td>
fans will be turned after the temperature passes a critical point </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9345f61e497d4b30e778837a8bd5c722c78c0263aab2df7ff576b98606ef8ba3"></a><!-- doxytag: member="CO_PASS" ref="9345f61e497d4b30e778837a8bd5c722c78c0263aab2df7ff576b98606ef8ba3" args="" -->CO_PASS</em>&nbsp;</td><td>
devices will be put in a lower power state after a critical point </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9345f61e497d4b30e778837a8bd5c7221bd0aa1aba789d22be60776914b5125b"></a><!-- doxytag: member="CO_CRIT" ref="9345f61e497d4b30e778837a8bd5c7221bd0aa1aba789d22be60776914b5125b" args="" -->CO_CRIT</em>&nbsp;</td><td>
system goes into suspend to disk if possible after a critical temperature </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9345f61e497d4b30e778837a8bd5c72270f17365bf605d5a797876b137bd9c9e"></a><!-- doxytag: member="CO_ERR" ref="9345f61e497d4b30e778837a8bd5c72270f17365bf605d5a797876b137bd9c9e" args="" -->CO_ERR</em>&nbsp;</td><td>
some error occurred while reading the cooling mode </td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00085">85</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
</div>
</div><p>
<a class="anchor" name="1d0bad6943da27e84577f7f47c1558b9"></a><!-- doxytag: member="libacpi.h::thermal_state_t" ref="1d0bad6943da27e84577f7f47c1558b9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="structthermal__state__t.html">thermal_state_t</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="1d0bad6943da27e84577f7f47c1558b9589cd404715c593dc11efcb18a371f6d"></a><!-- doxytag: member="T_CRIT" ref="1d0bad6943da27e84577f7f47c1558b9589cd404715c593dc11efcb18a371f6d" args="" -->T_CRIT</em>&nbsp;</td><td>
zone reports critical temperature, will cause system to go to S4 </td></tr>
<tr><td valign="top"><em><a class="anchor" name="1d0bad6943da27e84577f7f47c1558b95362c8e23fecdf0085e6acf41bcebb19"></a><!-- doxytag: member="T_HOT" ref="1d0bad6943da27e84577f7f47c1558b95362c8e23fecdf0085e6acf41bcebb19" args="" -->T_HOT</em>&nbsp;</td><td>
zone reports high temperature, will cause system to shutdown immediately </td></tr>
<tr><td valign="top"><em><a class="anchor" name="1d0bad6943da27e84577f7f47c1558b9b5f5b31576cb295823151865083148c2"></a><!-- doxytag: member="T_PASS" ref="1d0bad6943da27e84577f7f47c1558b9b5f5b31576cb295823151865083148c2" args="" -->T_PASS</em>&nbsp;</td><td>
zone is on passive cooling </td></tr>
<tr><td valign="top"><em><a class="anchor" name="1d0bad6943da27e84577f7f47c1558b980464bd7a08a317328639141249d546e"></a><!-- doxytag: member="T_ACT" ref="1d0bad6943da27e84577f7f47c1558b980464bd7a08a317328639141249d546e" args="" -->T_ACT</em>&nbsp;</td><td>
zone is on active cooling, more power consumption </td></tr>
<tr><td valign="top"><em><a class="anchor" name="1d0bad6943da27e84577f7f47c1558b9666025b4022d1bf5c511c059554a80e0"></a><!-- doxytag: member="T_OK" ref="1d0bad6943da27e84577f7f47c1558b9666025b4022d1bf5c511c059554a80e0" args="" -->T_OK</em>&nbsp;</td><td>
zone is ok </td></tr>
<tr><td valign="top"><em><a class="anchor" name="1d0bad6943da27e84577f7f47c1558b9729eb9e0cada239395b6f98413b432f7"></a><!-- doxytag: member="T_ERR" ref="1d0bad6943da27e84577f7f47c1558b9729eb9e0cada239395b6f98413b432f7" args="" -->T_ERR</em>&nbsp;</td><td>
some error occurred while reading the state of the zone </td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00047">47</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="8954ea2d1a2dc9a7991132d1f4323c78"></a><!-- doxytag: member="libacpi.h::check_acpi_support" ref="8954ea2d1a2dc9a7991132d1f4323c78" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int check_acpi_support           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Checks if the system does support ACPI or not <dl class="return" compact><dt><b>Returns:</b></dt><dd>SUCCESS if the system supports ACPI or, NOT_SUPPORTED </dd></dl>

<p>
Definition at line <a class="el" href="libacpi_8c-source.html#l00127">127</a> of file <a class="el" href="libacpi_8c-source.html">libacpi.c</a>.
<p>
References <a class="el" href="libacpi_8h-source.html#l00029">NOT_SUPPORTED</a>, and <a class="el" href="libacpi_8h-source.html#l00030">SUCCESS</a>.
</div>
</div><p>
<a class="anchor" name="027286cd397157bdbf9e551ef510cb59"></a><!-- doxytag: member="libacpi.h::init_acpi_acadapt" ref="027286cd397157bdbf9e551ef510cb59" args="(global_t *globals)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int init_acpi_acadapt           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structglobal__t.html">global_t</a> *&nbsp;</td>
          <td class="paramname"> <em>globals</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Finds existing ac adapter and fills the adapt structure with the paths of the important to parse files <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>globals</em>&nbsp;</td><td>pointer to global acpi structure </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8c-source.html#l00211">211</a> of file <a class="el" href="libacpi_8c-source.html">libacpi.c</a>.
<p>
References <a class="el" href="libacpi_8h-source.html#l00179">global_t::adapt</a>, <a class="el" href="libacpi_8h-source.html#l00028">ALLOC_ERR</a>, <a class="el" href="list_8c-source.html#l00046">delete_list()</a>, <a class="el" href="list_8c-source.html#l00061">dir_list()</a>, <a class="el" href="libacpi_8h-source.html#l00016">MAX_NAME</a>, <a class="el" href="libacpi_8h-source.html#l00165">adapter_t::name</a>, <a class="el" href="libacpi_8h-source.html#l00029">NOT_SUPPORTED</a>, <a class="el" href="libacpi_8h-source.html#l00014">PROC_ACPI</a>, <a class="el" href="libacpi_8c-source.html#l00190">read_acpi_acstate()</a>, <a class="el" href="libacpi_8h-source.html#l00166">adapter_t::state_file</a>, <a class="el" href="libacpi_8h-source.html#l00030">SUCCESS</a>, and <a class="el" href="list_8h-source.html#l00026">list_t::top</a>.
<p>
Here is the call graph for this function:<p><center><img src="libacpi_8h_027286cd397157bdbf9e551ef510cb59_cgraph.png" border="0" usemap="#libacpi_8h_027286cd397157bdbf9e551ef510cb59_cgraph_map" alt=""></center>
<map name="libacpi_8h_027286cd397157bdbf9e551ef510cb59_cgraph_map">
<area shape="rect" href="list_8c.html#8779934af9269ac85b5eda546da2285c" title="delete_list" alt="" coords="192,5,267,32"><area shape="rect" href="list_8c.html#ac821e6d16d9494f9b8ffc3f9cd0aec4" title="dir_list" alt="" coords="200,56,259,83"><area shape="rect" href="libacpi_8c.html#baf0f122878f23b4cc8a5cb2dea8bf71" title="read_acpi_acstate" alt="" coords="172,107,287,133"></map>

</div>
</div><p>
<a class="anchor" name="b63d686528f867234559a0bd829f9a33"></a><!-- doxytag: member="libacpi.h::init_acpi_batt" ref="b63d686528f867234559a0bd829f9a33" args="(global_t *globals)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int init_acpi_batt           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structglobal__t.html">global_t</a> *&nbsp;</td>
          <td class="paramname"> <em>globals</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Finds existing batteries and fills the corresponding batteries structures with the paths of the important to parse files <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>globals</em>&nbsp;</td><td>pointer to global acpi structure </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8c-source.html#l00139">139</a> of file <a class="el" href="libacpi_8c-source.html">libacpi.c</a>.
<p>
References <a class="el" href="libacpi_8h-source.html#l00120">battery_t::alarm_file</a>, <a class="el" href="libacpi_8h-source.html#l00028">ALLOC_ERR</a>, <a class="el" href="libacpi_8h-source.html#l00175">global_t::batt_count</a>, <a class="el" href="libacpi_8h-source.html#l00186">batteries</a>, <a class="el" href="list_8c-source.html#l00046">delete_list()</a>, <a class="el" href="list_8c-source.html#l00061">dir_list()</a>, <a class="el" href="libacpi_8h-source.html#l00119">battery_t::info_file</a>, <a class="el" href="libacpi_8h-source.html#l00025">ITEM_EXCEED</a>, <a class="el" href="libacpi_8h-source.html#l00018">MAX_ITEMS</a>, <a class="el" href="libacpi_8h-source.html#l00016">MAX_NAME</a>, <a class="el" href="libacpi_8h-source.html#l00117">battery_t::name</a>, <a class="el" href="libacpi_8h-source.html#l00029">NOT_SUPPORTED</a>, <a class="el" href="libacpi_8h-source.html#l00014">PROC_ACPI</a>, <a class="el" href="libacpi_8h-source.html#l00118">battery_t::state_file</a>, <a class="el" href="libacpi_8h-source.html#l00030">SUCCESS</a>, and <a class="el" href="list_8h-source.html#l00026">list_t::top</a>.
<p>
Here is the call graph for this function:<p><center><img src="libacpi_8h_b63d686528f867234559a0bd829f9a33_cgraph.png" border="0" usemap="#libacpi_8h_b63d686528f867234559a0bd829f9a33_cgraph_map" alt=""></center>
<map name="libacpi_8h_b63d686528f867234559a0bd829f9a33_cgraph_map">
<area shape="rect" href="list_8c.html#8779934af9269ac85b5eda546da2285c" title="delete_list" alt="" coords="151,5,225,32"><area shape="rect" href="list_8c.html#ac821e6d16d9494f9b8ffc3f9cd0aec4" title="dir_list" alt="" coords="159,56,217,83"></map>

</div>
</div><p>
<a class="anchor" name="3ee17a37e660f31b7b7e5f2f0896851b"></a><!-- doxytag: member="libacpi.h::init_acpi_fan" ref="3ee17a37e660f31b7b7e5f2f0896851b" args="(global_t *globals)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int init_acpi_fan           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structglobal__t.html">global_t</a> *&nbsp;</td>
          <td class="paramname"> <em>globals</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Finds existing fans and fills corresponding fan structures with the paths of the important to parse files for fan information <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>globals</em>&nbsp;</td><td>pointer to global acpi structure </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8c-source.html#l00264">264</a> of file <a class="el" href="libacpi_8c-source.html">libacpi.c</a>.
<p>
References <a class="el" href="libacpi_8h-source.html#l00028">ALLOC_ERR</a>, <a class="el" href="list_8c-source.html#l00046">delete_list()</a>, <a class="el" href="list_8c-source.html#l00061">dir_list()</a>, <a class="el" href="libacpi_8h-source.html#l00177">global_t::fan_count</a>, <a class="el" href="libacpi_8h-source.html#l00196">fans</a>, <a class="el" href="libacpi_8h-source.html#l00025">ITEM_EXCEED</a>, <a class="el" href="libacpi_8h-source.html#l00018">MAX_ITEMS</a>, <a class="el" href="libacpi_8h-source.html#l00016">MAX_NAME</a>, <a class="el" href="libacpi_8h-source.html#l00107">fan_t::name</a>, <a class="el" href="libacpi_8h-source.html#l00029">NOT_SUPPORTED</a>, <a class="el" href="libacpi_8h-source.html#l00014">PROC_ACPI</a>, <a class="el" href="libacpi_8h-source.html#l00108">fan_t::state_file</a>, <a class="el" href="libacpi_8h-source.html#l00030">SUCCESS</a>, and <a class="el" href="list_8h-source.html#l00026">list_t::top</a>.
<p>
Here is the call graph for this function:<p><center><img src="libacpi_8h_3ee17a37e660f31b7b7e5f2f0896851b_cgraph.png" border="0" usemap="#libacpi_8h_3ee17a37e660f31b7b7e5f2f0896851b_cgraph_map" alt=""></center>
<map name="libacpi_8h_3ee17a37e660f31b7b7e5f2f0896851b_cgraph_map">
<area shape="rect" href="list_8c.html#8779934af9269ac85b5eda546da2285c" title="delete_list" alt="" coords="148,5,223,32"><area shape="rect" href="list_8c.html#ac821e6d16d9494f9b8ffc3f9cd0aec4" title="dir_list" alt="" coords="156,56,215,83"></map>

</div>
</div><p>
<a class="anchor" name="b46f89c7d7ff338842d7619c7392c0bf"></a><!-- doxytag: member="libacpi.h::init_acpi_thermal" ref="b46f89c7d7ff338842d7619c7392c0bf" args="(global_t *globals)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int init_acpi_thermal           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structglobal__t.html">global_t</a> *&nbsp;</td>
          <td class="paramname"> <em>globals</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Finds existing thermal zones and fills corresponding thermal structures with the paths of the important to parse files for thermal information <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>globals</em>&nbsp;</td><td>pointer to global acpi structure </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8c-source.html#l00298">298</a> of file <a class="el" href="libacpi_8c-source.html">libacpi.c</a>.
<p>
References <a class="el" href="libacpi_8h-source.html#l00028">ALLOC_ERR</a>, <a class="el" href="libacpi_8h-source.html#l00152">thermal_t::cooling_file</a>, <a class="el" href="list_8c-source.html#l00046">delete_list()</a>, <a class="el" href="list_8c-source.html#l00061">dir_list()</a>, <a class="el" href="libacpi_8h-source.html#l00153">thermal_t::freq_file</a>, <a class="el" href="libacpi_8h-source.html#l00025">ITEM_EXCEED</a>, <a class="el" href="libacpi_8h-source.html#l00018">MAX_ITEMS</a>, <a class="el" href="libacpi_8h-source.html#l00016">MAX_NAME</a>, <a class="el" href="libacpi_8h-source.html#l00148">thermal_t::name</a>, <a class="el" href="libacpi_8h-source.html#l00029">NOT_SUPPORTED</a>, <a class="el" href="libacpi_8h-source.html#l00014">PROC_ACPI</a>, <a class="el" href="libacpi_8h-source.html#l00151">thermal_t::state_file</a>, <a class="el" href="libacpi_8h-source.html#l00030">SUCCESS</a>, <a class="el" href="libacpi_8h-source.html#l00155">thermal_t::temp_file</a>, <a class="el" href="libacpi_8h-source.html#l00176">global_t::thermal_count</a>, <a class="el" href="libacpi_8h-source.html#l00191">thermals</a>, <a class="el" href="list_8h-source.html#l00026">list_t::top</a>, and <a class="el" href="libacpi_8h-source.html#l00154">thermal_t::trips_file</a>.
<p>
Here is the call graph for this function:<p><center><img src="libacpi_8h_b46f89c7d7ff338842d7619c7392c0bf_cgraph.png" border="0" usemap="#libacpi_8h_b46f89c7d7ff338842d7619c7392c0bf_cgraph_map" alt=""></center>
<map name="libacpi_8h_b46f89c7d7ff338842d7619c7392c0bf_cgraph_map">
<area shape="rect" href="list_8c.html#8779934af9269ac85b5eda546da2285c" title="delete_list" alt="" coords="172,5,247,32"><area shape="rect" href="list_8c.html#ac821e6d16d9494f9b8ffc3f9cd0aec4" title="dir_list" alt="" coords="180,56,239,83"></map>

</div>
</div><p>
<a class="anchor" name="baf0f122878f23b4cc8a5cb2dea8bf71"></a><!-- doxytag: member="libacpi.h::read_acpi_acstate" ref="baf0f122878f23b4cc8a5cb2dea8bf71" args="(global_t *globals)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void read_acpi_acstate           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structglobal__t.html">global_t</a> *&nbsp;</td>
          <td class="paramname"> <em>globals</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Looks up if the ac adapter is plugged in or not and sets the values in a struct <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>globals</em>&nbsp;</td><td>pointer to the global acpi structure </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8c-source.html#l00190">190</a> of file <a class="el" href="libacpi_8c-source.html">libacpi.c</a>.
<p>
References <a class="el" href="libacpi_8h-source.html#l00167">adapter_t::ac_state</a>, <a class="el" href="libacpi_8h-source.html#l00179">global_t::adapt</a>, <a class="el" href="libacpi_8h-source.html#l00038">P_AC</a>, <a class="el" href="libacpi_8h-source.html#l00039">P_BATT</a>, <a class="el" href="libacpi_8h-source.html#l00040">P_ERR</a>, and <a class="el" href="libacpi_8h-source.html#l00166">adapter_t::state_file</a>.
<p>
Referenced by <a class="el" href="libacpi_8c-source.html#l00211">init_acpi_acadapt()</a>.
<p>
Here is the caller graph for this function:<p><center><img src="libacpi_8h_baf0f122878f23b4cc8a5cb2dea8bf71_icgraph.png" border="0" usemap="#libacpi_8h_baf0f122878f23b4cc8a5cb2dea8bf71_icgraph_map" alt=""></center>
<map name="libacpi_8h_baf0f122878f23b4cc8a5cb2dea8bf71_icgraph_map">
<area shape="rect" href="libacpi_8h.html#027286cd397157bdbf9e551ef510cb59" title="init_acpi_acadapt" alt="" coords="172,5,287,32"></map>

</div>
</div><p>
<a class="anchor" name="ed850c96630f208168a5408435f022d6"></a><!-- doxytag: member="libacpi.h::read_acpi_batt" ref="ed850c96630f208168a5408435f022d6" args="(const int num)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int read_acpi_batt           </td>
          <td>(</td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>num</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gathers all information of a given battery and filling a struct with it <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>num</em>&nbsp;</td><td>number of battery </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8c-source.html#l00608">608</a> of file <a class="el" href="libacpi_8c-source.html">libacpi.c</a>.
<p>
References <a class="el" href="libacpi_8h-source.html#l00025">ITEM_EXCEED</a>, <a class="el" href="libacpi_8h-source.html#l00018">MAX_ITEMS</a>, and <a class="el" href="libacpi_8h-source.html#l00030">SUCCESS</a>.
</div>
</div><p>
<a class="anchor" name="f9608343ea3b2cbd693b009978e0d8c3"></a><!-- doxytag: member="libacpi.h::read_acpi_fan" ref="f9608343ea3b2cbd693b009978e0d8c3" args="(const int num)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int read_acpi_fan           </td>
          <td>(</td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>num</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gathers all information about given fan and sets the corresponding values in a struct <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>num</em>&nbsp;</td><td>number for the fan to read </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8c-source.html#l00230">230</a> of file <a class="el" href="libacpi_8c-source.html">libacpi.c</a>.
<p>
References <a class="el" href="libacpi_8h-source.html#l00099">F_ERR</a>, <a class="el" href="libacpi_8h-source.html#l00098">F_OFF</a>, <a class="el" href="libacpi_8h-source.html#l00097">F_ON</a>, <a class="el" href="libacpi_8h-source.html#l00109">fan_t::fan_state</a>, <a class="el" href="libacpi_8h-source.html#l00196">fans</a>, <a class="el" href="libacpi_8h-source.html#l00025">ITEM_EXCEED</a>, <a class="el" href="libacpi_8h-source.html#l00018">MAX_ITEMS</a>, <a class="el" href="libacpi_8h-source.html#l00029">NOT_SUPPORTED</a>, <a class="el" href="libacpi_8h-source.html#l00108">fan_t::state_file</a>, and <a class="el" href="libacpi_8h-source.html#l00030">SUCCESS</a>.
</div>
</div><p>
<a class="anchor" name="ca686b7af0b4935ece6342c6e020b586"></a><!-- doxytag: member="libacpi.h::read_acpi_zone" ref="ca686b7af0b4935ece6342c6e020b586" args="(const int num, global_t *globals)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int read_acpi_zone           </td>
          <td>(</td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structglobal__t.html">global_t</a> *&nbsp;</td>
          <td class="paramname"> <em>globals</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gathers all information of a given thermal zone and sets the corresponding values in a struct <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>num</em>&nbsp;</td><td>zone </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>globals</em>&nbsp;</td><td>pointer to global acpi struct, needed if there is just one zone </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="libacpi_8c-source.html#l00359">359</a> of file <a class="el" href="libacpi_8c-source.html">libacpi.c</a>.
<p>
References <a class="el" href="libacpi_8h-source.html#l00089">CO_ERR</a>, <a class="el" href="libacpi_8h-source.html#l00152">thermal_t::cooling_file</a>, <a class="el" href="libacpi_8h-source.html#l00026">DISABLED</a>, <a class="el" href="libacpi_8h-source.html#l00153">thermal_t::freq_file</a>, <a class="el" href="libacpi_8h-source.html#l00150">thermal_t::frequency</a>, <a class="el" href="libacpi_8h-source.html#l00025">ITEM_EXCEED</a>, <a class="el" href="libacpi_8h-source.html#l00018">MAX_ITEMS</a>, <a class="el" href="libacpi_8h-source.html#l00029">NOT_SUPPORTED</a>, <a class="el" href="libacpi_8h-source.html#l00151">thermal_t::state_file</a>, <a class="el" href="libacpi_8h-source.html#l00030">SUCCESS</a>, <a class="el" href="libacpi_8h-source.html#l00053">T_ERR</a>, <a class="el" href="libacpi_8h-source.html#l00155">thermal_t::temp_file</a>, <a class="el" href="libacpi_8h-source.html#l00178">global_t::temperature</a>, <a class="el" href="libacpi_8h-source.html#l00149">thermal_t::temperature</a>, <a class="el" href="libacpi_8h-source.html#l00156">thermal_t::therm_mode</a>, <a class="el" href="libacpi_8h-source.html#l00157">thermal_t::therm_state</a>, <a class="el" href="libacpi_8h-source.html#l00176">global_t::thermal_count</a>, and <a class="el" href="libacpi_8h-source.html#l00191">thermals</a>.
</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="3c0cd13757d04f0ca65bba3ec0de6538"></a><!-- doxytag: member="libacpi.h::batteries" ref="3c0cd13757d04f0ca65bba3ec0de6538" args="[MAX_ITEMS]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structbattery__t.html">battery_t</a> <a class="el" href="libacpi_8h.html#3c0cd13757d04f0ca65bba3ec0de6538">batteries</a>[MAX_ITEMS]          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Array for existing batteries, loop until globals-&gt;battery_count 
<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00186">186</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
<p>
Referenced by <a class="el" href="libacpi_8c-source.html#l00139">init_acpi_batt()</a>.
</div>
</div><p>
<a class="anchor" name="12ba731d90fb5e43718edb5144e7caaa"></a><!-- doxytag: member="libacpi.h::fans" ref="12ba731d90fb5e43718edb5144e7caaa" args="[MAX_ITEMS]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structfan__t.html">fan_t</a> <a class="el" href="libacpi_8h.html#12ba731d90fb5e43718edb5144e7caaa">fans</a>[MAX_ITEMS]          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Array for existing fans, loop until globals-&gt;fan_count 
<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00196">196</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
<p>
Referenced by <a class="el" href="libacpi_8c-source.html#l00264">init_acpi_fan()</a>, and <a class="el" href="libacpi_8c-source.html#l00230">read_acpi_fan()</a>.
</div>
</div><p>
<a class="anchor" name="f7add5d641271fbd8ad4fc81a849dfc4"></a><!-- doxytag: member="libacpi.h::thermals" ref="f7add5d641271fbd8ad4fc81a849dfc4" args="[MAX_ITEMS]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structthermal__t.html">thermal_t</a> <a class="el" href="libacpi_8h.html#f7add5d641271fbd8ad4fc81a849dfc4">thermals</a>[MAX_ITEMS]          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Array for existing thermal zones, loop until globals-&gt;thermal_count 
<p>
Definition at line <a class="el" href="libacpi_8h-source.html#l00191">191</a> of file <a class="el" href="libacpi_8h-source.html">libacpi.h</a>.
<p>
Referenced by <a class="el" href="libacpi_8c-source.html#l00298">init_acpi_thermal()</a>, and <a class="el" href="libacpi_8c-source.html#l00359">read_acpi_zone()</a>.
</div>
</div><p>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Jul 29 14:09:39 2007 for libacpi by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
</body>
</html>