26 #include <aerospike/as_aerospike.h>
27 #include <aerospike/as_stream.h>
28 #include <aerospike/as_result.h>
29 #include <aerospike/as_types.h>
30 #include <aerospike/as_logger.h>
31 #include <aerospike/as_memtracker.h>
47 typedef enum as_module_event_type_e {
54 typedef struct as_module_event_data_s {
56 const char * filename;
59 typedef struct as_module_event_s {
64 typedef struct as_module_error_s {
77 typedef struct as_module_hooks_s {
82 int (* destroy)(
struct as_module_s *
m);
92 int (* validate)(
struct as_module_s *
m, as_aerospike * as,
const char * filename,
const char * content, uint32_t size,
as_module_error * err);
97 int (* apply_record)(
struct as_module_s *
m, as_aerospike * as,
const char * filename,
const char *
function,
as_rec * rec,
as_list * args,
as_result * res);
102 int (* apply_stream)(
struct as_module_s *
m, as_aerospike * as,
const char * filename,
const char *
function,
as_stream * istream,
as_list * args,
as_stream * ostream);
114 typedef struct as_module_s {
117 as_memtracker * memtracker;
char * as_module_err_string(int)
int as_module_destroy(as_module *m)
void * as_module_source(as_module *m)
#define error(fmt, args...)
int as_module_apply_stream(as_module *m, as_aerospike *as, const char *filename, const char *function, as_stream *istream, as_list *args, as_stream *ostream)
int as_module_configure(as_module *m, void *c)
int as_module_update(as_module *m, as_module_event *e)
as_logger * as_module_logger(as_module *m)
int as_module_apply_record(as_module *m, as_aerospike *as, const char *filename, const char *function, as_rec *r, as_list *args, as_result *res)
int as_module_validate(as_module *m, as_aerospike *as, const char *filename, const char *content, uint32_t size, as_module_error *error)