Revision b9e7dd7b src/CloudSupport/cloud_helper_iface.h

View differences:

src/CloudSupport/cloud_helper_iface.h
7 7
struct cloud_helper_impl_context;
8 8

  
9 9
struct cloud_helper_iface {
10
  struct cloud_helper_impl_context* (*cloud_helper_init)(struct nodeID *local, const char *config);
11
  int (*get_from_cloud)(struct cloud_helper_impl_context *context, char *key, uint8_t *header_ptr, int header_size);
12
  int (*put_on_cloud)(struct cloud_helper_impl_context *context, char *key, uint8_t *buffer_ptr, int buffer_size);
13
  struct nodeID* (*get_cloud_node)(struct cloud_helper_impl_context *context, uint8_t variant);
10
  struct cloud_helper_impl_context*
11
  (*cloud_helper_init)(struct nodeID *local, const char *config);
12

  
13
  int (*get_from_cloud)(struct cloud_helper_impl_context *context,
14
                        const char *key, uint8_t *header_ptr, int header_size,
15
                        int free_header);
16

  
17
  int (*put_on_cloud)(struct cloud_helper_impl_context *context,
18
                      const char *key, uint8_t *buffer_ptr, int buffer_size,
19
                      int free_buffer);
20

  
21
  struct nodeID* (*get_cloud_node)(struct cloud_helper_impl_context *context,
22
                                   uint8_t variant);
23

  
14 24
  time_t (*timestamp_cloud)(struct cloud_helper_impl_context *context);
15
  int (*is_cloud_node)(struct cloud_helper_impl_context *context, struct nodeID* node);
16
  int (*wait4cloud)(struct cloud_helper_impl_context *context, struct timeval *tout);
17
  int (*recv_from_cloud)(struct cloud_helper_impl_context *context, uint8_t *buffer_ptr, int buffer_size);
25

  
26
  int (*is_cloud_node)(struct cloud_helper_impl_context *context,
27
                       struct nodeID* node);
28

  
29
  int (*wait4cloud)(struct cloud_helper_impl_context *context,
30
                    struct timeval *tout);
31

  
32
  int (*recv_from_cloud)(struct cloud_helper_impl_context *context,
33
                         uint8_t *buffer_ptr, int buffer_size);
18 34
};
19 35

  
20 36
#endif

Also available in: Unified diff