Statistics
| Branch: | Revision:

grapes / src / CloudSupport / cloud_helper_iface.h @ 4692000a

History | View | Annotate | Download (953 Bytes)

1
#ifndef CLOUD_HELPER_IFACE
2
#define CLOUD_HELPER_IFACE
3

    
4
#include <time.h>
5
#include "net_helper.h"
6

    
7
struct cloud_helper_impl_context;
8

    
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);
14
  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);
18
};
19

    
20
#endif