summaryrefslogtreecommitdiffstats
path: root/src/client/HTTPClientReceiver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-11-09 03:45:35 +0000
committerDavid Robillard <d@drobilla.net>2008-11-09 03:45:35 +0000
commit72ffe8b96f492805b16df8d2ffa452e67046b974 (patch)
tree4c3e565f34e334c8cc3a58ab052ea2156eb4cfdc /src/client/HTTPClientReceiver.cpp
parent5d1f579900182f283a1c21ad4e59daf7f035e219 (diff)
downloadingen-72ffe8b96f492805b16df8d2ffa452e67046b974.tar.gz
ingen-72ffe8b96f492805b16df8d2ffa452e67046b974.tar.bz2
ingen-72ffe8b96f492805b16df8d2ffa452e67046b974.zip
Add concept of 'Resource' and make plugins a resource (as well as graph objects).
Get rid of crufty imperative Plugin API. Loading of plugin data from engine over HTTP. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1713 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/HTTPClientReceiver.cpp')
-rw-r--r--src/client/HTTPClientReceiver.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client/HTTPClientReceiver.cpp b/src/client/HTTPClientReceiver.cpp
index 5d4a8660..624a7786 100644
--- a/src/client/HTTPClientReceiver.cpp
+++ b/src/client/HTTPClientReceiver.cpp
@@ -53,16 +53,13 @@ void
HTTPClientReceiver::message_callback(SoupSession* session, SoupMessage* msg, void* ptr)
{
HTTPClientReceiver* me = (HTTPClientReceiver*)ptr;
- //cout << "RECEIVED ASYNC MESSAGE: " << msg->response_body->data << endl;
const string path = soup_message_get_uri(msg)->path;
if (path == "/") {
- cout << "RECEIVED ROOT" << endl;
me->_target->response_ok(0);
me->_target->enable();
} else if (path == "/plugins") {
- cout << "RECIEVED PLUGINS" << endl;
if (msg->response_body->data == NULL) {
- cout << "NO RESPONSE?!" << endl;
+ cout << "ERROR: Empty response" << endl;
} else {
me->_target->response_ok(0);
me->_target->enable();
@@ -71,9 +68,8 @@ HTTPClientReceiver::message_callback(SoupSession* session, SoupMessage* msg, voi
Glib::ustring("."), Glib::ustring(""));
}
} else if (path == "/patch") {
- cout << "RECEIVED OBJECTS" << endl;
if (msg->response_body->data == NULL) {
- cout << "NO RESPONSE?!" << endl;
+ cout << "ERROR: Empty response" << endl;
} else {
me->_target->response_ok(0);
me->_target->enable();