From 1f9f9b9a395351fd2b001c24ffe89c546723763d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Tue, 23 Sep 2014 22:59:01 +0200 Subject: Simplify the plugin API --- ponymap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ponymap.c') 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); -- cgit v1.2.3