portnifloader.h
Include dependency graph for portnifloader.h:
This graph shows which files directly or indirectly include portnifloader.h:
Defines
-
REGISTER_PORT_DRIVER(NAME, INIT_CB, DESTROY_CB, CREATE_CB) struct PortDriverDef
NAME##_port_driver_def = { \
.port_driver_name = #NAME, \
.port_driver_init_cb = INIT_CB, \
.port_driver_destroy_cb = DESTROY_CB, \
.port_driver_create_port_cb = CREATE_CB \
}; \
\
struct
PortDriverDefListItemNAME##_port_driver_def_list_item = { \
.def = &NAME##_port_driver_def \
}; \
\
__attribute__((constructor)) void NAME##register_port_driver() \
{ \
NAME##_port_driver_def_list_item.next =
port_driver_list; \ port_driver_list= &NAME##_port_driver_def_list_item; \
}
-
REGISTER_NIF_COLLECTION(NAME, INIT_CB, DESTROY_CB, RESOLVE_NIF_CB) struct NifCollectionDef
NAME##_nif_collection_def = { \
.nif_collection_init_cb = INIT_CB, \
.nif_collection_destroy_cb = DESTROY_CB, \
.nif_collection_resolve_nif_cb = RESOLVE_NIF_CB \
}; \
\
struct
NifCollectionDefListItemNAME##_nif_collection_def_list_item = { \
.def = &NAME##_nif_collection_def \
}; \
\
__attribute__((constructor)) void NAME##_nif() \
{ \
NAME##_nif_collection_def_list_item.next =
nif_collection_list; \ nif_collection_list= &NAME##_nif_collection_def_list_item; \
}
Typedefs
-
typedef void (*port_driver_init_t)(GlobalContext *global)
-
typedef void (*port_driver_destroy_t)(GlobalContext *global)
-
typedef Context *(*port_driver_create_port_t)(GlobalContext *global, term opts)
-
typedef void (*nif_collection_init_t)(GlobalContext *global)
-
typedef void (*nif_collection_destroy_t)(GlobalContext *global)
-
typedef const struct Nif *(*nif_collection_resolve_nif_t)(const char *name)
Functions
-
void port_driver_init_all(GlobalContext *global)
-
void port_driver_destroy_all(GlobalContext *global)
-
Context *port_driver_create_port(const char *port_name, GlobalContext *global, term opts)
-
void nif_collection_init_all(GlobalContext *global)
-
void nif_collection_destroy_all(GlobalContext *global)
-
const struct Nif *nif_collection_resolve_nif(const char *name)
Variables
-
struct PortDriverDefListItem *port_driver_list
-
struct NifCollectionDefListItem *nif_collection_list
-
struct PortDriverDef
- #include <portnifloader.h>
Public Members
-
const char *port_driver_name
-
const port_driver_init_t port_driver_init_cb
-
const port_driver_destroy_t port_driver_destroy_cb
-
const port_driver_create_port_t port_driver_create_port_cb
-
const char *port_driver_name
-
struct PortDriverDefListItem
- #include <portnifloader.h>
Collaboration diagram for PortDriverDefListItem:
-
struct NifCollectionDef
- #include <portnifloader.h>
Public Members
-
const nif_collection_init_t nif_collection_init_cb
-
const nif_collection_destroy_t nif_collection_destroy_cb
-
const nif_collection_resolve_nif_t nif_collection_resolve_nif_cb
-
const nif_collection_init_t nif_collection_init_cb
-
struct NifCollectionDefListItem
- #include <portnifloader.h>
Collaboration diagram for NifCollectionDefListItem: