@@ -212,7 +212,6 @@ typedef struct cdb2_effects_type effects_tp;
212212void cdb2_set_comdb2db_config (const char * cfg_file );
213213void cdb2_set_comdb2db_info (const char * cfg_info );
214214void cdb2_set_identity (cdb2_hndl_tp * hndl , const void * identity );
215- int cdb2_get_comdb2db (char * * comdb2db_name , char * * comdb2db_class );
216215
217216int cdb2_open (cdb2_hndl_tp * * hndl , const char * dbname , const char * type , int flags );
218217
@@ -232,16 +231,6 @@ int cdb2_column_type(cdb2_hndl_tp *hndl, int col);
232231int cdb2_column_size (cdb2_hndl_tp * hndl , int col );
233232void * cdb2_column_value (cdb2_hndl_tp * hndl , int col );
234233const char * cdb2_errstr (cdb2_hndl_tp * hndl );
235- const char * cdb2_cnonce (cdb2_hndl_tp * hndl );
236- void cdb2_set_debug_trace (cdb2_hndl_tp * hndl );
237- void cdb2_dump_ports (cdb2_hndl_tp * hndl , FILE * out );
238- void cdb2_cluster_info (cdb2_hndl_tp * hndl , char * * cluster , int * ports , int max , int * count );
239- int cdb2_snapshot_file (cdb2_hndl_tp * hndl , int * file , int * offset );
240- void cdb2_getinfo (cdb2_hndl_tp * hndl , int * intrans , int * hasql );
241- void cdb2_set_max_retries (int max_retries );
242- void cdb2_set_min_retries (int min_retries );
243- void cdb2_hndl_set_max_retries (cdb2_hndl_tp * hndl , int max_retries );
244- void cdb2_hndl_set_min_retries (cdb2_hndl_tp * hndl , int min_retries );
245234
246235int cdb2_bind_param (cdb2_hndl_tp * hndl , const char * name , int type ,
247236 const void * varaddr , int length );
@@ -251,23 +240,19 @@ int cdb2_bind_array(cdb2_hndl_tp *, const char *, cdb2_coltype, const void *, si
251240int cdb2_bind_array_index (cdb2_hndl_tp * , int , cdb2_coltype , const void * , size_t , size_t );
252241int cdb2_clearbindings (cdb2_hndl_tp * hndl );
253242
243+ /* SOCKPOOL CLIENT APIS */
244+ void cdb2_enable_sockpool ();
245+ void cdb2_disable_sockpool ();
246+
254247const char * cdb2_dbname (cdb2_hndl_tp * hndl );
255248const char * cdb2_host (cdb2_hndl_tp * hndl );
256249
257- void cdb2_enable_sockpool (void );
258- void cdb2_disable_sockpool (void );
259-
260250int cdb2_push_context (cdb2_hndl_tp * hndl , const char * msg );
261251int cdb2_pop_context (cdb2_hndl_tp * hndl );
262252int cdb2_clear_contexts (cdb2_hndl_tp * hndl );
263253
264- int cdb2_init_ssl (int init_libssl , int init_libcrypto );
265- int cdb2_is_ssl_encrypted (cdb2_hndl_tp * hndl );
266-
267254int cdb2_clear_ack (cdb2_hndl_tp * hndl );
268255
269- char * cdb2_string_escape (cdb2_hndl_tp * hndl , const char * str );
270-
271256// on success, `*value` points to dynamically allocated memory
272257// that must be freed by the caller.
273258int cdb2_get_property (cdb2_hndl_tp * hndl , const char * key , char * * value );
@@ -338,6 +323,10 @@ int cdb2_register_retry_callback(cdb2_hndl_tp *hndl, RETRY_CALLBACK f);
338323void cdb2_identity_create ();
339324void cdb2_identity_destroy (int is_task_exit );
340325int cdb2_identity_valid ();
326+ int cdb2_init_ssl (int init_libssl , int init_libcrypto );
327+ int cdb2_is_ssl_encrypted (cdb2_hndl_tp * hndl );
328+
329+ char * cdb2_string_escape (cdb2_hndl_tp * hndl , const char * str );
341330
342331struct cdb2_identity {
343332 void (* resetIdentity_start )();
0 commit comments