From c2f88ee8bec8cdd0ea573b54aee89a241c7d4deb Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 18 Dec 2017 09:05:25 +0100 Subject: plugins: rename check_status -> initialize It's a contract for plugin invocation that the particular function fills the role of initialization. Rename accordingly. --- logic/runtime-libraries.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'logic') diff --git a/logic/runtime-libraries.cpp b/logic/runtime-libraries.cpp index bfa7f2a4..46a90b86 100644 --- a/logic/runtime-libraries.cpp +++ b/logic/runtime-libraries.cpp @@ -17,7 +17,7 @@ runtime_libraries::runtime_libraries(QFrame* frame, dylibptr t, dylibptr p, dyli if (!pProtocol) goto end; - if(status = pProtocol->check_status(), !status.is_ok()) + if(status = pProtocol->initialize(), !status.is_ok()) { status = otr_tr("Error occured while loading protocol %1\n\n%2\n") .arg(p->name).arg(status.error); @@ -34,7 +34,7 @@ runtime_libraries::runtime_libraries(QFrame* frame, dylibptr t, dylibptr p, dyli } if (pFilter) - if(status = pFilter->check_status(), !status.is_ok()) + if(status = pFilter->initialize(), !status.is_ok()) { status = otr_tr("Error occured while loading filter %1\n\n%2\n") .arg(f->name).arg(status.error); -- cgit v1.2.3