qb_hdb_handle_get_always - Man Page

Get the instance associated with this handle and increase it's refcount.


#include <qb/qbhdb.h>

int32_t qb_hdb_handle_get_always(
    struct qb_hdb   *hdb,  /* the database instance */
    qb_handle_t      handle_in,        /* the handle */
    void           **instance       /* (out) pointer to the desired object. */


hdb       the database instance

handle_in the handle

instance  (out) pointer to the desired object.



struct qb_hdb {

    uint32_t    handle_count;

    qb_array_t  handles;

    uint32_t    iterator;

    void      (*destructor)(void *);

    uint32_t    first_run;

Return Value

(0 == ok, -errno failure)


This is currently an alias to qb_hdb_handle_get.

See Also

qb_hdb_handle_get(3), qb_hdb_iterator_reset(3), qb_hdb_handle_create(3), qb_hdb_handle_destroy(3), qb_hdb_handle_refcount_get(3), qb_hdb_iterator_next(3), qb_hdb_nocheck_convert(3), qb_hdb_create(3), qb_hdb_destroy(3), qb_hdb_base_convert(3), qb_hdb_handle_put(3)

Referenced By

qb_hdb_base_convert(3), qb_hdb_create(3), qb_hdb_destroy(3), qbhdb.h(3), qb_hdb_handle_create(3), qb_hdb_handle_destroy(3), qb_hdb_handle_get(3), qb_hdb_handle_put(3), qb_hdb_handle_refcount_get(3), qb_hdb_iterator_next(3), qb_hdb_iterator_reset(3), qb_hdb_nocheck_convert(3).

2022-03-23 libqb Programmer's Manual