Renaming structs to evade conflicts with already existing code.
This commit is contained in:
@ -28,13 +28,13 @@ static std::uniform_int_distribution<dht::Value::Id> rand_id;
|
||||
|
||||
static std::map<time_t, int> sent_messages;
|
||||
|
||||
struct message *NeoComm_get_next_message(const char *channel_name) {
|
||||
struct NeoComm_message *NeoComm_get_next_message(const char *channel_name) {
|
||||
const std::string s_chan_name(channel_name);
|
||||
if(channels[s_chan_name].msgs.empty())
|
||||
return NULL;
|
||||
const dht::ImMessage *new_msg = &channels[s_chan_name].msgs.front();
|
||||
struct message *msg =
|
||||
static_cast<struct message*>(malloc(sizeof(struct message)));
|
||||
struct NeoComm_message *msg =
|
||||
static_cast<struct NeoComm_message*>(malloc(sizeof(struct NeoComm_message)));
|
||||
|
||||
*msg = {
|
||||
/*.msg =*/ new_msg->msg.c_str(),
|
||||
|
@ -113,8 +113,8 @@ int NeoComm_export_nodes(const char *node_file) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
struct stats NeoComm_get_node_stats() {
|
||||
struct stats statistics;
|
||||
struct NeoComm_stats NeoComm_get_node_stats() {
|
||||
struct NeoComm_stats statistics;
|
||||
statistics.total = node.getNodesStats(
|
||||
AF_UNSPEC,
|
||||
&statistics.good,
|
||||
|
Reference in New Issue
Block a user