Statistics
| Branch: | Revision:

grapes / src / TopologyManager / cloud_helper_iface.h @ 5033613a

History | View | Annotate | Download (720 Bytes)

1 5033613a Andrea Zito
#ifndef CLOUD_HELPER_IFACE
2
#define CLOUD_HELPER_IFACE
3
4
#include "net_helper.h"
5
6
struct cloud_helper_impl_context;
7
8
struct cloud_helper_iface {
9
  struct cloud_helper_impl_context* (*cloud_helper_init)(struct nodeID *local, const char *config);
10
  int (*get_from_cloud)(struct cloud_helper_impl_context *context, char *key);
11
  int (*put_on_cloud)(struct cloud_helper_impl_context *context, char *key, uint8_t *buffer_ptr, int buffer_size);
12
  struct nodeID* (*get_cloud_node)(struct cloud_helper_impl_context *context);
13
  int (*wait4cloud)(struct cloud_helper_impl_context *context, struct timeval *tout);
14
  int (*recv_from_cloud)(struct cloud_helper_impl_context *context, uint8_t *buffer_ptr, int buffer_size);
15
};
16
17
#endif