From 1edc56a5fcb62dfea78fc27e29d7d87eda8c5662 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Fri, 28 Jun 2013 12:27:23 +0200 Subject: New utilities (not exposed by the API) for various I/O and ipc fill functions Change-Id: I0bd1d7781971f217903f307b5ac418180afc0d50 Signed-off-by: Paul Kocialkowski --- samsung-ipc/util.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 samsung-ipc/util.h (limited to 'samsung-ipc/util.h') diff --git a/samsung-ipc/util.h b/samsung-ipc/util.h new file mode 100644 index 0000000..c2a36a1 --- /dev/null +++ b/samsung-ipc/util.h @@ -0,0 +1,35 @@ +/* + * This file is part of libsamsung-ipc. + * + * Copyright (C) 2013 Paul Kocialkowski + * Copyright (C) 2010-2011 Joerie de Gram + * + * libsamsung-ipc 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 2 of the License, or + * (at your option) any later version. + * + * libsamsung-ipc 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 libsamsung-ipc. If not, see . + * + */ + +#ifndef __UTIL_H__ +#define __UTIL_H__ + +void *file_data_read(char *file_name, int size, int block_size); +int network_iface_up(char *iface, int domain, int type); +int network_iface_down(char *iface, int domain, int type); +int sysfs_value_read(char *path); +int sysfs_value_write(char *path, int value); +int sysfs_string_read(char *path, char *buffer, int length); +int sysfs_string_write(char *path, char *buffer, int length); + +#endif + +// vim:ts=4:sw=4:expandtab -- cgit v1.1