equal
deleted
inserted
replaced
2 #include "log.h" |
2 #include "log.h" |
3 |
3 |
4 #include <stdlib.h> |
4 #include <stdlib.h> |
5 #include <string.h> |
5 #include <string.h> |
6 |
6 |
7 err_t irc_client_create (struct irc_client **client_ptr, struct error_info *err) |
7 err_t irc_client_create (struct irc_client **client_ptr, error_t *err) |
8 { |
8 { |
9 struct irc_client *client; |
9 struct irc_client *client; |
10 |
10 |
11 // allocate |
11 // allocate |
12 if ((client = calloc(1, sizeof(*client))) == NULL) |
12 if ((client = calloc(1, sizeof(*client))) == NULL) |
48 (def)->register_info._field_ \ |
48 (def)->register_info._field_ \ |
49 ) \ |
49 ) \ |
50 )) == NULL \ |
50 )) == NULL \ |
51 ) |
51 ) |
52 |
52 |
53 err_t irc_client_add_net (struct irc_client *client, struct irc_net **net_ptr, const struct irc_net_info *_net_info, struct error_info *err) |
53 err_t irc_client_add_net (struct irc_client *client, struct irc_net **net_ptr, const struct irc_net_info *_net_info, error_t *err) |
54 { |
54 { |
55 struct irc_net *net; |
55 struct irc_net *net; |
56 struct irc_net_info net_info = { |
56 struct irc_net_info net_info = { |
57 .ssl_cred = _net_info->ssl_cred, |
57 .ssl_cred = _net_info->ssl_cred, |
58 }; |
58 }; |