_OpenComponentManager Struct Reference

#include <compmgr.h>

List of all members.


Detailed Description

The virtual table which contains public component manager interface.

The interface allows accessing components by name and operating with component instances.

It is safe to call these functions from multiple threads.


Public Attributes

int(* GetComponent )(OpenComponentHandle *p_component, const char *name)
 Get a default interface of a registered component by name.
int(* CreateInstance )(OpenInstanceHandle *p_instance, const char *name)
 Create a new component instance and register it in a component manager.
int(* FreeInstance )(OpenInstanceHandle instance)
 Unregister the instance in a component manager, free memory and other resources held by the instance.


Member Data Documentation

int(* _OpenComponentManager.GetComponent)(OpenComponentHandle *p_component, const char *name)

Get a default interface of a registered component by name.

Parameters:
[out] p_component on return, points to a handle of default component interface
name a component name
Returns:
APR_SUCCESS if successful, otherwise a non-zero error code

int(* _OpenComponentManager.CreateInstance)(OpenInstanceHandle *p_instance, const char *name)

Create a new component instance and register it in a component manager.

Parameters:
[out] p_instance on return, points to a handle of a newly created instance
name a name of interface
Returns:
APR_SUCCESS if successful, otherwise a non-zero error code

int(* _OpenComponentManager.FreeInstance)(OpenInstanceHandle instance)

Unregister the instance in a component manager, free memory and other resources held by the instance.

Parameters:
instance a handle to the instance to Free
Returns:
APR_SUCCESS if successful, otherwise a non-zero error code


The documentation for this struct was generated from the following file:

Genereated on Tue Mar 11 19:25:25 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.