|
@@ -85,7 +85,7 @@ typedef struct db1_res {
|
|
* \param _r the result that should be released
|
|
* \param _r the result that should be released
|
|
* \return zero on success, negative on errors
|
|
* \return zero on success, negative on errors
|
|
*/
|
|
*/
|
|
-inline int db_free_rows(db1_res_t* _r);
|
|
|
|
|
|
+extern inline int db_free_rows(db1_res_t* _r);
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -95,20 +95,20 @@ inline int db_free_rows(db1_res_t* _r);
|
|
* \param _r the result that should be released
|
|
* \param _r the result that should be released
|
|
* \return zero on success, negative on errors
|
|
* \return zero on success, negative on errors
|
|
*/
|
|
*/
|
|
-inline int db_free_columns(db1_res_t* _r);
|
|
|
|
|
|
+extern inline int db_free_columns(db1_res_t* _r);
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* Create a new result structure and initialize it.
|
|
* Create a new result structure and initialize it.
|
|
* \return a pointer to the new result on success, NULL on errors
|
|
* \return a pointer to the new result on success, NULL on errors
|
|
*/
|
|
*/
|
|
-inline db1_res_t* db_new_result(void);
|
|
|
|
|
|
+extern inline db1_res_t* db_new_result(void);
|
|
|
|
|
|
/**
|
|
/**
|
|
* Release memory used by a result structure.
|
|
* Release memory used by a result structure.
|
|
* \return zero on success, negative on errors
|
|
* \return zero on success, negative on errors
|
|
*/
|
|
*/
|
|
-inline int db_free_result(db1_res_t* _r);
|
|
|
|
|
|
+extern inline int db_free_result(db1_res_t* _r);
|
|
|
|
|
|
/**
|
|
/**
|
|
* Allocate storage for column names and type in existing result structure.
|
|
* Allocate storage for column names and type in existing result structure.
|
|
@@ -118,7 +118,7 @@ inline int db_free_result(db1_res_t* _r);
|
|
* \param cols number of columns
|
|
* \param cols number of columns
|
|
* \return zero on success, negative on errors
|
|
* \return zero on success, negative on errors
|
|
*/
|
|
*/
|
|
-inline int db_allocate_columns(db1_res_t* _r, const unsigned int cols);
|
|
|
|
|
|
+extern inline int db_allocate_columns(db1_res_t* _r, const unsigned int cols);
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -126,6 +126,6 @@ inline int db_allocate_columns(db1_res_t* _r, const unsigned int cols);
|
|
* \param _res result set
|
|
* \param _res result set
|
|
* \return zero on success, negative on errors
|
|
* \return zero on success, negative on errors
|
|
*/
|
|
*/
|
|
-inline int db_allocate_rows(db1_res_t* _res);
|
|
|
|
|
|
+extern inline int db_allocate_rows(db1_res_t* _res);
|
|
|
|
|
|
#endif /* DB1_RES_H */
|
|
#endif /* DB1_RES_H */
|