| 30 nm_response_cb callback; |
32 nm_response_cb callback; |
| 31 int ref_count; |
33 int ref_count; |
| 32 NMERR_T ret_code; |
34 NMERR_T ret_code; |
| 33 }; |
35 }; |
| 34 |
36 |
| 35 |
37 NMRequest *nm_create_request(const char *cmd, int trans_id, int gmt, nm_response_cb cb, |
| 36 NMRequest * |
38 gpointer resp_data, gpointer user_define) |
| 37 nm_create_request(const char *cmd, int trans_id, int gmt) |
|
| 38 { |
39 { |
| 39 NMRequest *req; |
40 NMRequest *req; |
| 40 |
41 |
| 41 if (cmd == NULL) |
42 if (cmd == NULL) |
| 42 return NULL; |
43 return NULL; |
| 43 |
44 |
| 44 req = g_new0(NMRequest, 1); |
45 req = g_new0(NMRequest, 1); |
| 45 req->cmd = g_strdup(cmd); |
46 req->cmd = g_strdup(cmd); |
| 46 req->trans_id = trans_id; |
47 req->trans_id = trans_id; |
| 47 req->gmt = gmt; |
48 req->gmt = gmt; |
| |
49 req->callback = cb; |
| |
50 req->data = resp_data; |
| |
51 req->user_define = user_define; |
| 48 req->ref_count = 1; |
52 req->ref_count = 1; |
| |
53 |
| |
54 gaim_debug_info("novell", "Creating NMRequest instance, total=%d\n", ++count); |
| 49 |
55 |
| 50 return req; |
56 return req; |
| 51 } |
57 } |
| 52 |
58 |
| 53 void |
59 void |