summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-06 01:38:33 +0000
committerDavid Robillard <d@drobilla.net>2008-01-06 01:38:33 +0000
commit676f2249d0dcaf24202885a91e19c25b64089684 (patch)
tree0e5cd8a360789e9a90678a036208938e2d388da9 /src
parentcb21a7b08354134307637eb822a3c1ad9cb7ed23 (diff)
downloadraul-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
Diffstat (limited to 'src')
-rw-r--r--src/LashClient.cpp3
-rw-r--r--src/LashProject.cpp5
-rw-r--r--src/LashServerInterface.cpp4
3 files changed, 9 insertions, 3 deletions
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);