Revision 0e9bde83 src/TopologyManager/cloud_helper_iface.h

View differences:

src/TopologyManager/cloud_helper_iface.h
1 1
#ifndef CLOUD_HELPER_IFACE
2 2
#define CLOUD_HELPER_IFACE
3 3

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

  
6 7
struct cloud_helper_impl_context;
......
9 10
  struct cloud_helper_impl_context* (*cloud_helper_init)(struct nodeID *local, const char *config);
10 11
  int (*get_from_cloud)(struct cloud_helper_impl_context *context, char *key, uint8_t *header_ptr, int header_size);
11 12
  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
  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);
13 15
  int (*is_cloud_node)(struct cloud_helper_impl_context *context, struct nodeID* node);
14 16
  int (*wait4cloud)(struct cloud_helper_impl_context *context, struct timeval *tout);
15 17
  int (*recv_from_cloud)(struct cloud_helper_impl_context *context, uint8_t *buffer_ptr, int buffer_size);

Also available in: Unified diff