next up previous contents index
Next: 4.9.2 oskit_unregister: Unregister a Up: 4.9 Services Registry Previous: 4.9 Services Registry

4.9.1 oskit_register: Register an interface in the services registry

 

SYNOPSIS

#include <oskit/com/services.h>

oskit_error_t oskit_register(const struct oskit_guid *iid, void *interface);

DESCRIPTION

Register a COM interface in the services registry. An additional reference on the interface is taken. More than one interface may be registered for a particular IID. Attempts to register an interface that is already registered will succeed, although the registry will remain unchanged and no additional references will be taken.

PARAMETERS

iid
The oskit_guid of the COM interface being registered.
interface
The COM interface being registered.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group