Skip to content

Commit

Permalink
adding api functions from errorLog.h to legacy.h
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed Jan 23, 2024
1 parent b95ca2f commit f1a8fd7
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions source/include/legacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
# warning "using UDA legacy name mappings"

// TODO: address embedded todos...
// TODO: should these all be C functions instead of c++?
// - change blah() to blah(void)
// - are inline functions in header bad?

/*
* definitions from pluginStructs.h
Expand Down Expand Up @@ -921,4 +924,54 @@ inline int idam_regulariseVlenData(LOGMALLOCLIST * logmalloclist, NTREE * tree,
// offset,
// int size);

/*
* definitions from errorLog.h
*/

// inline int udaNumErrors()
// {
// return udaNumErrors();
// }

// inline void udaErrorLog(CLIENT_BLOCK client_block, REQUEST_BLOCK request_block, UDA_ERROR_STACK* error_stack)
// {
// return udaErrorLog(client_block, request_block, error_stack);
// }

inline void initUdaErrorStack()
{
return udaInitErrorStack();
}

inline void initErrorRecords(const UDA_ERROR_STACK* errorstack)
{
return udaInitErrorRecords(errorstack);
}

inline void printIdamErrorStack()
{
return udaPrintErrorStack();
}

inline void addIdamError(int type, const char* location, int code, const char* msg)
{
return udaAddError(type, location, code, msg);
}

inline void concatUdaError(UDA_ERROR_STACK* errorstackout)
{
return udaConcatError(errorstackout);
}

inline void freeIdamErrorStack(UDA_ERROR_STACK* errorstack)
{
return udaFreeErrorStack(errorstack);
}

inline void closeUdaError()
{
return udaCloseError();
}


#endif // UDA_LEGACY_H

0 comments on commit f1a8fd7

Please sign in to comment.