summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-12-08 13:18:13 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-12-11 10:34:24 +0900
commit124b9a04b77e0d402ed3c8d5d2771f7498a235bc (patch)
treeceee56ba2fc8f6f9716c81a452f1135bfc19fa87
parentb822f798f8d0144756acf7c8eeb1158c9faa9fd9 (diff)
Unify the API name
Change-Id: Ib0544990338cfd80f53e1e0e6d98f19a9a152443 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/libsoundmanager.cpp9
-rw-r--r--src/libsoundmanager.hpp4
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);