aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-09 17:44:39 +0000
committerDavid Robillard <d@drobilla.net>2012-04-09 17:44:39 +0000
commitba65388a9f7e790acf8edb2a591084d16e8382c4 (patch)
tree5aede4a48a1e6e110e20af1274cc887b82a305d7
parent8aa5cb13862333a784d197e5428fbd7284f0eee0 (diff)
downloadjalv-ba65388a9f7e790acf8edb2a591084d16e8382c4.tar.gz
jalv-ba65388a9f7e790acf8edb2a591084d16e8382c4.tar.bz2
jalv-ba65388a9f7e790acf8edb2a591084d16e8382c4.zip
Tidy.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4151 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/state.c5
-rw-r--r--src/worker.c7
-rw-r--r--wscript2
3 files changed, 9 insertions, 5 deletions
diff --git a/src/state.c b/src/state.c
index ea13007..e738ef5 100644
--- a/src/state.c
+++ b/src/state.c
@@ -189,7 +189,10 @@ jalv_apply_preset(Jalv* jalv, const LilvNode* preset)
}
int
-jalv_save_preset(Jalv* jalv, const char* dir, const char* uri, const char* label)
+jalv_save_preset(Jalv* jalv,
+ const char* dir,
+ const char* uri,
+ const char* label)
{
LilvState* const state = lilv_state_new_from_instance(
jalv->plugin, jalv->instance, &jalv->map,
diff --git a/src/worker.c b/src/worker.c
index 550e594..51640e8 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -22,7 +22,8 @@ jalv_worker_respond(LV2_Worker_Respond_Handle handle,
const void* data)
{
Jalv* jalv = (Jalv*)handle;
- jack_ringbuffer_write(jalv->worker.responses, (const char*)&size, sizeof(size));
+ jack_ringbuffer_write(jalv->worker.responses,
+ (const char*)&size, sizeof(size));
jack_ringbuffer_write(jalv->worker.responses, data, size);
return LV2_WORKER_SUCCESS;
}
@@ -82,7 +83,8 @@ jalv_worker_schedule(LV2_Worker_Schedule_Handle handle,
const void* data)
{
Jalv* jalv = (Jalv*)handle;
- jack_ringbuffer_write(jalv->worker.requests, (const char*)&size, sizeof(size));
+ jack_ringbuffer_write(jalv->worker.requests,
+ (const char*)&size, sizeof(size));
jack_ringbuffer_write(jalv->worker.requests, data, size);
zix_sem_post(&jalv->worker.sem);
return LV2_WORKER_SUCCESS;
@@ -105,6 +107,5 @@ jalv_worker_emit_responses(Jalv* jalv, JalvWorker* worker)
read_space -= sizeof(size) + size;
}
-
}
}
diff --git a/wscript b/wscript
index 7edfb0e..c1e9135 100644
--- a/wscript
+++ b/wscript
@@ -116,4 +116,4 @@ def build(bld):
bld.install_files('${MANDIR}/man1', bld.path.ant_glob('doc/*.1'))
def lint(ctx):
- subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-readability/todo,-build/include src/* jalv/*', shell=True)
+ subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-readability/todo,-build/include,-runtime/sizeof src/* jalv/*', shell=True)