diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2014-07-26 18:49:31 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-07-26 18:49:31 +0200 |
commit | 379045ee0cc5d136639504cbf9c57de4ee9078d4 (patch) | |
tree | 6a1253d52f63bb3091a98399cff29e1a3615342e /include | |
parent | bfb20b0c1fb891360524f02eed79c8dbe7278626 (diff) | |
download | external_libsamsung-ipc-379045ee0cc5d136639504cbf9c57de4ee9078d4.zip external_libsamsung-ipc-379045ee0cc5d136639504cbf9c57de4ee9078d4.tar.gz external_libsamsung-ipc-379045ee0cc5d136639504cbf9c57de4ee9078d4.tar.bz2 |
utils: Dedicated function for length/size
Diffstat (limited to 'include')
-rw-r--r-- | include/samsung-ipc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/samsung-ipc.h b/include/samsung-ipc.h index 5be2ac9..3aa6808 100644 --- a/include/samsung-ipc.h +++ b/include/samsung-ipc.h @@ -139,8 +139,10 @@ int sysfs_value_read(const char *path); int sysfs_value_write(const char *path, int value); char *sysfs_string_read(const char *path, size_t length); int sysfs_string_write(const char *path, const char *buffer, size_t length); +size_t data2string_length(const void *data, size_t size); char *data2string(const void *data, size_t size); -void *string2data(const char *string, size_t *size_p); +size_t string2data_size(const char *string); +void *string2data(const char *string); /* * Samsung-IPC protocol |