Lines Matching refs:cb_ptr
72 struct connectbundle **cb_ptr) in bundle_create() argument
75 DEBUGASSERT(*cb_ptr == NULL); in bundle_create()
76 *cb_ptr = malloc(sizeof(struct connectbundle)); in bundle_create()
77 if(!*cb_ptr) in bundle_create()
80 (*cb_ptr)->num_connections = 0; in bundle_create()
81 (*cb_ptr)->multiuse = BUNDLE_UNKNOWN; in bundle_create()
83 Curl_llist_init(&(*cb_ptr)->conn_list, (curl_llist_dtor) conn_llist_dtor); in bundle_create()
87 static void bundle_destroy(struct connectbundle *cb_ptr) in bundle_destroy() argument
89 if(!cb_ptr) in bundle_destroy()
92 Curl_llist_destroy(&cb_ptr->conn_list, NULL); in bundle_destroy()
94 free(cb_ptr); in bundle_destroy()
98 static void bundle_add_conn(struct connectbundle *cb_ptr, in bundle_add_conn() argument
101 Curl_llist_insert_next(&cb_ptr->conn_list, cb_ptr->conn_list.tail, conn, in bundle_add_conn()
103 conn->bundle = cb_ptr; in bundle_add_conn()
104 cb_ptr->num_connections++; in bundle_add_conn()
108 static int bundle_remove_conn(struct connectbundle *cb_ptr, in bundle_remove_conn() argument
113 curr = cb_ptr->conn_list.head; in bundle_remove_conn()
116 Curl_llist_remove(&cb_ptr->conn_list, curr, NULL); in bundle_remove_conn()
117 cb_ptr->num_connections--; in bundle_remove_conn()