Mercurial > hg > audiodb
diff bindings/python/pyadbmodule.c @ 628:356d7b319ae8
tightened the inline docs in pyadbmodule.c
a first pass at a query implementation in pyadb.py that allows for query parameters to be defined via a class attribute dict, configQuery and an accompanying dict specifying the expected keywords and types.
Barely tested, be gentle.
author | map01bf |
---|---|
date | Wed, 23 Sep 2009 14:38:02 +0000 |
parents | afa05407ce41 |
children | 50761b56e8be |
line wrap: on
line diff
--- a/bindings/python/pyadbmodule.c Tue Sep 22 16:40:57 2009 +0000 +++ b/bindings/python/pyadbmodule.c Wed Sep 23 14:38:02 2009 +0000 @@ -407,7 +407,7 @@ "Poorly specified result mode. Result must be either \'dist\' or \'list\'.\n"); return NULL; } - if (!audiodb_query_free_results(current_db, spec, result)){ + if (audiodb_query_free_results(current_db, spec, result)){ printf("bit of trouble freeing the result and spec...\ncheck for leaks."); } @@ -471,7 +471,8 @@ absThres = double absolute power threshold (db must have power),\n\ relThres = double relative power threshold (db must have power),\n\ durRatio = double time expansion/compresion ratio,\n\ - hopSize = int hopsize (1 by default)])->resultDict\n"}, + hopSize = int hopsize (1 by default)])->resultDict\n\ + resFmt = [\"list\"|\"dict\"](\"dict\" by default)"}, {NULL,NULL, 0, NULL} };