Lines Matching defs:cb_ptr
49 struct connectbundle **cb_ptr)
52 DEBUGASSERT(*cb_ptr == NULL);
53 *cb_ptr = malloc(sizeof(struct connectbundle));
54 if(!*cb_ptr)
57 (*cb_ptr)->num_connections = 0;
58 (*cb_ptr)->server_supports_pipelining = FALSE;
60 (*cb_ptr)->conn_list = Curl_llist_alloc((curl_llist_dtor) conn_llist_dtor);
61 if(!(*cb_ptr)->conn_list) {
62 Curl_safefree(*cb_ptr);
68 void Curl_bundle_destroy(struct connectbundle *cb_ptr)
70 if(!cb_ptr)
73 if(cb_ptr->conn_list) {
74 Curl_llist_destroy(cb_ptr->conn_list, NULL);
75 cb_ptr->conn_list = NULL;
77 Curl_safefree(cb_ptr);
81 CURLcode Curl_bundle_add_conn(struct connectbundle *cb_ptr,
84 if(!Curl_llist_insert_next(cb_ptr->conn_list, cb_ptr->conn_list->tail, conn))
87 conn->bundle = cb_ptr;
89 cb_ptr->num_connections++;
94 int Curl_bundle_remove_conn(struct connectbundle *cb_ptr,
99 curr = cb_ptr->conn_list->head;
102 Curl_llist_remove(cb_ptr->conn_list, curr, NULL);
103 cb_ptr->num_connections--;