diff options
Diffstat (limited to 'battstat/apmlib')
-rw-r--r-- | battstat/apmlib/Makefile.am | 4 | ||||
-rw-r--r-- | battstat/apmlib/apmlib.c | 7 |
2 files changed, 2 insertions, 9 deletions
diff --git a/battstat/apmlib/Makefile.am b/battstat/apmlib/Makefile.am index cdffe253..b5f5f33a 100644 --- a/battstat/apmlib/Makefile.am +++ b/battstat/apmlib/Makefile.am @@ -10,9 +10,9 @@ AM_CPPFLAGS = \ $(MATE_APPLETS_CFLAGS) \ -DG_LOG_DOMAIN=\"battstat_applet\" -noinst_LIBRARIES = libapm.a +noinst_LTLIBRARIES = libapm.la -libapm_a_SOURCES = apmlib.c apm.h +libapm_la_SOURCES = apmlib.c apm.h -include $(top_srcdir)/git.mk diff --git a/battstat/apmlib/apmlib.c b/battstat/apmlib/apmlib.c index d7125f74..f0147ae1 100644 --- a/battstat/apmlib/apmlib.c +++ b/battstat/apmlib/apmlib.c @@ -47,7 +47,6 @@ apm_exists (void) return apm_read (&i); } - /* Read information from /proc/apm. Return 0 on success, 1 if APM not * installed, 2 if APM installed, but old version. */ @@ -167,7 +166,6 @@ apm_read (apm_info * i) return retcode; } - /* Lookup the device number for the apm_bios device. */ dev_t apm_dev (void) { @@ -207,7 +205,6 @@ dev_t apm_dev (void) return cached = -1; } - /* Return a file descriptor for the apm_bios device, or -1 if there is an * error. Is this method secure? Should we make the device in /dev * instead of /tmp? @@ -242,7 +239,6 @@ apm_open (void) return -1; } - /* Given a file descriptor for the apm_bios device, close it. */ int apm_close (int fd) @@ -278,7 +274,6 @@ apm_get_events (int fd, int timeout, apm_event_t * events, int n) return read (fd, events, n * sizeof (apm_event_t)) / sizeof (apm_event_t); } - /* Try to set the Power State to Suspend. */ int apm_suspend (int fd) @@ -287,7 +282,6 @@ apm_suspend (int fd) return ioctl (fd, APM_IOC_SUSPEND, NULL); } - /* Try to set the Power State to Standby. */ int apm_standby (int fd) @@ -425,7 +419,6 @@ apm_event_name (apm_event_t event) return "Unknown"; } - /* This is a convenience function that has nothing to do with APM. It just * formats a time nicely. If you don't like this format, then write your * own. |