I need to refer to a structure that is not yet defined, because the structure actually encodes a prototype of the typedef'd function.
For example,
typedef int (MyCallbackFunction)(X * x, void * ctx); typedef struct CallbackData { MyCallbackFunction * callback; void * ctx; } CallbackData; typedef struct X { char a; int b; int c; double d; CallbackData e; } X;
What is a valid way to write this code / header?
Adam MW
source share