Module: sip-router Branch: 4.0 Commit: 5ba5a0a5bb6fc5080604e1abaef6cd41148911de URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5ba5a0a5bb6fc5080604e1abaef6cd41148911de
Author: Richard Fuchs <[email protected]> Committer: Richard Fuchs <[email protected]> Date: Wed Apr 10 09:33:53 2013 -0400 srdb1: add new db-private generic pointer to struct db1_res --- lib/srdb1/db_res.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/srdb1/db_res.h b/lib/srdb1/db_res.h index f8f909f..62fc11c 100644 --- a/lib/srdb1/db_res.h +++ b/lib/srdb1/db_res.h @@ -61,6 +61,7 @@ typedef struct db1_res { int n; /**< Number of rows in current fetch */ int res_rows; /**< Number of total rows in query */ int last_row; /**< Last row */ + void* ptr; /**< For use by DB modules */ } db1_res_t; @@ -78,6 +79,8 @@ typedef struct db1_res { #define RES_LAST_ROW(re) ((re)->last_row) /** Return the number of total result rows */ #define RES_NUM_ROWS(re) ((re)->res_rows) +/** Return the module-specific pointer */ +#define RES_PTR(re) ((re)->ptr) /** _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
