# getInputSpec

query a description of an input

            char* getInputSpec
            int index

## Description

This function returns a pointer to a c-string which describes the input with the `index` number. The format of this specification string looks similar to a structure with default values in programming languages. The structure is called `input_spec` in it has the attributes `type`, `id`, `const`, `default` and `strong_dependency`. "input_spec { type=typ_STRING; id=STRING; const=BOOL; strong_dependency=BOOL; default=STRING}" The order of the attributes is irrelevant. `type` is the unique identifier for the type-class of that input. `id` is an identifier for this input. It has to be unique among all inputs of the module. With the `const` attribute signals the modules to the engine if it wants to change the value of the type object in the `update` function. If the input has set `strong_dependency` to true the engine must always set/update this input before calling `update`. The `default` attribute is the default value of the input when the module is new created. The format to specify this value is the format defined by the `serialise` and `deserialise` functions of the type-class. The specification for some input could look like this: `"input_spec { type=typ_NumberType id=factor const=true strong_dependency=true default=0 }"`