Make this function be in the same "namespace" as other Connection
related functions by making its prefix be "mutt_socket".
}
/**
- * socket_new_conn - allocate and initialise a new connection
+ * mutt_socket_new - allocate and initialise a new connection
* @retval ptr New Connection
*/
-struct Connection *socket_new_conn(void)
+struct Connection *mutt_socket_new(void)
{
struct Connection *conn = mutt_mem_calloc(1, sizeof(struct Connection));
conn->fd = -1;
struct Connection;
-struct Connection *socket_new_conn(void);
+struct Connection *mutt_socket_new(void);
int mutt_socket_open(struct Connection *conn);
int mutt_socket_close(struct Connection *conn);
conn = TAILQ_NEXT(conn, entries);
}
- conn = socket_new_conn();
+ conn = mutt_socket_new();
memcpy(&conn->account, account, sizeof(struct Account));
TAILQ_INSERT_HEAD(&Connections, conn, entries);