1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 #pragma once 3 4 #include "sd-device.h" 5 6 int find_device(const char *id, const char *prefix, sd_device **ret); 7 int find_device_with_action(const char *id, sd_device_action_t action, sd_device **ret); 8 int parse_device_action(const char *str, sd_device_action_t *action); 9