How I can get ServerReturnValue return value?

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
Noxi
Posts: 6
Joined: 25. Jul 2018, 03:40

How I can get ServerReturnValue return value?

Post by Noxi »

Hi everybody!

I'm learnning about vbox internals but I dont understand how get the return value when I call an expand opcode function. I can see in source which the ServerReturnValue function is used, but I dont know how get that value.

For example:

Code: Select all

void SERVER_DISPATCH_APIENTRY crServerDispatchGetProgramiv( GLuint program, GLenum pname, GLint * params )
{
    GLint local_params[1];
    (void) params;
    cr_server.head_spu->dispatch_table.GetProgramiv(crStateGetProgramHWID(program), pname, local_params);
    crServerReturnValue( &(local_params[0]), 1*sizeof(GLint) );
}
The function crServerReturnValue use CrNetworkPointers writeback_ptr and return_ptr finally use crNetSend, so I think I need any kind of callback in guest side?, but I'm a noob :'(

Sorry for my english, and thanks for readme.

Best Regards,
Nox.
Post Reply