CUBRID Engine  latest
api_handle.h File Reference
#include "config.h"
Include dependency graph for api_handle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bh_bind_s
 
struct  bh_interface_s
 
struct  bh_provider_s
 

Typedefs

typedef UINT64 BIND_HANDLE
 
typedef struct bh_interface_s BH_INTERFACE
 
typedef struct bh_bind_s BH_BIND
 
typedef void(* bh_destroyf) (BH_BIND *bind)
 
typedef int(* bh_mapf) (BH_INTERFACE *ifs, BH_BIND *bind, void *arg)
 
typedef struct bh_provider_s bh_provider
 

Enumerations

enum  BH_ROOT_TYPE {
  BH_ROOT_TYPE_STATIC_HASH_64 = 0, BH_ROOT_TYPE_STATIC_HASH_128 = 1, BH_ROOT_TYPE_STATIC_HASH_1024 = 2, BH_ROOT_TYPE_EXTENDIBLE_HASH = 3,
  BH_ROOT_TYPE_RB_TREE = 4
}
 

Functions

int bh_root_acquire (int *rid, BH_ROOT_TYPE rt)
 
int bh_root_release (int rid)
 
int bh_root_lock (int rid, BH_INTERFACE **ifs)
 
int bh_root_unlock (int rid)
 
int bh_get_rid (BIND_HANDLE bh, int *rid)
 
int create_handle_context (bh_provider *prov, BH_ROOT_TYPE rt, BH_INTERFACE **ifs)
 

Typedef Documentation

typedef struct bh_bind_s BH_BIND

Definition at line 30 of file api_handle.h.

typedef void(* bh_destroyf) (BH_BIND *bind)

Definition at line 31 of file api_handle.h.

typedef struct bh_interface_s BH_INTERFACE

Definition at line 29 of file api_handle.h.

typedef int(* bh_mapf) (BH_INTERFACE *ifs, BH_BIND *bind, void *arg)

Definition at line 32 of file api_handle.h.

typedef struct bh_provider_s bh_provider

Definition at line 33 of file api_handle.h.

typedef UINT64 BIND_HANDLE

Definition at line 28 of file api_handle.h.

Enumeration Type Documentation

Enumerator
BH_ROOT_TYPE_STATIC_HASH_64 
BH_ROOT_TYPE_STATIC_HASH_128 
BH_ROOT_TYPE_STATIC_HASH_1024 
BH_ROOT_TYPE_EXTENDIBLE_HASH 
BH_ROOT_TYPE_RB_TREE 

Definition at line 35 of file api_handle.h.

Function Documentation

int bh_get_rid ( BIND_HANDLE  bh,
int *  rid 
)

Definition at line 802 of file api_handle.c.

References BH_GET_RID, ER_INTERFACE_INVALID_HANDLE, NO_ERROR, and NULL.

Referenced by ci_stmt_close().

Here is the caller graph for this function:

int bh_root_acquire ( int *  rid,
BH_ROOT_TYPE  rt 
)
int bh_root_lock ( int  rid,
BH_INTERFACE **  ifs 
)
int bh_root_release ( int  rid)
int bh_root_unlock ( int  rid)

Definition at line 944 of file api_handle.c.

References API_UNLOCK, bri_access_root(), ER_INTERFACE_GENERIC, bh_root_s::mutex, NO_ERROR, and rr_initialized.

Referenced by ci_create_connection_impl(), and ci_stmt_close().

Here is the caller graph for this function: