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 62 static inline void hdb_database_lock (pthread_mutex_t *mutex)
64 pthread_mutex_lock (mutex);
67 static inline void hdb_database_unlock (pthread_mutex_t *mutex)
69 pthread_mutex_unlock (mutex);
71 static inline void hdb_database_lock_init (pthread_mutex_t *mutex)
73 pthread_mutex_init (mutex, NULL);
76 static inline void hdb_database_lock_destroy (pthread_mutex_t *mutex)
78 pthread_mutex_destroy (mutex);
81 #define DECLARE_HDB_DATABASE QB_HDB_DECLARE 83 static inline void hdb_create (
86 qb_hdb_create (handle_database);
89 static inline void hdb_destroy (
92 qb_hdb_destroy (handle_database);
96 static inline int hdb_handle_create (
101 return (qb_hdb_handle_create (handle_database, instance_size,
105 static inline int hdb_handle_get (
110 return (qb_hdb_handle_get (handle_database, handle_in, instance));
113 static inline int hdb_handle_get_always (
118 return (qb_hdb_handle_get_always (handle_database, handle_in, instance));
121 static inline int hdb_handle_put (
125 return (qb_hdb_handle_put (handle_database, handle_in));
128 static inline int hdb_handle_destroy (
132 return (qb_hdb_handle_destroy (handle_database, handle_in));
135 static inline int hdb_handle_refcount_get (
139 return (qb_hdb_handle_refcount_get (handle_database, handle_in));
142 static inline void hdb_iterator_reset (
145 qb_hdb_iterator_reset (handle_database);
148 static inline int hdb_iterator_next (
153 return (qb_hdb_iterator_next (handle_database, instance, handle));
156 static inline unsigned int hdb_base_convert (
hdb_handle_t handle)
158 return (qb_hdb_base_convert (handle));
161 static inline unsigned long long hdb_nocheck_convert (
unsigned int handle)
163 return (qb_hdb_nocheck_convert (handle));
#define hdb_handle_database