/* Copyright (C) 2025 awy This file is part of stbar. stbar is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. stbar is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with stbar. If not, see . */ #pragma once #ifndef UTIL_H #define UTIL_H #include #include void die(const char *, ...); void sendnotif(const char *, const char *, const char *); int getbtnint(const char *blkbtn); pid_t spawn(const char *const argv[]); int find_pid_by_name(const char *process_name); int updatebar(const int signal); int lscanf(FILE *fp, const char *key, const char *fmt, void *res); #endif