"I have started to move the command-line specific parts of ipodpatcher into a new main.c, leaving ipodpatcher.c as a sort of library." . . . .