MCPcopy Create free account
hub / github.com/audacity/audacity / sqlite3_expert_config

Function sqlite3_expert_config

lib-src/sqlite/shell.c:10177–10196  ·  view source on GitHub ↗

** Configure an sqlite3expert object. */

Source from the content-addressed store, hash-verified

10175** Configure an sqlite3expert object.
10176*/
10177int sqlite3_expert_config(sqlite3expert *p, int op, ...){
10178 int rc = SQLITE_OK;
10179 va_list ap;
10180 va_start(ap, op);
10181 switch( op ){
10182 case EXPERT_CONFIG_SAMPLE: {
10183 int iVal = va_arg(ap, int);
10184 if( iVal<0 ) iVal = 0;
10185 if( iVal>100 ) iVal = 100;
10186 p->iSample = iVal;
10187 break;
10188 }
10189 default:
10190 rc = SQLITE_NOTFOUND;
10191 break;
10192 }
10193
10194 va_end(ap);
10195 return rc;
10196}
10197
10198/*
10199** Add an SQL statement to the analysis.

Callers 1

expertDotCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected