preludedb-plugin-format

preludedb-plugin-format —

Synopsis




            preludedb_plugin_format_t;
#define     preludedb_plugin_format_check_schema_version_func(p)
#define     preludedb_plugin_format_get_alert_idents_func(p)
#define     preludedb_plugin_format_get_heartbeat_idents_func(p)
#define     preludedb_plugin_format_get_message_ident_count_func(p)
#define     preludedb_plugin_format_get_next_message_ident_func(p)
#define     preludedb_plugin_format_destroy_message_idents_resource_func(p)
#define     preludedb_plugin_format_get_alert_func(p)
#define     preludedb_plugin_format_get_heartbeat_func(p)
#define     preludedb_plugin_format_delete_alert_func(p)
#define     preludedb_plugin_format_delete_heartbeat_func(p)
#define     preludedb_plugin_format_insert_message_func(p)
#define     preludedb_plugin_format_get_values_func(p)
#define     preludedb_plugin_format_get_next_values_func(p)
#define     preludedb_plugin_format_destroy_values_resource_func(p)
#define     preludedb_plugin_format_set_check_schema_version_func(p, f)
#define     preludedb_plugin_format_set_get_alert_idents_func(p, f)
#define     preludedb_plugin_format_set_get_heartbeat_idents_func(p, f)
#define     preludedb_plugin_format_set_get_message_ident_count_func(p, f)
#define     preludedb_plugin_format_set_get_next_message_ident_func(p, f)
#define     preludedb_plugin_format_set_destroy_message_idents_resource_func(p, f)
#define     preludedb_plugin_format_set_get_alert_func(p, f)
#define     preludedb_plugin_format_set_get_heartbeat_func(p, f)
#define     preludedb_plugin_format_set_delete_alert_func(p, f)
#define     preludedb_plugin_format_set_delete_heartbeat_func(p, f)
#define     preludedb_plugin_format_set_insert_message_func(p, f)
#define     preludedb_plugin_format_set_get_values_func(p, f)
#define     preludedb_plugin_format_set_get_next_values_func(p, f)
#define     preludedb_plugin_format_set_destroy_values_resource_func(p, f)

Description

Details

preludedb_plugin_format_t

typedef struct {
	PRELUDE_PLUGIN_GENERIC;

	int (*check_schema_version)(const char *version);

	int (*get_alert_idents)(preludedb_sql_t *sql,
				idmef_criteria_t *criteria,
				int limit, int offset, preludedb_result_idents_order_t order,
				void **res);

	int (*get_heartbeat_idents)(preludedb_sql_t *sql,
				    idmef_criteria_t *criteria, 
				    int limit, int offset, preludedb_result_idents_order_t order,
				    void **res);

	size_t (*get_message_ident_count)(void *res);

	int (*get_next_message_ident)(void *res, uint64_t *ident);

	void (*destroy_message_idents_resource)(void *res);

	int (*get_alert)(preludedb_sql_t *sql, uint64_t ident, idmef_message_t **message);

	int (*get_heartbeat)(preludedb_sql_t *sql, uint64_t ident, idmef_message_t **message);
        
	int (*delete_alert)(preludedb_sql_t *sql, uint64_t ident);

	int (*delete_heartbeat)(preludedb_sql_t *sql, uint64_t ident);

	int (*insert_message)(preludedb_sql_t *sql, idmef_message_t *message);

	int (*get_values)(preludedb_sql_t *sql, preludedb_path_selection_t *selection,
			  idmef_criteria_t *criteria, int distinct, int limit, int offset, void **res);

	int (*get_next_values)(void *res, preludedb_path_selection_t *selection, idmef_value_t ***values);

	void (*destroy_values_resource)(void *res);
} preludedb_plugin_format_t;


preludedb_plugin_format_check_schema_version_func()

#define	preludedb_plugin_format_check_schema_version_func(p) (p)->check_schema_version

p :

preludedb_plugin_format_get_alert_idents_func()

#define	preludedb_plugin_format_get_alert_idents_func(p) (p)->get_alert_idents

p :

preludedb_plugin_format_get_heartbeat_idents_func()

#define	preludedb_plugin_format_get_heartbeat_idents_func(p) (p)->get_heartbeat_idents

p :

preludedb_plugin_format_get_message_ident_count_func()

#define	preludedb_plugin_format_get_message_ident_count_func(p) (p)->get_message_ident_count

p :

preludedb_plugin_format_get_next_message_ident_func()

