diff options
author | David Robillard <d@drobilla.net> | 2008-01-06 01:38:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-06 01:38:33 +0000 |
commit | 676f2249d0dcaf24202885a91e19c25b64089684 (patch) | |
tree | 0e5cd8a360789e9a90678a036208938e2d388da9 | |
parent | cb21a7b08354134307637eb822a3c1ad9cb7ed23 (diff) | |
download | raul-676f2249d0dcaf24202885a91e19c25b64089684.tar.gz raul-676f2249d0dcaf24202885a91e19c25b64089684.tar.bz2 raul-676f2249d0dcaf24202885a91e19c25b64089684.zip |
More verbose LASH console output.
git-svn-id: http://svn.drobilla.net/lad/raul@1012 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | raul/LashServerInterface.hpp | 1 | ||||
-rw-r--r-- | src/LashClient.cpp | 3 | ||||
-rw-r--r-- | src/LashProject.cpp | 5 | ||||
-rw-r--r-- | src/LashServerInterface.cpp | 4 |
4 files changed, 9 insertions, 4 deletions
diff --git a/raul/LashServerInterface.hpp b/raul/LashServerInterface.hpp index be47ef3..339f6f7 100644 --- a/raul/LashServerInterface.hpp +++ b/raul/LashServerInterface.hpp @@ -26,7 +26,6 @@ #include <raul/SharedPtr.hpp> #include <sigc++/sigc++.h> - namespace Raul { diff --git a/src/LashClient.cpp b/src/LashClient.cpp index 387ba45..0d06a42 100644 --- a/src/LashClient.cpp +++ b/src/LashClient.cpp @@ -30,14 +30,13 @@ LashClient::LashClient(lash_client_t* lash_client) LashClient::~LashClient() { - } SharedPtr<LashClient> LashClient::create( - lash_args_t* args, + lash_args_t* args, const string& name, int flags) { diff --git a/src/LashProject.cpp b/src/LashProject.cpp index 6cc7288..01a64a6 100644 --- a/src/LashProject.cpp +++ b/src/LashProject.cpp @@ -15,6 +15,7 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <iostream> #include <raul/LashProject.hpp> using namespace std; @@ -33,6 +34,7 @@ LashProject::save() { SharedPtr<LashClient> client = _client.lock(); if (client) { + cout << "[LASH] Saving project " << _name << endl; lash_event_t* event = lash_event_new_with_type(LASH_Save); lash_event_set_project(event, _name.c_str()); lash_send_event(client->lash_client(), event); @@ -45,6 +47,7 @@ LashProject::close() { SharedPtr<LashClient> client = _client.lock(); if (client) { + cout << "[LASH] Closing project " << _name << endl; lash_event_t* event = lash_event_new_with_type(LASH_Project_Remove); lash_event_set_project(event, _name.c_str()); lash_send_event(client->lash_client(), event); @@ -57,6 +60,7 @@ LashProject::set_directory(const string& filename) { SharedPtr<LashClient> client = _client.lock(); if (client) { + cout << "[LASH] Project " << _name << " directory = " << filename << endl; lash_event_t* event = lash_event_new_with_type(LASH_Project_Dir); lash_event_set_project(event, _name.c_str()); lash_event_set_string(event, filename.c_str()); @@ -70,6 +74,7 @@ LashProject::set_name(const string& name) { SharedPtr<LashClient> client = _client.lock(); if (client) { + cout << "[LASH] Project " << _name << " name = " << name << endl; lash_event_t* event = lash_event_new_with_type(LASH_Project_Name); lash_event_set_project(event, _name.c_str()); lash_event_set_string(event, name.c_str()); diff --git a/src/LashServerInterface.cpp b/src/LashServerInterface.cpp index 484a693..23fc4dc 100644 --- a/src/LashServerInterface.cpp +++ b/src/LashServerInterface.cpp @@ -56,7 +56,8 @@ LashServerInterface::handle_event(lash_event_t* ev) SharedPtr<LashProject> p; - //cout << "[LashDriver] LASH Event. Type = " << (unsigned int)type << ", string = " << str << "**********" << endl; + //cout << "[LashServerInterface] Event, type = " << (unsigned int)type + // << ", string = " << str << endl; switch (type) { case LASH_Project_Add: @@ -125,6 +126,7 @@ LashServerInterface::handle_event(lash_event_t* ev) void LashServerInterface::restore_project(const std::string& filename) { + cout << "[LASH] Restoring project at " << filename << endl; lash_event_t* event = lash_event_new_with_type(LASH_Project_Add); lash_event_set_string(event, filename.c_str()); lash_send_event(lash_client(), event); |