next up previous contents
Next: Putting Software Back into Up: Starting to Program Previous: Modifying Header Files   Contents

Incorporation of Tina Sub-Tools

The default tinaTool.c does not contain every possible sub-tool and at some point you may wish to get access to additional ones. This can be done by duplicating the process already used for all other sub-tools, define a button in the ``main'' tool definition at the bottom of the file, eg:

        tw_button("RawInput", raw_input_tool_proc, NULL);
and provide the wrapper for the tool call at the top of the file, eg:
static void     raw_input_tool_proc(void)
{
        raw_input_tool(50, 50);
}
Now rebuild the executable, the new button (in this case "RawInput") should now be visible in the main tool, executing the function raw_input_tool() from the library when pressed.



root 2017-09-20