Alexander G schrieb:
> Wie geht man denn da an die Sache ran?
Mit einem incomplete type:
1 | struct s_midi_class;
|
2 |
|
3 | typedef void (*S_midi_read_performed)(const struct s_midi_class *);
|
4 |
|
5 | ...
|
6 |
|
7 | typedef struct s_midi_class {
|
8 | ...
|
9 | } S_midi_class;
|
Falls das Ganze für C++ ist, kannste die typedefs für die
struct-Typen auch gleich in die Tonne kloppen: struct s_midi_class
definiert den Namen s_midi_class in C++ als Typnamen (innerhalb
des entsprechenden Scopes), anders als bei C, wo der Name nur
innerhalb des struct namespaces definiert wird.