diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-10 23:14:53 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-10 23:14:53 +0200 |
commit | 241bc64a11da5ddfa60b2242f39c944abaf02cb5 (patch) | |
tree | ac1ed76cf04247d26417d461daa8615fce776a1c /plugin-api.h | |
parent | b418bfe22cb7ba9091f065d8697ef8bcfcead203 (diff) | |
download | ponymap-241bc64a11da5ddfa60b2242f39c944abaf02cb5.tar.gz ponymap-241bc64a11da5ddfa60b2242f39c944abaf02cb5.tar.xz ponymap-241bc64a11da5ddfa60b2242f39c944abaf02cb5.zip |
Random crystallisation
Don't worry, there will be better commit messages eventually.
Diffstat (limited to 'plugin-api.h')
-rw-r--r-- | plugin-api.h | 9 |
1 files changed, 7 insertions, 2 deletions
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 |