2 * This file is part of libsamsung-ipc.
4 * Copyright (C) 2011-2013 Paul Kocialkowski <contact@paulk.fr>
6 * libsamsung-ipc is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or
9 * (at your option) any later version.
11 * libsamsung-ipc 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.
16 * You should have received a copy of the GNU General Public License
17 * along with libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>.
20 #include <samsung-ipc.h>
22 #ifndef __SAMSUNG_IPC_RFS_H__
23 #define __SAMSUNG_IPC_RFS_H__
29 #define IPC_RFS_NV_READ_ITEM 0x4201
30 #define IPC_RFS_NV_WRITE_ITEM 0x4202
36 struct ipc_rfs_nv_read_item_request_data {
39 } __attribute__((__packed__));
41 struct ipc_rfs_nv_read_item_response_header {
42 unsigned char confirm;
45 } __attribute__((__packed__));
47 struct ipc_rfs_nv_write_item_request_header {
50 } __attribute__((__packed__));
52 struct ipc_rfs_nv_write_item_response_data {
53 unsigned char confirm;
56 } __attribute__((__packed__));
62 char *ipc_nv_data_md5_calculate(const char *path, const char *secret,
63 size_t size, size_t chunk_size);
64 int ipc_nv_data_path_check(struct ipc_client *client);
65 int ipc_nv_data_md5_path_check(struct ipc_client *client);
66 int ipc_nv_data_backup_path_check(struct ipc_client *client);
67 int ipc_nv_data_backup_md5_path_check(struct ipc_client *client);
68 int ipc_nv_data_check(struct ipc_client *client);
69 int ipc_nv_data_backup_check(struct ipc_client *client);
70 int ipc_nv_data_backup(struct ipc_client *client);
71 int ipc_nv_data_restore(struct ipc_client *client);
72 void *ipc_nv_data_load(struct ipc_client *client);
73 void *ipc_nv_data_read(struct ipc_client *client, size_t size, size_t offset);
74 int ipc_nv_data_write(struct ipc_client *client, const void *data, size_t size,
76 void *ipc_rfs_nv_read_item_response_setup(const void *data, size_t size,
81 // vim:ts=4:sw=4:expandtab