/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ Call back hanlder (void)hanlder( dbms_cause_t event, int counter) dbms_cause_t: DBMS_EVENT_RECONNECT Lost connection, is reconnecting DBMS_EVENT_WAITING Is connecting but long wait Return values possible dbms * General struct. Do not touch. dbms_error_t Error value; either errno or one of the E_ values see below. extern char * get_dbms_error( dbms * me ); extern dbms * dbms_connect( char *name, char * host, int port, int mode, void *(*_my_malloc)( size_t size), void(*_my_free)(void *), void(*_my_report)(dbms_cause_t cause, int count), int bt_compare_fcn_type ); extern dbms_error_t dbms_comms ( dbms * me, int token, int * retval, DBT * v1, DBT * v2, DBT * r1, DBT * r2 ); dbms_error_t values; beside normal errno values from libc et. al. E_UNDEF E_NONNUL E_FULLREAD E_FULLWRITE E_CLOSE E_HOSTNAME E_VERSION E_PROTO E_ERROR E_NOMEM E_RETRY E_NOPE E_XXX E_TOOBIG E_BUG Trick if 'DBMS_LOG' is set transactions are logged to that file.