OMget_func_val and OMset_func_val
Synopsis
int OMget_func_val (
OMobj_id object_id,
OMpfi *function );
int OMset_func_val (
OMobj_id object_id,
OMpfi function );
Description
These routines get and set a method object's function pointer; i.e., the function that is executed when the method is invoked.
Arguments
object_id
The id of a function object.
function
A function pointer.
Returned value
The status code (see Return Status ).
Example
/* Set the function called by my_func_id (the object id
of a method). */
OMobj_id my_func_id;
int status;
...
status = OMset_func_val(my_func_id, (OMpfi) add_vals);