aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/util.h
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-06-28 12:27:23 +0200
committerPaul Kocialkowski <contact@paulk.fr>2013-06-28 12:27:23 +0200
commit1edc56a5fcb62dfea78fc27e29d7d87eda8c5662 (patch)
treeba3d1db7ab5a34eaffcd1885494c586138a17342 /samsung-ipc/util.h
parenta81f656e6f6109a1fb838d08235ad46d5d0a87de (diff)
downloadexternal_libsamsung-ipc-1edc56a5fcb62dfea78fc27e29d7d87eda8c5662.zip
external_libsamsung-ipc-1edc56a5fcb62dfea78fc27e29d7d87eda8c5662.tar.gz
external_libsamsung-ipc-1edc56a5fcb62dfea78fc27e29d7d87eda8c5662.tar.bz2
New utilities (not exposed by the API) for various I/O and ipc fill functions
Change-Id: I0bd1d7781971f217903f307b5ac418180afc0d50 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc/util.h')
-rw-r--r--samsung-ipc/util.h35
1 files changed, 35 insertions, 0 deletions
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 <contact@paulk.fr>
+ * Copyright (C) 2010-2011 Joerie de Gram <j.de.gram@gmail.com>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#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