sleep-util: split battery-capacity into sleep/
This is only used by sleep.c. Let's start shrinking down the "mixed" sleep-util.
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
#include <linux/fiemap.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "hashmap.h"
|
||||
#include "time-util.h"
|
||||
|
||||
#define DEFAULT_SUSPEND_ESTIMATION_USEC (1 * USEC_PER_HOUR)
|
||||
@@ -69,15 +68,6 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device);
|
||||
int can_sleep(SleepOperation operation);
|
||||
int can_sleep_disk(char **types);
|
||||
int can_sleep_state(char **types);
|
||||
int get_total_suspend_interval(Hashmap *last_capacity, usec_t *ret);
|
||||
int fetch_batteries_capacity_by_name(Hashmap **ret_current_capacity);
|
||||
int get_capacity_by_name(Hashmap *capacities_by_name, const char *name);
|
||||
int estimate_battery_discharge_rate_per_hour(
|
||||
Hashmap *last_capacity,
|
||||
Hashmap *current_capacity,
|
||||
usec_t before_timestamp,
|
||||
usec_t after_timestamp);
|
||||
int battery_trip_point_alarm_exists(void);
|
||||
|
||||
const char* sleep_operation_to_string(SleepOperation s) _const_;
|
||||
SleepOperation sleep_operation_from_string(const char *s) _pure_;
|
||||
|
||||
Reference in New Issue
Block a user