Renaming structs to evade conflicts with already existing code.

This commit is contained in:
Nicolás Ortega Froysa
2017-11-20 13:59:48 +01:00
parent 5b5660e5c4
commit e6be2716f4
4 changed files with 13 additions and 13 deletions

View File

@ -35,7 +35,7 @@ extern "C" {
/**
* @brief A structure with necessary variables for other users.
*/
struct user {
struct NeoComm_user {
const char *nick; ///< The alias used by the user.
const char *hash; ///< The unique hash of the user.
};
@ -43,16 +43,16 @@ struct user {
/**
* @brief Structure with relevant message information.
*/
struct message {
struct NeoComm_message {
const char *msg; ///< The text message.
time_t sent; ///< The time it was sent.
struct user from; ///< Info on the peer who sent the message.
struct NeoComm_user from; ///< Info on the peer who sent the message.
};
/**
* @brief Structure with information on the status of the node's connection.
*/
struct stats {
struct NeoComm_stats {
unsigned int good,
dubious,
cached,
@ -121,7 +121,7 @@ int NeoComm_export_nodes(const char *node_file);
*
* @return A text description of the local node's status.
*/
struct stats NeoComm_get_node_stats();
struct NeoComm_stats NeoComm_get_node_stats();
/**
* @brief Join a channel.
@ -169,14 +169,14 @@ unsigned int NeoComm_get_num_channels();
* @warning This command will remove the message from the internal list.
* @warning The message must be freed from memory using NeoComm_free_message.
*/
struct message *NeoComm_get_next_message(const char *channel_name);
struct NeoComm_message *NeoComm_get_next_message(const char *channel_name);
/**
* @brief Free the memory for a message.
*
* @param msg The message to free from memory.
*/
static inline void NeoComm_free_message(struct message *msg) {
static inline void NeoComm_free_message(struct NeoComm_message *msg) {
free(msg);
}