Updates to toolkit documentation
This commit is contained in:
19
src/epanet.c
19
src/epanet.c
@@ -851,13 +851,28 @@ int DLLEXPORT EN_closeQ(EN_Project p)
|
||||
|
||||
|
||||
int DLLEXPORT EN_setreportcallback(EN_Project p, void (*callback)(void*,void*,const char*))
|
||||
{
|
||||
/*----------------------------------------------------------------
|
||||
** Input: callback = a pointer to a reporting function
|
||||
** Output: none
|
||||
** Returns: error code
|
||||
** Purpose: replaces EPANET's normal use of a designated report file
|
||||
**----------------------------------------------------------------
|
||||
*/
|
||||
{
|
||||
p->report.reportCallback = callback;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int DLLEXPORT EN_setreportcallbackuserdata(EN_Project p, void *userData)
|
||||
{
|
||||
/*----------------------------------------------------------------
|
||||
** Input: userData = a pointer to a client-side data object
|
||||
** Output: none
|
||||
** Returns: error code
|
||||
** Purpose: sets the client-side data object used in conjunction with
|
||||
** the callback function in EN_setreportcallback
|
||||
**----------------------------------------------------------------
|
||||
*/
|
||||
{
|
||||
p->report.reportCallbackUserData = userData;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user