Revision 47c95dd4 src/Tests/cloud_helper_delegate_file.c

View differences:

src/Tests/cloud_helper_delegate_file.c
15 15

  
16 16
struct delegate_iface {
17 17
  void* (*cloud_helper_init)(struct nodeID *local, const char *config);
18
  int (*get_from_cloud)(void *context, char *key, uint8_t *header_ptr, int header_size);
19
  int (*put_on_cloud)(void *context, char *key, uint8_t *buffer_ptr, int buffer_size);
18
  int (*get_from_cloud)(void *context, const char *key, uint8_t *header_ptr,
19
                        int header_size, int free_header);
20
  int (*put_on_cloud)(void *context, const char *key, uint8_t *buffer_ptr,
21
                      int buffer_size, int free_buffer);
20 22
  struct nodeID* (*get_cloud_node)(void *context, uint8_t variant);
21 23
  time_t (*timestamp_cloud)(void *context);
22 24
  int (*is_cloud_node)(void *context, struct nodeID* node);
......
182 184
  return ctx;
183 185
}
184 186

  
185
static int file_cloud_get_from_cloud(void *context, char *key, uint8_t *header_ptr, int header_size)
187
static int file_cloud_get_from_cloud(void *context, const char *key,
188
                                     uint8_t *header_ptr, int header_size,
189
                                     int free_header)
186 190
{
187 191
  struct file_cloud_context *ctx;
188 192
  int err;
......
203 207
  return 0;
204 208
}
205 209

  
206
static int file_cloud_put_on_cloud(void *context, char *key, uint8_t *buffer_ptr, int buffer_size)
210
static int file_cloud_put_on_cloud(void *context, const char *key,
211
                                   uint8_t *buffer_ptr, int buffer_size,
212
                                   int free_buffer)
207 213
{
208 214
  struct file_cloud_context *ctx;
209 215
  struct gpThreadContext *tc;

Also available in: Unified diff