Typedefs | |
typedef _IrmoMethodData | IrmoMethodData |
Method Callback Data. | |
typedef void(* | IrmoInvokeCallback )(IrmoMethodData *data, void *user_data) |
Callback function for methods. | |
Functions | |
IrmoCallback * | irmo_world_method_watch (IrmoWorld *world, char *method_name, IrmoInvokeCallback method, void *user_data) |
Set a callback function to be invoked when a method is called. | |
char * | irmo_method_arg_string (IrmoMethodData *data, char *argname) |
Retrieve a method argument. | |
unsigned int | irmo_method_arg_int (IrmoMethodData *data, char *argname) |
Retrieve a method argument. | |
IrmoClient * | irmo_method_get_source (IrmoMethodData *data) |
Find the client which invoked a method. | |
void | irmo_world_method_call (IrmoWorld *world, char *method,...) |
Call a method. | |
void | irmo_world_method_call2 (IrmoWorld *world, char *method, IrmoValue *arguments) |
Call a method. |
|
Callback function for methods. When a method invocation is received from a client, a callback function of this type is invoked.
|
|
Method Callback Data. When a callback function attached to a method is invoked, it is passed an object of this type containing data relevant to the method. For example, the object can be used to retrieve the values of method arguments, and the client which invoked the method. |
|
Retrieve a method argument. Get the value of an integer argument to a method from the method callback function.
|
|
Retrieve a method argument. Get the value of a string argument to a method from the method callback function.
|
|
Find the client which invoked a method. This function returns a reference to the IrmoClient object of the client which invoked the method. If it was invoked by a function in the local program, it returns NULL. |
|
Call a method. Invoke a method. If the world is a local copy of a world served from a remote machine the call will be forwarded to the remote machine. Following the function arguments are the method arguments, in the order specified in the interface specification.
|
|
Call a method. Invoke a method. This is the same as irmo_world_method_call except it takes an array of IrmoValue structures for the arguments instead of using the C varargs mechanism. |
|
Set a callback function to be invoked when a method is called.
|