Main Page   Modules   Data Structures   Data Fields   Related Pages  

rte_backend_class Struct Reference

#include <rtepriv.h>


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 at Wed Mar 22 23:35:36 2006 for RTE Library by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001