From 241bc64a11da5ddfa60b2242f39c944abaf02cb5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Wed, 10 Sep 2014 23:14:53 +0200
Subject: Random crystallisation
Don't worry, there will be better commit messages eventually.
---
plugin-api.h | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
(limited to 'plugin-api.h')
diff --git a/plugin-api.h b/plugin-api.h
index 6324821..a8e6c58 100644
--- a/plugin-api.h
+++ b/plugin-api.h
@@ -36,9 +36,14 @@ struct service
const char *name; ///< Name of the service
int flags; ///< Service flags
+ // XXX: what event happens when?
+
/// Initialize a scan, returning a handle to it
void *(*scan_init) (struct unit *u);
+ /// Destroy the handle created for the scan
+ void (*scan_free) (void *handle);
+
/// We have received some data from the peer
void (*on_data) (void *handle, struct unit *u, struct str *data);
@@ -48,8 +53,8 @@ struct service
/// Network or other error has occured
void (*on_error) (void *handle, struct unit *u);
- /// The scan has been cancelled
- void (*on_cancelled) (void *handle, struct unit *u);
+ /// The scan has been aborted
+ void (*on_aborted) (void *handle, struct unit *u);
};
struct plugin_api
--
cgit v1.2.3