Revision ef8002fd src/TopologyManager/cloud_helper_delegate.c

View differences:

src/TopologyManager/cloud_helper_delegate.c
10 10
  int (*get_from_cloud)(void *context, char *key, uint8_t *header_ptr, int header_size);
11 11
  int (*put_on_cloud)(void *context, char *key, uint8_t *buffer_ptr, int buffer_size);
12 12
  struct nodeID* (*get_cloud_node)(void *context);
13
  int (*is_cloud_node)(void *context, struct nodeID* node);
13 14
  int (*wait4cloud)(void *context, struct timeval *tout);
14 15
  int (*recv_from_cloud)(void *context, uint8_t *buffer_ptr, int buffer_size);
15 16
};
......
66 67
  return context->delegate->get_cloud_node(context->delegate_context);
67 68
}
68 69

  
70
int delegate_is_cloud_node(struct cloud_helper_impl_context *context, struct nodeID* node)
71
{
72
  return context->delegate->is_cloud_node(context->delegate_context, node);
73
}
74

  
69 75
static int delegate_cloud_wait4cloud(struct cloud_helper_impl_context *context, struct timeval *tout)
70 76
{
71 77
  return context->delegate->wait4cloud(context->delegate_context, tout);
......
81 87
  .get_from_cloud = delegate_cloud_get_from_cloud,
82 88
  .put_on_cloud = delegate_cloud_put_on_cloud,
83 89
  .get_cloud_node = delegate_cloud_get_cloud_node,
90
  .is_cloud_node = delegate_is_cloud_node,
84 91
  .wait4cloud = delegate_cloud_wait4cloud,
85 92
  .recv_from_cloud = delegate_cloud_recv_from_cloud,
86 93
};

Also available in: Unified diff