Revision 98b047dd src/CloudSupport/cloud_helper_delegate.c

View differences:

src/CloudSupport/cloud_helper_delegate.c
18 18
  int (*get_from_cloud)(void *context, const char *key, uint8_t *header_ptr,
19 19
                        int header_size, int free_header);
20 20

  
21
  int (*get_from_cloud_default)(void *context, const char *key,
22
                                uint8_t *header_ptr, int header_size, int free_header,
23
                                uint8_t *defval_ptr, int defval_size, int free_defval);
24

  
21 25
  int (*put_on_cloud)(void *context, const char *key, uint8_t *buffer_ptr,
22 26
                      int buffer_size, int free_buffer);
23 27

  
......
81 85
}
82 86

  
83 87
static int
88
delegate_cloud_get_from_cloud_default(struct cloud_helper_impl_context *context,
89
                                      const char *key, uint8_t *header_ptr,
90
                                      int header_size, int free_header,
91
                                      uint8_t *defval_ptr, int defval_size,
92
                                      int free_defval)
93
{
94
  return context->delegate->get_from_cloud_default(context->delegate_context,
95
                                                   key, header_ptr, header_size,
96
                                                   free_header, defval_ptr,
97
                                                   defval_size, free_defval);
98
}
99

  
100
static int
84 101
delegate_cloud_put_on_cloud(struct cloud_helper_impl_context *context,
85 102
                            const char *key, uint8_t *buffer_ptr,
86 103
                            int buffer_size, int free_buffer)
......
124 141
struct cloud_helper_iface delegate = {
125 142
  .cloud_helper_init = delegate_cloud_init,
126 143
  .get_from_cloud = delegate_cloud_get_from_cloud,
144
  .get_from_cloud_default = delegate_cloud_get_from_cloud_default,
127 145
  .put_on_cloud = delegate_cloud_put_on_cloud,
128 146
  .get_cloud_node = delegate_cloud_get_cloud_node,
129 147
  .timestamp_cloud = delegate_timestamp_cloud,

Also available in: Unified diff