#define	preludedb_plugin_format_get_next_message_ident_func(p) (p)->get_next_message_ident

p :

preludedb_plugin_format_destroy_message_idents_resource_func()

#define preludedb_plugin_format_destroy_message_idents_resource_func(p) (p)->destroy_message_idents_resource

p :

preludedb_plugin_format_get_alert_func()

#define preludedb_plugin_format_get_alert_func(p) (p)->get_alert

p :

preludedb_plugin_format_get_heartbeat_func()

#define preludedb_plugin_format_get_heartbeat_func(p) (p)->get_heartbeat

p :

preludedb_plugin_format_delete_alert_func()

#define preludedb_plugin_format_delete_alert_func(p) (p)->delete_alert

p :

preludedb_plugin_format_delete_heartbeat_func()

#define preludedb_plugin_format_delete_heartbeat_func(p) (p)->delete_heartbeat

p :

preludedb_plugin_format_insert_message_func()

#define preludedb_plugin_format_insert_message_func(p) (p)->insert_message

p :

preludedb_plugin_format_get_values_func()

#define preludedb_plugin_format_get_values_func(p) (p)->get_values

p :

preludedb_plugin_format_get_next_values_func()

#define preludedb_plugin_format_get_next_values_func(p) (p)->get_next_values

p :

preludedb_plugin_format_destroy_values_resource_func()

#define preludedb_plugin_format_destroy_values_resource_func(p) (p)->destroy_values_resource

p :

preludedb_plugin_format_set_check_schema_version_func()

#define	preludedb_plugin_format_set_check_schema_version_func(p, f) preludedb_plugin_format_check_schema_version_func(p) = (f)

p :
f :

preludedb_plugin_format_set_get_alert_idents_func()

#define	preludedb_plugin_format_set_get_alert_idents_func(p, f) preludedb_plugin_format_get_alert_idents_func(p) = (f)

p :
f :

preludedb_plugin_format_set_get_heartbeat_idents_func()

#define	preludedb_plugin_format_set_get_heartbeat_idents_func(p, f) preludedb_plugin_format_get_heartbeat_idents_func(p) = (f)

p :
f :

preludedb_plugin_format_set_get_message_ident_count_func()

#define	preludedb_plugin_format_set_get_message_ident_count_func(p, f) preludedb_plugin_format_get_message_ident_count_func(p) = (f)

p :
f :

preludedb_plugin_format_set_get_next_message_ident_func()

#define	preludedb_plugin_format_set_get_next_message_ident_func(p, f) preludedb_plugin_format_get_next_message_ident_func(p) = (f)

p :
f :

preludedb_plugin_format_set_destroy_message_idents_resource_func()

#define	preludedb_plugin_format_set_destroy_message_idents_resource_func(p, f) preludedb_plugin_format_destroy_message_idents_resource_func(p) = (f)

p :
f :

preludedb_plugin_format_set_get_alert_func()

#define preludedb_plugin_format_set_get_alert_func(p, f) preludedb_plugin_format_get_alert_func(p) = (f)

p :
f :

preludedb_plugin_format_set_get_heartbeat_func()

#define preludedb_plugin_format_set_get_heartbeat_func(p, f) preludedb_plugin_format_get_heartbeat_func(p) = (f)

p :
f :

preludedb_plugin_format_set_delete_alert_func()

#define preludedb_plugin_format_set_delete_alert_func(p, f) preludedb_plugin_format_delete_alert_func(p) = (f)

p :
f :

preludedb_plugin_format_set_delete_heartbeat_func()

#define preludedb_plugin_format_set_delete_heartbeat_func(p, f) preludedb_plugin_format_delete_heartbeat_func(p) = (f)

p :
f :

preludedb_plugin_format_set_insert_message_func()

#define preludedb_plugin_format_set_insert_message_func(p, f) preludedb_plugin_format_insert_message_func(p) = (f)

p :
f :

preludedb_plugin_format_set_get_values_func()

#define preludedb_plugin_format_set_get_values_func(p, f) preludedb_plugin_format_get_values_func(p) = (f)

p :
f :

preludedb_plugin_format_set_get_next_values_func()

#define preludedb_plugin_format_set_get_next_values_func(p, f) preludedb_plugin_format_get_next_values_func(p) = (f)

p :
f :

preludedb_plugin_format_set_destroy_values_resource_func()

#define preludedb_plugin_format_set_destroy_values_resource_func(p, f) preludedb_plugin_format_destroy_values_resource_func(p) = (f)

p :
f :