Explaining function calls in latex (syntax)

Explaining function calls in latex (syntax)

I have a software product with an public api, which i want to documentate in LaTeX. The output should look like the following

FunctionName(type1 param1, type2 param2 [, type3 param3] ...)

param1: (...