aboutsummaryrefslogtreecommitdiff
path: root/ponymap.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-09-23 22:59:01 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-09-23 22:59:01 +0200
commit1f9f9b9a395351fd2b001c24ffe89c546723763d (patch)
treed688869ae29c20c2e5deb72f4e35dd9d6233cb37 /ponymap.c
parentf9d6627456e8232fe7a2ae1283347236aa2b34df (diff)
downloadponymap-1f9f9b9a395351fd2b001c24ffe89c546723763d.tar.gz
ponymap-1f9f9b9a395351fd2b001c24ffe89c546723763d.tar.xz
ponymap-1f9f9b9a395351fd2b001c24ffe89c546723763d.zip
Simplify the plugin API
Diffstat (limited to 'ponymap.c')
-rw-r--r--ponymap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ponymap.c b/ponymap.c
index b53cb83..306830c 100644
--- a/ponymap.c
+++ b/ponymap.c
@@ -518,7 +518,7 @@ unit_abort (struct unit *u)
if (u->scan_started)
{
if (u->service->on_aborted)
- u->service->on_aborted (u->service_data, u);
+ u->service->on_aborted (u->service_data);
u->service->scan_free (u->service_data);
}
@@ -581,7 +581,7 @@ on_unit_ready (const struct pollfd *pfd, struct unit *u)
if (u->read_buffer.len)
{
struct str *buf = &u->read_buffer;
- service->on_data (u->service_data, u, buf);
+ service->on_data (u->service_data, buf->str, buf->len);
str_remove_slice (buf, 0, buf->len);
if (u->abortion_requested)
@@ -595,7 +595,7 @@ on_unit_ready (const struct pollfd *pfd, struct unit *u)
if (got_eof)
{
if (service->on_eof)
- service->on_eof (u->service_data, u);
+ service->on_eof (u->service_data);
if (u->abortion_requested || !u->write_buffer.len)
goto abort;
}
@@ -605,7 +605,7 @@ on_unit_ready (const struct pollfd *pfd, struct unit *u)
error:
if (service->on_error)
- service->on_error (u->service_data, u);
+ service->on_error (u->service_data);
abort:
unit_abort (u);