Inter-application communication..(design)
Posted: Sat Feb 10, 2007 3:05 pm
I am making a pc emulator, but rather than have all of the devices contained in one binary file, I instead am using dlls/SO's, but now I have a problem with design
for external devices I have a GlobStruct type interface where Open86Init(GlobStruct *globs); is called, this global struct has everything that the device should need, from where memory is located(a pointer), to the values of all the registers
but now, I want for devices to rely on each other for ease of programming, for instance if your gonna write a VGA video card, you don't want to worry about gui crap,
now my design problem is how the crap do I make this nice and managable, btw I'm using C
for external devices I have a GlobStruct type interface where Open86Init(GlobStruct *globs); is called, this global struct has everything that the device should need, from where memory is located(a pointer), to the values of all the registers
but now, I want for devices to rely on each other for ease of programming, for instance if your gonna write a VGA video card, you don't want to worry about gui crap,
now my design problem is how the crap do I make this nice and managable, btw I'm using C