commit edb1a9c131391f9a5ca08eb2e713f2f2a42b261f
parent b67f83a03684f8111083aa75f99cfa37ab364efd
Author: cfillion <cfillion@users.noreply.github.com>
Date: Mon, 23 Nov 2015 21:01:01 -0500
rename ReaPackCallback to ActionCallback
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/reapack.cpp b/src/reapack.cpp
@@ -10,7 +10,7 @@ void ReaPack::init(REAPER_PLUGIN_HINSTANCE instance, reaper_plugin_info_t *rec)
}
void ReaPack::setupAction(const char *name, const char *desc,
- gaccel_register_t *action, ReaPackCallback callback)
+ gaccel_register_t *action, ActionCallback callback)
{
action->desc = desc;
action->accel.cmd = m_rec->Register("command_id", (void *)name);
diff --git a/src/reapack.hpp b/src/reapack.hpp
@@ -6,7 +6,7 @@
#include "reaper_plugin.h"
-typedef std::function<void()> ReaPackCallback;
+typedef std::function<void()> ActionCallback;
class ReaPack {
public:
@@ -15,13 +15,13 @@ public:
void init(REAPER_PLUGIN_HINSTANCE, reaper_plugin_info_t *);
void setupAction(const char *name, const char *desc,
- gaccel_register_t *action, ReaPackCallback callback);
+ gaccel_register_t *action, ActionCallback callback);
bool execActions(const int id, const int);
void toggleWindow();
private:
- std::map<int, ReaPackCallback> m_actions;
+ std::map<int, ActionCallback> m_actions;
REAPER_PLUGIN_HINSTANCE m_instance;
reaper_plugin_info_t *m_rec;