Alchemist  0.8
blackbox.h
Go to the documentation of this file.
1 #ifndef __BLACKBOX_HEADER__
2 #define __BLACKBOX_HEADER__
3 
4 #include "alchemist.h"
5 
6 #ifndef ALCHEMIST_BLACKBOX_MOD_PATH
7 #define ALCHEMIST_BLACKBOX_MOD_PATH "/usr/lib/alchemist/blackbox"
8 #endif
9 
10 typedef struct AdmBlackBoxMethods {
11  void (*free) (void *data);
12 
13  AdmContext * (*read) (void *data,
14  AdmError **error);
15 
16  unsigned int (*listSerial) (void *data,
17  unsigned int *array,
18  unsigned int array_len,
19  unsigned int top_serial,
20  AdmError **error);
21 
22  AdmContext * (*readSerial) (void *data,
23  unsigned int serial,
24  AdmError **error);
25 
26  int (*write) (void *data,
27  AdmContext *context,
28  AdmError **error);
30 
31 /* every module exports one of these named 'bb_mod_vector' */
35  int (*getBox) (AdmBlackBoxMethods **mod,
36  void **data,
37  AdmList *box_list,
38  AdmError **error);
39 };
40 
41 #endif/*__BLACKBOX_HEADER__*/
Definition: blackbox.h:10
unsigned int(* listSerial)(void *data, unsigned int *array, unsigned int array_len, unsigned int top_serial, AdmError **error)
Definition: blackbox.h:16
struct AdmList AdmList
Definition: alchemist.h:135
Definition: blackbox.h:32
struct AdmBlackBoxMethods AdmBlackBoxMethods
int abi_major_ver
Definition: blackbox.h:33
int(* write)(void *data, AdmContext *context, AdmError **error)
Definition: blackbox.h:26
struct AdmError AdmError
Definition: alchemist.h:19
void(* free)(void *data)
Definition: blackbox.h:11
struct AdmContext AdmContext
Definition: alchemist.h:151
int abi_minor_ver
Definition: blackbox.h:34