Mercurial > hg > audiodb
changeset 576:ae2eeec4d41d
No more warnings in the PD external with -Wall
Include necessary headers; remove initializer for spec (I confess, I'm
not sure why); add a create method in the class.
author | mas01cr |
---|---|
date | Mon, 06 Jul 2009 15:09:55 +0000 |
parents | 7293a11b0fec |
children | a3d62f2f864f |
files | bindings/pd/adbpd.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bindings/pd/adbpd.c Mon Jul 06 15:09:54 2009 +0000 +++ b/bindings/pd/adbpd.c Mon Jul 06 15:09:55 2009 +0000 @@ -6,7 +6,7 @@ #include <sys/stat.h> #include <fcntl.h> #include <stdlib.h> - +#include <unistd.h> #include <audioDB_API.h> @@ -171,7 +171,7 @@ adb_query_id_t qid = {0}; adb_query_parameters_t params = {0}; adb_query_refine_t refine = {0}; - adb_query_spec_t spec = {0}; + adb_query_spec_t spec; // Configure the start+length of the query, and zero // the flags initially. @@ -406,6 +406,7 @@ class_addfloat(adbpd_class, adbpd_setsequencelength); class_addmethod(adbpd_class, (t_method)adbpd_setname, gensym("set"), A_GIMME, 0); class_addmethod(adbpd_class, (t_method)adbpd_getname, gensym("get"), A_NULL); + class_addmethod(adbpd_class, (t_method)adbpd_create, gensym("create"), A_NULL); class_addmethod(adbpd_class, (t_method)adbpd_open, gensym("open"), A_NULL); class_addmethod(adbpd_class, (t_method)adbpd_status, gensym("status"), A_NULL); class_addmethod(adbpd_class, (t_method)adbpd_l2norm, gensym("l2norm"), A_NULL);