rte_backend_class Struct Reference
[Backend Interface]


Data Fields

char * name
void(* backend_init )(void)
rte_context_class *(* context_enum )(unsigned int index, char **errstr)

Detailed Description

Backend methods.


Field Documentation

char* rte_backend_class::name
 

Name of the backend. This is only used for debugging, not client visible.

void(* rte_backend_class::backend_init)(void)
 

Called once by frontend before context_enum.

rte_context_class*(* rte_backend_class::context_enum)(unsigned int index, char **errstr)
 

Same behaviour as its frontend counterpart. Contexts (rather than the entire backend) can be inactive due to lack of resources for example, then this function must still return a valid rte_context_class->_public->keyword so we can enumerate the context and learn about its inavailability. Then errstr should explain what the problem is and rte_context_class->_new shall be NULL. Use rte_asprintf() to set errstr.


Generated on Tue Apr 11 18:23:04 2006 for RTE Library by  doxygen 1.4.6