Skip to content

Commit 1ccb0d9

Browse files
committed
Name callback data structs
This allows to forward-declare callback data types in case a callback needs to be declared in a public header: struct _HighsCallbackDataOut; struct _HighsCallbackDataIn; typedef _HighsCallbackDataOut HighsCallbackDataOut; typedef _HighsCallbackDataIn HighsCallbackDataIn;
1 parent 869cbd4 commit 1ccb0d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

highs/lp_data/HighsCallbackStruct.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extern "C" {
2121
* Struct to handle callback output data
2222
*
2323
*/
24-
typedef struct {
24+
typedef struct _HighsCallbackDataOut {
2525
void* cbdata; // cast of HighsCallbackOutput
2626
int log_type; // cast of HighsLogType
2727
double running_time;
@@ -50,7 +50,7 @@ typedef struct {
5050
// Some external packages (e.g., jump) currently assume that the first 2 fields
5151
// of this struct are interrupt and solution. Rearranging the struct may be a
5252
// breaking change.
53-
typedef struct {
53+
typedef struct _HighsCallbackDataIn {
5454
int user_interrupt;
5555
double* user_solution;
5656
void* cbdata; // cast of HighsCallbackInput (for internal use)

0 commit comments

Comments
 (0)