blob: 61be65396c641e12585b7076382ca8743fe70ec9 [file] [log] [blame]
Daniel Lezcano7c15fad2016-02-18 15:57:43 +00001/*
2 * Power debug tool (powerdebug)
Daniel Lezcano88b38e32011-06-15 15:45:12 +02003 *
Daniel Lezcano7c15fad2016-02-18 15:57:43 +00004 * Copyright (C) 2016, Linaro Limited.
Daniel Lezcano88b38e32011-06-15 15:45:12 +02005 *
Daniel Lezcano7c15fad2016-02-18 15:57:43 +00006 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
Daniel Lezcano88b38e32011-06-15 15:45:12 +020010 *
Daniel Lezcano7c15fad2016-02-18 15:57:43 +000011 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 *
20 */
Daniel Lezcano88b38e32011-06-15 15:45:12 +020021#ifndef __UTILS_H
22#define __UTILS_H
23
24extern int file_read_value(const char *path, const char *name,
25 const char *format, void *value);
Shaojie Sun8ac4a2e2013-07-29 20:11:46 +080026extern int file_write_value(const char *path, const char *name,
27 const char *format, void *value);
Thara Gopinath56f61782017-07-14 13:25:17 -040028extern int file_open(FILE **fp, const char *path, const char *name, const char *format);
29extern int file_read_line(FILE **fp, char *line, int size);
30extern int file_close(FILE **fp);
Daniel Lezcano88b38e32011-06-15 15:45:12 +020031#endif