@@ -213,7 +213,6 @@ void cdb2_set_comdb2db_config(char *cfg_file);
213213void cdb2_set_comdb2db_info (char * cfg_info );
214214void cdb2_set_sockpool (const char * sp_path );
215215void cdb2_set_identity (cdb2_hndl_tp * hndl , const void * identity );
216- int cdb2_get_comdb2db (char * * comdb2db_name , char * * comdb2db_class );
217216
218217int cdb2_open (cdb2_hndl_tp * * hndl , const char * dbname , const char * type , int flags );
219218
@@ -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,19 +240,15 @@ 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-
260- int cdb2_init_ssl (int init_libssl , int init_libcrypto );
261- int cdb2_is_ssl_encrypted (cdb2_hndl_tp * hndl );
262-
263250int cdb2_clear_ack (cdb2_hndl_tp * hndl );
264251
265- char * cdb2_string_escape (cdb2_hndl_tp * hndl , const char * str );
266-
267252// on success, `*value` points to dynamically allocated memory
268253// that must be freed by the caller.
269254int cdb2_get_property (cdb2_hndl_tp * hndl , const char * key , char * * value );
@@ -334,6 +319,10 @@ int cdb2_register_retry_callback(cdb2_hndl_tp *hndl, RETRY_CALLBACK f);
334319void cdb2_identity_create ();
335320void cdb2_identity_destroy (int is_task_exit );
336321int cdb2_identity_valid ();
322+ int cdb2_init_ssl (int init_libssl , int init_libcrypto );
323+ int cdb2_is_ssl_encrypted (cdb2_hndl_tp * hndl );
324+
325+ char * cdb2_string_escape (cdb2_hndl_tp * hndl , const char * str );
337326
338327struct cdb2_identity {
339328 void (* resetIdentity_start )();
0 commit comments