Details
struct CTWaveConnection
struct CTWaveConnection {
  CTWaveConnectionHolder   *db;
  CS_CONTEXT               *context;
  CS_CONNECTION            *connection;
  gboolean                  has_transaction;
  gint                      has_error;
  void                     *object;
  CS_COMMAND               *client;
}; | 
Use internals at your own risk.
ctwave_connection_new ()
Creates a new CTWave Connection object.
ctwave_connection_del ()
Destroys the specified CTWave Connection Object.  Any transactions on
the connection are rolled back and the object is connected to Sybase
the connection is broken.
ctwave_connection_connect ()
WaveResult  ctwave_connection_connect       ();  | 
Initiates a connection to Sybase.  The currently active CTWave Database
object is used.  CTWave Database objects are activated using the function
ctwave_database_activate.
ctwave_connection_disconnect ()
WaveResult  ctwave_connection_disconnect    (gboolean and_detach);  | 
Deactivates the current connection.  If and_detach is TRUE then the
connection to Sybase is broken and the connection is removed from the pool
ctwave_connection_get_active ()
Returns the first connection object from the list.
ctwave_connection_count ()
Counts the number of connections associated with the specified CTWave
Connection Holder Object.
ctwave_connection_find_free ()
Scans the connection list of the specified CTWave Connection Holder Object
and adjusts the list for optimal size.
ctwave_connection_poll ()
ctwave_connection_setLocale ()
WaveResult  ctwave_connection_setLocale     (CTWaveConnection *conn,
                                             const gchar *locName);  | 
ctwave_connection_alloc ()
Allocates a CT-Lib connection, ie. ct_con_alloc.
ctwave_connection_free ()
Deallocates a CT-Lib connection, ie. ct_con_drop.
ctwave_connection_attach ()
Attaches the specfied CTWave Connection Object to the named CTWave
Connection Holder Object.  Then attempts to initiate a connection to
Sybase.
ctwave_connection_detach ()
Detaches the specfied CTWave Connection Object from its CTWave
Connection Holder Object.  Then closes the connection to Sybase.
ctwave_connection_release ()
Releases the specified CTWave Connection Object.  Any transactions on
the connection are rolled back and if the object is connected to Sybase
the connection is broken.
ctwave_connection_activate ()
Activates the specified CTWave Connection Object.  The object is placed
at the head of the connection list.
ctwave_connection_deactivate ()
Deactivates the specified CTWave Connection Object by moving the object
to the end of the connection list.
ctwave_connection_is_open ()
Determines if the specified connection object is part of some ones
connection list.
ctwave_connection_bind ()
Binds object to the CTWave Connection Object.  This is used to make sure
that the connection is deallocated.
ctwave_connection_start_trans ()
Initiates a "begin transaction" on the current transaction.  Sets the
"has_transaction" flag TRUE.
ctwave_connection_commit_trans ()
Initiates a "commit work" on the current transaction.  Sets the
"has_transaction" flag FALSE.
ctwave_connection_rollback_trans ()
Initiates a "rollback work" on the current transaction.  Sets the
"has_transaction" flag FALSE.
ctwave_connection_message ()
void        ctwave_connection_message       (int severity,
                                             char *text); | 
Calls g_log with the message text.  The severity determines the message
level.
ctwave_connection_clear_error ()
void        ctwave_connection_clear_error   ();  | 
Sets the "has_error" flag FALSE for the current active connection.
ctwave_connection_is_error ()
gboolean    ctwave_connection_is_error      ();  | 
Returns the "has_error" flag for the current active connection.