From 124b9a04b77e0d402ed3c8d5d2771f7498a235bc Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Fri, 8 Dec 2017 13:18:13 +0900 Subject: Unify the API name Change-Id: Ib0544990338cfd80f53e1e0e6d98f19a9a152443 Signed-off-by: Kazumasa Mitsunari --- src/libsoundmanager.cpp | 9 +++------ src/libsoundmanager.hpp | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/libsoundmanager.cpp b/src/libsoundmanager.cpp index 9ba3e21..5c4ba61 100644 --- a/src/libsoundmanager.cpp +++ b/src/libsoundmanager.cpp @@ -185,9 +185,6 @@ int Soundmanager::init_event(){ * * #### Parameters * - event_cb [in] : This argument should be specified to the callback for subscribed event - - - * - reply_cb [in] : This argument should be specified to the reply callback for call function * - hangup_cb [in] : This argument should be specified to the hangup callback for call function. nullptr is defaulty set. * @@ -197,7 +194,7 @@ int Soundmanager::init_event(){ * Event callback is invoked by sound manager for event you subscribed. * If you would like to get event, please call subscribe function before/after this function */ -void Soundmanager::register_callback( +void Soundmanager::registerCallback( void (*event_cb)(const string& event, struct json_object* event_contents), void (*reply_cb)(struct json_object* reply_contents), void (*hangup_cb)(void)) @@ -208,7 +205,7 @@ void Soundmanager::register_callback( } /** - * This function is overload of register_callback. This registers callback function for reply/event message from sound manager + * This function is overload of registerCallback. This registers callback function for reply/event message from sound manager * * #### Parameters * - reply_cb [in] : This argument should be specified to the reply callback for call function @@ -221,7 +218,7 @@ void Soundmanager::register_callback( * This function for convinience for user uses set_event_handler * If you would like to get event, please call subscribe function before/after this function */ -void Soundmanager::register_callback( +void Soundmanager::registerCallback( void (*reply_cb)(struct json_object* reply_contents), void (*hangup_cb)(void)) { diff --git a/src/libsoundmanager.hpp b/src/libsoundmanager.hpp index 8f40392..183709e 100644 --- a/src/libsoundmanager.hpp +++ b/src/libsoundmanager.hpp @@ -55,11 +55,11 @@ public: int subscribe(const std::string& event_name); int unsubscribe(const std::string& event_name); void set_event_handler(enum EventType_SM et, handler_fun f); - void register_callback( + void registerCallback( void (*event_cb)(const std::string& event, struct json_object* event_contents), void (*reply_cb)(struct json_object* reply_contents), void (*hangup_cb)(void) = nullptr); - void register_callback( + void registerCallback( void (*reply_cb)(struct json_object* reply_contents), void (*hangup_cb)(void) = nullptr); -- cgit 1.2.3-korg