57 #define HDB_D_FORMAT QB_HDB_D_FORMAT
58 #define HDB_X_FORMAT QB_HDB_X_FORMAT
60 #define hdb_handle_database qb_hdb
66 static inline void hdb_database_lock (pthread_mutex_t *mutex)
68 pthread_mutex_lock (mutex);
75 static inline void hdb_database_unlock (pthread_mutex_t *mutex)
77 pthread_mutex_unlock (mutex);
84 static inline void hdb_database_lock_init (pthread_mutex_t *mutex)
86 pthread_mutex_init (mutex, NULL);
93 static inline void hdb_database_lock_destroy (pthread_mutex_t *mutex)
95 pthread_mutex_destroy (mutex);
98 #define DECLARE_HDB_DATABASE QB_HDB_DECLARE
104 static inline void hdb_create (
107 qb_hdb_create (handle_database);
114 static inline void hdb_destroy (
117 qb_hdb_destroy (handle_database);
127 static inline int hdb_handle_create (
132 return (qb_hdb_handle_create (handle_database, instance_size,
143 static inline int hdb_handle_get (
148 return (qb_hdb_handle_get (handle_database, handle_in, instance));
158 static inline int hdb_handle_get_always (
163 return (qb_hdb_handle_get_always (handle_database, handle_in, instance));
172 static inline int hdb_handle_put (
176 return (qb_hdb_handle_put (handle_database, handle_in));
185 static inline int hdb_handle_destroy (
189 return (qb_hdb_handle_destroy (handle_database, handle_in));
198 static inline int hdb_handle_refcount_get (
202 return (qb_hdb_handle_refcount_get (handle_database, handle_in));
209 static inline void hdb_iterator_reset (
212 qb_hdb_iterator_reset (handle_database);
222 static inline int hdb_iterator_next (
227 return (qb_hdb_iterator_next (handle_database, instance, handle));
235 static inline unsigned int hdb_base_convert (
hdb_handle_t handle)
237 return (qb_hdb_base_convert (handle));
245 static inline unsigned long long hdb_nocheck_convert (
unsigned int handle)
247 return (qb_hdb_nocheck_convert (handle));